99 virtual std::vector<ColorStateWithCost>
104 virtual std::shared_ptr<HeifPixelImage>
118 std::shared_ptr<HeifPixelImage>
124 std::vector<std::shared_ptr<ColorConversionOperation>> m_operations;
Definition: heif_colorconversion.h:91
virtual std::vector< ColorStateWithCost > state_after_conversion(ColorState input_state, ColorState target_state, ColorConversionOptions options=ColorConversionOptions())=0
virtual std::shared_ptr< HeifPixelImage > convert_colorspace(const std::shared_ptr< const HeifPixelImage > &input, ColorState target_state, ColorConversionOptions options=ColorConversionOptions())=0
virtual ~ColorConversionOperation()=default
Definition: heif_colorconversion.h:112
std::shared_ptr< HeifPixelImage > convert_image(const std::shared_ptr< HeifPixelImage > &input)
void debug_dump_pipeline() const
bool construct_pipeline(ColorState input_state, ColorState target_state, ColorConversionOptions options=ColorConversionOptions())
heif_colorspace
Definition: heif.h:741
@ heif_colorspace_undefined
Definition: heif.h:742
heif_chroma
Definition: heif.h:722
@ heif_chroma_undefined
Definition: heif.h:723
Definition: bitstream.h:41
ColorConversionCriterion
Definition: heif_colorconversion.h:44
Definition: heif_colorconversion.h:52
ColorConversionCosts operator+(const ColorConversionCosts &b) const
Definition: heif_colorconversion.h:65
float quality
Definition: heif_colorconversion.h:62
float memory
Definition: heif_colorconversion.h:63
ColorConversionCosts()=default
ColorConversionCosts(float _speed, float _quality, float _memory)
Definition: heif_colorconversion.h:55
float total(ColorConversionCriterion) const
Definition: heif_colorconversion.h:71
float speed
Definition: heif_colorconversion.h:61
Definition: heif_colorconversion.h:78
ColorConversionCriterion criterion
Definition: heif_colorconversion.h:79
Definition: heif_colorconversion.h:84
ColorState color_state
Definition: heif_colorconversion.h:85
ColorConversionCosts costs
Definition: heif_colorconversion.h:86
Definition: heif_colorconversion.h:30
ColorState(heif_colorspace colorspace, heif_chroma chroma, bool has_alpha, int bits_per_pixel)
Definition: heif_colorconversion.h:37
heif_chroma chroma
Definition: heif_colorconversion.h:32
int bits_per_pixel
Definition: heif_colorconversion.h:34
bool has_alpha
Definition: heif_colorconversion.h:33
bool operator==(const ColorState &) const
heif_colorspace colorspace
Definition: heif_colorconversion.h:31