FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
AVPixFmtDescriptor Struct Reference

Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes of an image. More...

#include <pixdesc.h>

Data Fields

const char * name
 
uint8_t nb_components
 The number of components each pixel has, (1-4)
 
uint8_t log2_chroma_w
 Amount to shift the luma width right to find the chroma width.
 
uint8_t log2_chroma_h
 Amount to shift the luma height right to find the chroma height.
 
uint8_t flags
 
AVComponentDescriptor comp [4]
 Parameters that describe how pixels are packed.
 

Detailed Description

Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes of an image.

It also stores the subsampling factors and number of components.

Note
This is separate of the colorspace (RGB, YCbCr, YPbPr, JPEG-style YUV and all the YUV variants) AVPixFmtDescriptor just stores how values are stored not what these values represent.

Definition at line 55 of file pixdesc.h.

Field Documentation

const char* AVPixFmtDescriptor::name
uint8_t AVPixFmtDescriptor::nb_components
uint8_t AVPixFmtDescriptor::log2_chroma_w

Amount to shift the luma width right to find the chroma width.

For YV12 this is 1 for example. chroma_width = -((-luma_width) >> log2_chroma_w) The note above is needed to ensure rounding up. This value only refers to the chroma components.chroma_width = -((-luma_width )>>log2_chroma_w)

Definition at line 66 of file pixdesc.h.

Referenced by av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), av_picture_crop(), av_picture_pad(), av_pix_fmt_get_chroma_sub_sample(), avcodec_align_dimensions(), avcodec_get_chroma_sub_sample(), avpriv_color_frame(), config_input(), config_input_main(), config_input_top(), config_props(), config_props_output(), ff_draw_horiz_band(), ff_draw_init(), ff_fill_line_with_color(), ff_MPV_frame_end(), filter(), filter_frame(), geq_config_props(), get_pix_fmt_score(), getSubSampleFactors(), image_get_linesize(), libopenjpeg_matches_pix_fmt(), mj2_create_image(), query_formats(), and write_packet().

uint8_t AVPixFmtDescriptor::log2_chroma_h
uint8_t AVPixFmtDescriptor::flags
AVComponentDescriptor AVPixFmtDescriptor::comp[4]

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