Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_ConvertOperation.h
| Show All 31 Lines | public: | ||||
| void initExecution() override; | void initExecution() override; | ||||
| void deinitExecution() override; | void deinitExecution() override; | ||||
| void update_memory_buffer_partial(MemoryBuffer *output, | void update_memory_buffer_partial(MemoryBuffer *output, | ||||
| const rcti &area, | const rcti &area, | ||||
| Span<MemoryBuffer *> inputs) final; | Span<MemoryBuffer *> inputs) final; | ||||
| protected: | protected: | ||||
| virtual void hash_output_params() override; | |||||
| virtual void update_memory_buffer_partial(BuffersIterator<float> &it) = 0; | virtual void update_memory_buffer_partial(BuffersIterator<float> &it) = 0; | ||||
| }; | }; | ||||
| class ConvertValueToColorOperation : public ConvertBaseOperation { | class ConvertValueToColorOperation : public ConvertBaseOperation { | ||||
| public: | public: | ||||
| ConvertValueToColorOperation(); | ConvertValueToColorOperation(); | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; | ||||
| ▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | public: | ||||
| ConvertRGBToYCCOperation(); | ConvertRGBToYCCOperation(); | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; | ||||
| /** Set the YCC mode */ | /** Set the YCC mode */ | ||||
| void setMode(int mode); | void setMode(int mode); | ||||
| protected: | protected: | ||||
| void hash_output_params() override; | |||||
| void update_memory_buffer_partial(BuffersIterator<float> &it) override; | void update_memory_buffer_partial(BuffersIterator<float> &it) override; | ||||
| }; | }; | ||||
| class ConvertYCCToRGBOperation : public ConvertBaseOperation { | class ConvertYCCToRGBOperation : public ConvertBaseOperation { | ||||
| private: | private: | ||||
| /** YCbCr mode (Jpeg, ITU601, ITU709) */ | /** YCbCr mode (Jpeg, ITU601, ITU709) */ | ||||
| int m_mode; | int m_mode; | ||||
| public: | public: | ||||
| ConvertYCCToRGBOperation(); | ConvertYCCToRGBOperation(); | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; | ||||
| /** Set the YCC mode */ | /** Set the YCC mode */ | ||||
| void setMode(int mode); | void setMode(int mode); | ||||
| protected: | protected: | ||||
| void hash_output_params() override; | |||||
| void update_memory_buffer_partial(BuffersIterator<float> &it) override; | void update_memory_buffer_partial(BuffersIterator<float> &it) override; | ||||
| }; | }; | ||||
| class ConvertRGBToYUVOperation : public ConvertBaseOperation { | class ConvertRGBToYUVOperation : public ConvertBaseOperation { | ||||
| public: | public: | ||||
| ConvertRGBToYUVOperation(); | ConvertRGBToYUVOperation(); | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; | ||||
| ▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines | |||||