digiKam
heif::HeifContext::Image Class Reference
+ Inheritance diagram for heif::HeifContext::Image:

Public Member Functions

void add_metadata (std::shared_ptr< ImageMetadata > metadata)
 
void add_thumbnail (std::shared_ptr< Image > img)
 
Error decode_image (std::shared_ptr< HeifPixelImage > &img, heif_colorspace colorspace=heif_colorspace_undefined, heif_chroma chroma=heif_chroma_undefined, const struct heif_decoding_options *options=nullptr) const
 
Error encode_image_as_hevc (std::shared_ptr< HeifPixelImage > image, struct heif_encoder *encoder, const struct heif_encoding_options *options, enum heif_image_input_class input_class)
 
std::shared_ptr< Imageget_alpha_channel () const
 
int get_chroma_bits_per_pixel () const
 
std::shared_ptr< const color_profileget_color_profile () const
 
std::shared_ptr< Imageget_depth_channel () const
 
const struct heif_depth_representation_infoget_depth_representation_info () const
 
const char * get_error () const
 
int get_height () const
 
heif_item_id get_id () const
 
int get_ispe_height () const
 
int get_ispe_width () const
 
int get_luma_bits_per_pixel () const
 
std::vector< std::shared_ptr< ImageMetadata > > get_metadata () const
 
std::vector< std::shared_ptr< Image > > get_thumbnails () const
 
int get_width () const
 
bool has_depth_representation_info () const
 
 Image (HeifContext *file, heif_item_id id)
 
bool is_alpha_channel () const
 
bool is_depth_channel () const
 
bool is_primary () const
 
bool is_thumbnail () const
 
void set_alpha_channel (std::shared_ptr< Image > img)
 
void set_color_profile (std::shared_ptr< const color_profile > profile)
 
void set_depth_channel (std::shared_ptr< Image > img)
 
void set_depth_representation_info (struct heif_depth_representation_info &info)
 
void set_error (std::string err)
 
void set_is_alpha_channel_of (heif_item_id id)
 
void set_is_depth_channel_of (heif_item_id id)
 
void set_is_thumbnail_of (heif_item_id id)
 
void set_ispe_resolution (int w, int h)
 
void set_preencoded_hevc_image (const std::vector< uint8_t > &data)
 
void set_primary (bool flag=true)
 
void set_resolution (int w, int h)
 
void set_success ()
 
 ~Image ()
 

Constructor & Destructor Documentation

◆ Image()

heif::HeifContext::Image::Image ( HeifContext file,
heif_item_id  id 
)

◆ ~Image()

heif::HeifContext::Image::~Image ( )

Member Function Documentation

◆ add_metadata()

void heif::HeifContext::Image::add_metadata ( std::shared_ptr< ImageMetadata metadata)
inline

◆ add_thumbnail()

void heif::HeifContext::Image::add_thumbnail ( std::shared_ptr< Image img)
inline

◆ decode_image()

Error heif::HeifContext::Image::decode_image ( std::shared_ptr< HeifPixelImage > &  img,
heif_colorspace  colorspace = heif_colorspace_undefined,
heif_chroma  chroma = heif_chroma_undefined,
const struct heif_decoding_options options = nullptr 
) const

◆ encode_image_as_hevc()

Error heif::HeifContext::Image::encode_image_as_hevc ( std::shared_ptr< HeifPixelImage image,
struct heif_encoder encoder,
const struct heif_encoding_options options,
enum heif_image_input_class  input_class 
)

◆ get_alpha_channel()

std::shared_ptr<Image> heif::HeifContext::Image::get_alpha_channel ( ) const
inline

◆ get_chroma_bits_per_pixel()

int heif::HeifContext::Image::get_chroma_bits_per_pixel ( ) const

◆ get_color_profile()

std::shared_ptr<const color_profile> heif::HeifContext::Image::get_color_profile ( ) const
inline

◆ get_depth_channel()

std::shared_ptr<Image> heif::HeifContext::Image::get_depth_channel ( ) const
inline

◆ get_depth_representation_info()

const struct heif_depth_representation_info& heif::HeifContext::Image::get_depth_representation_info ( ) const
inline

◆ get_error()

const char* heif::ErrorBuffer::get_error ( ) const
inlineinherited

◆ get_height()

int heif::HeifContext::Image::get_height ( ) const
inline

◆ get_id()

heif_item_id heif::HeifContext::Image::get_id ( ) const
inline

◆ get_ispe_height()

int heif::HeifContext::Image::get_ispe_height ( ) const
inline

◆ get_ispe_width()

int heif::HeifContext::Image::get_ispe_width ( ) const
inline

◆ get_luma_bits_per_pixel()

int heif::HeifContext::Image::get_luma_bits_per_pixel ( ) const

◆ get_metadata()

std::vector<std::shared_ptr<ImageMetadata> > heif::HeifContext::Image::get_metadata ( ) const
inline

◆ get_thumbnails()

std::vector<std::shared_ptr<Image> > heif::HeifContext::Image::get_thumbnails ( ) const
inline

◆ get_width()

int heif::HeifContext::Image::get_width ( ) const
inline

◆ has_depth_representation_info()

bool heif::HeifContext::Image::has_depth_representation_info ( ) const
inline

◆ is_alpha_channel()

bool heif::HeifContext::Image::is_alpha_channel ( ) const
inline

◆ is_depth_channel()

bool heif::HeifContext::Image::is_depth_channel ( ) const
inline

◆ is_primary()

bool heif::HeifContext::Image::is_primary ( ) const
inline

◆ is_thumbnail()

bool heif::HeifContext::Image::is_thumbnail ( ) const
inline

◆ set_alpha_channel()

void heif::HeifContext::Image::set_alpha_channel ( std::shared_ptr< Image img)
inline

◆ set_color_profile()

void heif::HeifContext::Image::set_color_profile ( std::shared_ptr< const color_profile profile)
inline

◆ set_depth_channel()

void heif::HeifContext::Image::set_depth_channel ( std::shared_ptr< Image img)
inline

◆ set_depth_representation_info()

void heif::HeifContext::Image::set_depth_representation_info ( struct heif_depth_representation_info info)
inline

◆ set_error()

void heif::ErrorBuffer::set_error ( std::string  err)
inlineinherited

◆ set_is_alpha_channel_of()

void heif::HeifContext::Image::set_is_alpha_channel_of ( heif_item_id  id)
inline

◆ set_is_depth_channel_of()

void heif::HeifContext::Image::set_is_depth_channel_of ( heif_item_id  id)
inline

◆ set_is_thumbnail_of()

void heif::HeifContext::Image::set_is_thumbnail_of ( heif_item_id  id)
inline

◆ set_ispe_resolution()

void heif::HeifContext::Image::set_ispe_resolution ( int  w,
int  h 
)
inline

◆ set_preencoded_hevc_image()

void heif::HeifContext::Image::set_preencoded_hevc_image ( const std::vector< uint8_t > &  data)

◆ set_primary()

void heif::HeifContext::Image::set_primary ( bool  flag = true)
inline

◆ set_resolution()

void heif::HeifContext::Image::set_resolution ( int  w,
int  h 
)
inline

◆ set_success()

void heif::ErrorBuffer::set_success ( )
inlineinherited

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