ark::image::detail

Functions

Declared in “ark/image/detail/avcodec_pixel_format.hh”:

  • AVPixelFormat to_av_pixel_format(image::ImageDataFormat format)
    Converts our image data format into an equivalent avcodec AVPixelFormat.

Declared in “ark/image/detail/libyuv_pixel_format.hh”:

  • libyuv::FourCC to_libyuv_pixel_format(image::ImageDataFormat format)
    Converts our image data format into the libyuv FOURCC codes, where possible.

Declared in “ark/image/detail/pixel_format.hh”:

  • bool is_data_format_compressed(image::ImageDataFormat format)
    Returns true if the given pixel format is compressed, false otherwise.

  • uint32_t to_pixel_size(image::ImageDataFormat format)
    Converts our image data format into an upper bound on the number of bytes-per-pixel used for that format. In other words, BGR would be 3 bytes, and YUY420 would be 2 bytes (as it is rounded up).

  • size_t minimum_image_size(image::ImageDataFormat format, uint32_t width, uint32_t height)
    Returns the minimum size this image needs to be to hold all of its content. This is the actual minimum bound, not a reasonable upper bound, as provided by “to_pixel_size”.

Declared in “ark/image/detail/simd_pixel_format.hh”:

  • SimdPixelFormatType to_simd_pixel_format(image::ImageDataFormat format)
    Converts our image data format into the Simd pixel format, where possible.