Function libheif_sys::heif_image_get_bits_per_pixel

source ยท
pub unsafe extern "C" fn heif_image_get_bits_per_pixel(
    arg1: *const heif_image,
    channel: heif_channel
) -> c_int
Expand description

Get the number of bits per pixel in the given image channel. Returns -1 if a non-existing channel was given. Note that the number of bits per pixel may be different for each color channel. This function returns the number of bits used for storage of each pixel. Especially for HDR images, this is probably not what you want. Have a look at heif_image_get_bits_per_pixel_range() instead.