digiKam
heif::HeifPixelImage Class Reference
+ Inheritance diagram for heif::HeifPixelImage:

Public Member Functions

bool add_plane (heif_channel channel, int width, int height, int bit_depth)
 
void copy_new_plane_from (const std::shared_ptr< const HeifPixelImage > &src_image, heif_channel src_channel, heif_channel dst_channel)
 
void create (int width, int height, heif_colorspace colorspace, heif_chroma chroma)
 
Error crop (int left, int right, int top, int bottom, std::shared_ptr< HeifPixelImage > &out_img) const
 
void fill_new_plane (heif_channel dst_channel, uint8_t value, int width, int height)
 
Error fill_RGB_16bit (uint16_t r, uint16_t g, uint16_t b, uint16_t a)
 
int get_bits_per_pixel (enum heif_channel channel) const
 
std::set< enum heif_channelget_channel_set () const
 
heif_chroma get_chroma_format () const
 
std::shared_ptr< const color_profileget_color_profile ()
 
heif_colorspace get_colorspace () const
 
const char * get_error () const
 
int get_height () const
 
int get_height (enum 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
 
int get_storage_bits_per_pixel (enum heif_channel channel) const
 
int get_width () const
 
int get_width (enum heif_channel channel) const
 
bool has_alpha () const
 
bool has_channel (heif_channel channel) const
 
 HeifPixelImage ()
 
Error mirror_inplace (bool horizontal)
 
Error overlay (std::shared_ptr< HeifPixelImage > &overlay, int dx, int dy)
 
Error rotate_ccw (int angle_degrees, std::shared_ptr< HeifPixelImage > &out_img)
 
Error scale_nearest_neighbor (std::shared_ptr< HeifPixelImage > &output, int width, int height) const
 
void set_color_profile (std::shared_ptr< const color_profile > profile)
 
void set_error (std::string err)
 
void set_success ()
 
void transfer_plane_from_image_as (std::shared_ptr< HeifPixelImage > source, heif_channel src_channel, heif_channel dst_channel)
 
 ~HeifPixelImage ()
 

Constructor & Destructor Documentation

◆ HeifPixelImage()

heif::HeifPixelImage::HeifPixelImage ( )
explicit

◆ ~HeifPixelImage()

heif::HeifPixelImage::~HeifPixelImage ( )

Member Function Documentation

◆ add_plane()

bool heif::HeifPixelImage::add_plane ( heif_channel  channel,
int  width,
int  height,
int  bit_depth 
)

◆ copy_new_plane_from()

void heif::HeifPixelImage::copy_new_plane_from ( const std::shared_ptr< const HeifPixelImage > &  src_image,
heif_channel  src_channel,
heif_channel  dst_channel 
)

◆ create()

void heif::HeifPixelImage::create ( int  width,
int  height,
heif_colorspace  colorspace,
heif_chroma  chroma 
)

◆ crop()

Error heif::HeifPixelImage::crop ( int  left,
int  right,
int  top,
int  bottom,
std::shared_ptr< HeifPixelImage > &  out_img 
) const

◆ fill_new_plane()

void heif::HeifPixelImage::fill_new_plane ( heif_channel  dst_channel,
uint8_t  value,
int  width,
int  height 
)

◆ fill_RGB_16bit()

Error heif::HeifPixelImage::fill_RGB_16bit ( uint16_t  r,
uint16_t  g,
uint16_t  b,
uint16_t  a 
)

◆ get_bits_per_pixel()

int heif::HeifPixelImage::get_bits_per_pixel ( enum heif_channel  channel) const

◆ get_channel_set()

std::set<enum heif_channel> heif::HeifPixelImage::get_channel_set ( ) const

◆ get_chroma_format()

heif_chroma heif::HeifPixelImage::get_chroma_format ( ) const
inline

◆ get_color_profile()

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

◆ get_colorspace()

heif_colorspace heif::HeifPixelImage::get_colorspace ( ) const
inline

◆ get_error()

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

◆ get_height() [1/2]

int heif::HeifPixelImage::get_height ( ) const
inline

◆ get_height() [2/2]

int heif::HeifPixelImage::get_height ( enum heif_channel  channel) const

◆ get_plane() [1/2]

uint8_t* heif::HeifPixelImage::get_plane ( enum heif_channel  channel,
int *  out_stride 
)

◆ get_plane() [2/2]

const uint8_t* heif::HeifPixelImage::get_plane ( enum heif_channel  channel,
int *  out_stride 
) const

◆ get_storage_bits_per_pixel()

int heif::HeifPixelImage::get_storage_bits_per_pixel ( enum heif_channel  channel) const

◆ get_width() [1/2]

int heif::HeifPixelImage::get_width ( ) const
inline

◆ get_width() [2/2]

int heif::HeifPixelImage::get_width ( enum heif_channel  channel) const

◆ has_alpha()

bool heif::HeifPixelImage::has_alpha ( ) const

◆ has_channel()

bool heif::HeifPixelImage::has_channel ( heif_channel  channel) const

◆ mirror_inplace()

Error heif::HeifPixelImage::mirror_inplace ( bool  horizontal)

◆ overlay()

Error heif::HeifPixelImage::overlay ( std::shared_ptr< HeifPixelImage > &  overlay,
int  dx,
int  dy 
)

◆ rotate_ccw()

Error heif::HeifPixelImage::rotate_ccw ( int  angle_degrees,
std::shared_ptr< HeifPixelImage > &  out_img 
)

◆ scale_nearest_neighbor()

Error heif::HeifPixelImage::scale_nearest_neighbor ( std::shared_ptr< HeifPixelImage > &  output,
int  width,
int  height 
) const

◆ set_color_profile()

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

◆ set_error()

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

◆ set_success()

void heif::ErrorBuffer::set_success ( )
inlineinherited

◆ transfer_plane_from_image_as()

void heif::HeifPixelImage::transfer_plane_from_image_as ( std::shared_ptr< HeifPixelImage source,
heif_channel  src_channel,
heif_channel  dst_channel 
)

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