Blender V5.3
blender::ocio::CPUProcessor Class Referenceabstract

#include <OCIO_cpu_processor.hh>

Inherited by blender::ocio::LibOCIOCPUProcessor.

Public Member Functions

virtual ~CPUProcessor ()=default
virtual bool is_noop () const =0
virtual void apply_rgb (float rgb[3]) const =0
virtual void apply_rgba (float rgba[4]) const =0
virtual void apply_rgba_predivide (float rgba[4]) const =0
virtual void apply (const PackedImage &image) const =0
virtual void apply_predivide (const PackedImage &image) const =0

Detailed Description

Definition at line 11 of file OCIO_cpu_processor.hh.

Constructor & Destructor Documentation

◆ ~CPUProcessor()

virtual blender::ocio::CPUProcessor::~CPUProcessor ( )
virtualdefault

Member Function Documentation

◆ apply()

virtual void blender::ocio::CPUProcessor::apply ( const PackedImage & image) const
pure virtual

Apply processor on every pixel of the image with straight (un-premultiplied) alpha.

Implemented in blender::ocio::LibOCIOCPUProcessor.

Referenced by blender::ColormanageProcessor::apply(), blender::IMB_colormanagement_colorspace_to_scene_linear(), and blender::IMB_colormanagement_scene_linear_to_colorspace().

◆ apply_predivide()

virtual void blender::ocio::CPUProcessor::apply_predivide ( const PackedImage & image) const
pure virtual

Apply processor on every pixel of the image with associated (premultiplied) alpha.

Implemented in blender::ocio::LibOCIOCPUProcessor.

Referenced by blender::ColormanageProcessor::apply(), and blender::IMB_colormanagement_colorspace_to_scene_linear().

◆ apply_rgb()

◆ apply_rgba()

virtual void blender::ocio::CPUProcessor::apply_rgba ( float rgba[4]) const
pure virtual

Apply the processor on a single pixel with straight (un-premultiplied) alpha. The pixel is modified in-place.

Implemented in blender::ocio::LibOCIOCPUProcessor.

Referenced by blender::ColormanageProcessor::apply_v4(), and blender::IMB_colormanagement_colorspace_to_scene_linear_v4().

◆ apply_rgba_predivide()

virtual void blender::ocio::CPUProcessor::apply_rgba_predivide ( float rgba[4]) const
pure virtual

Apply the processor on a single pixel with associated (premultiplied) alpha. The pixel is modified in-place.

Implemented in blender::ocio::LibOCIOCPUProcessor.

Referenced by blender::ColormanageProcessor::apply_v4_predivide(), and blender::IMB_colormanagement_colorspace_to_scene_linear_v4().

◆ is_noop()

virtual bool blender::ocio::CPUProcessor::is_noop ( ) const
pure virtual

Returns true if the processor is known to not perform any actual color space conversion.

Implemented in blender::ocio::LibOCIOCPUProcessor.

Referenced by blender::ColormanageProcessor::is_noop(), and blender::ocio::LibOCIOColorSpace::is_scene_linear().


The documentation for this class was generated from the following file: