37 &pixels.
data()->x, pixels.
size(), 1, 4, src_colorspace,
false);
76 ibuf, &view_settings, &display_settings);
95 for ([[maybe_unused]]
const int64_t index : range) {
108 for (
const float4 &pixel : pixels) {
120 for ([[maybe_unused]]
const int64_t index : range) {
131 for (
const float4 &pixel : pixels) {
146 for (
int i = 0;
i < a.
size();
i++) {
147 res[
i] = a[
i] +
b[
i];
blender::ocio::ColorSpace ColorSpace
MINLINE void rgba_float_to_uchar(unsigned char r_col[4], const float col_f[4])
MINLINE void rgba_uchar_to_float(float r_col[4], const unsigned char col_ub[4])
MINLINE void premul_to_straight_v4_v4(float straight[4], const float premul[4])
ATTR_WARN_UNUSED_RESULT const size_t num
void IMB_colormanagement_colorspace_to_scene_linear(float *buffer, int width, int height, int channels, const ColorSpace *colorspace, bool predivide)
void IMB_colormanagement_processor_apply(ColormanageProcessor *cm_processor, float *buffer, int width, int height, int channels, bool predivide)
ColormanageProcessor * IMB_colormanagement_display_processor_for_imbuf(const ImBuf *ibuf, const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, const ColorManagedDisplaySpace display_space=DISPLAY_SPACE_DRAW)
void IMB_colormanagement_processor_free(ColormanageProcessor *cm_processor)
size_t IMB_get_pixel_count(const ImBuf *ibuf)
Get the length of the data of the given image buffer in pixels.
constexpr int64_t first() const
constexpr int64_t size() const
constexpr int64_t size() const
constexpr T * data() const
static void rgba_float_to_display_space(ColormanageProcessor *processor, const ColorSpace *src_colorspace, MutableSpan< float4 > pixels)
static Array< float4 > pixels_to_display_space(ColormanageProcessor *processor, const ColorSpace *src_colorspace, int64_t num, const float *src, int64_t stride)
T max(const T &a, const T &b)
Value parallel_reduce(IndexRange range, int64_t grain_size, const Value &identity, const Function &function, const Reduction &reduction)
VecBase< uint32_t, 3 > uint3
VecBase< float, 4 > float4
static void init(bNodeTree *, bNode *node)
const ColorSpace * colorspace
const ColorSpace * colorspace
ImBufFloatBuffer float_buffer
ImBufByteBuffer byte_buffer
static constexpr int BINS_01
static constexpr int BINS_HDR
void calc_from_ibuf(const ImBuf *ibuf, const ColorManagedViewSettings &view_settings, const ColorManagedDisplaySettings &display_settings)
static int float_to_bin(float f)