digiKam
heif::Image Class Reference

Classes

class  ScalingOptions
 

Public Member Functions

void add_plane (enum heif_channel channel, int width, int height, int bit_depth)
 
void create (int width, int height, enum heif_colorspace colorspace, enum heif_chroma chroma)
 
int get_bits_per_pixel (enum heif_channel channel) const noexcept
 
heif_chroma get_chroma_format () const noexcept
 
heif_colorspace get_colorspace () const noexcept
 
int get_height (enum heif_channel channel) const noexcept
 
const uint8_t * get_plane (enum heif_channel channel, int *out_stride) const noexcept
 
uint8_t * get_plane (enum heif_channel channel, int *out_stride) noexcept
 
int get_width (enum heif_channel channel) const noexcept
 
bool has_channel (enum heif_channel channel) const noexcept
 
 Image ()
 
 Image (heif_image *image)
 
Image scale_image (int width, int height, const ScalingOptions &options=ScalingOptions()) const
 

Friends

class Context
 

Constructor & Destructor Documentation

◆ Image() [1/2]

heif::Image::Image ( )
inline

Referenced by scale_image().

◆ Image() [2/2]

heif::Image::Image ( heif_image image)
inline

References heif_image_release().

Member Function Documentation

◆ add_plane()

void heif::Image::add_plane ( enum heif_channel  channel,
int  width,
int  height,
int  bit_depth 
)
inline

◆ create()

void heif::Image::create ( int  width,
int  height,
enum heif_colorspace  colorspace,
enum heif_chroma  chroma 
)
inline

◆ get_bits_per_pixel()

int heif::Image::get_bits_per_pixel ( enum heif_channel  channel) const
inlinenoexcept

◆ get_chroma_format()

heif_chroma heif::Image::get_chroma_format ( ) const
inlinenoexcept

◆ get_colorspace()

heif_colorspace heif::Image::get_colorspace ( ) const
inlinenoexcept

◆ get_height()

int heif::Image::get_height ( enum heif_channel  channel) const
inlinenoexcept

◆ get_plane() [1/2]

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

◆ get_plane() [2/2]

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

◆ get_width()

int heif::Image::get_width ( enum heif_channel  channel) const
inlinenoexcept

◆ has_channel()

bool heif::Image::has_channel ( enum heif_channel  channel) const
inlinenoexcept

◆ scale_image()

Image heif::Image::scale_image ( int  width,
int  height,
const ScalingOptions options = ScalingOptions() 
) const
inline

Friends And Related Function Documentation

◆ Context

friend class Context
friend

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