22 #ifndef LIBHEIF_HEIF_IMAGE_H
23 #define LIBHEIF_HEIF_IMAGE_H
87 std::shared_ptr<HeifPixelImage>& out_img);
92 std::shared_ptr<HeifPixelImage>& out_img)
const;
100 void set_color_profile(std::shared_ptr<const color_profile> profile) { m_color_profile = profile; }
111 uint8_t* allocated_mem =
nullptr;
119 std::shared_ptr<const color_profile> m_color_profile;
121 std::map<heif_channel, ImagePlane> m_planes;
Definition: heif_image.h:42
Error mirror_inplace(bool horizontal)
int get_height() const
Definition: heif_image.h:58
int get_width(enum heif_channel channel) const
int get_storage_bits_per_pixel(enum heif_channel channel) const
void transfer_plane_from_image_as(std::shared_ptr< HeifPixelImage > source, heif_channel src_channel, heif_channel dst_channel)
Error scale_nearest_neighbor(std::shared_ptr< HeifPixelImage > &output, int width, int height) const
Error rotate_ccw(int angle_degrees, std::shared_ptr< HeifPixelImage > &out_img)
void set_color_profile(std::shared_ptr< const color_profile > profile)
Definition: heif_image.h:100
heif_colorspace get_colorspace() const
Definition: heif_image.h:66
bool add_plane(heif_channel channel, int width, int height, int bit_depth)
heif_chroma get_chroma_format() const
Definition: heif_image.h:64
void copy_new_plane_from(const std::shared_ptr< const HeifPixelImage > &src_image, heif_channel src_channel, heif_channel dst_channel)
int get_bits_per_pixel(enum heif_channel channel) const
std::set< enum heif_channel > get_channel_set() const
std::shared_ptr< const color_profile > get_color_profile()
Definition: heif_image.h:102
int get_height(enum heif_channel channel) const
int get_width() const
Definition: heif_image.h:56
void fill_new_plane(heif_channel dst_channel, uint8_t value, int width, int height)
bool has_channel(heif_channel channel) const
uint8_t * get_plane(enum heif_channel channel, int *out_stride)
const uint8_t * get_plane(enum heif_channel channel, int *out_stride) const
Error crop(int left, int right, int top, int bottom, std::shared_ptr< HeifPixelImage > &out_img) const
void create(int width, int height, heif_colorspace colorspace, heif_chroma chroma)
Error fill_RGB_16bit(uint16_t r, uint16_t g, uint16_t b, uint16_t a)
Error overlay(std::shared_ptr< HeifPixelImage > &overlay, int dx, int dy)
heif_channel
Definition: heif.h:748
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
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: bitstream.h:41
int chroma_h_subsampling(heif_chroma c)
std::shared_ptr< HeifPixelImage > convert_colorspace(const std::shared_ptr< HeifPixelImage > &input, heif_colorspace colorspace, heif_chroma chroma)
int chroma_v_subsampling(heif_chroma c)