FFmpeg
 All Data Structures Namespaces 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 57 of file pixdesc.h.

Field Documentation

const char* AVPixFmtDescriptor::name
uint8_t AVPixFmtDescriptor::nb_components
uint8_t AVPixFmtDescriptor::log2_chroma_w
uint8_t AVPixFmtDescriptor::log2_chroma_h
uint8_t AVPixFmtDescriptor::flags
AVComponentDescriptor AVPixFmtDescriptor::comp[4]

Parameters that describe how pixels are packed.

If the format has 2 or 4 components, then alpha is last. If the format has 1 or 2 components, then luma is 0. If the format has 3 or 4 components, if the RGB flag is set then 0 is red, 1 is green and 2 is blue; otherwise 0 is luma, 1 is chroma-U and 2 is chroma-V.

Definition at line 88 of file pixdesc.h.

Referenced by av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), av_image_copy(), av_image_copy_to_buffer(), av_image_fill_max_pixsteps(), av_image_fill_pointers(), av_pix_fmt_count_planes(), av_read_image_line(), av_write_image_line(), avcodec_string(), avpriv_color_frame(), check_image_pointers(), config_input(), config_input_ref(), config_output(), decode_slice(), encode_frame(), encode_init(), encode_slice(), ff_check_pixfmt_descriptors(), ff_draw_init(), ff_hevc_output_frame(), ff_llviddsp_init_x86(), ff_sws_init_output_funcs(), ff_yadif_init_x86(), filter_frame(), filter_slice(), gen_waveform(), get_pix_fmt_depth(), get_pix_fmt_score(), hScale16To15_c(), hScale16To19_c(), is16BPS(), is9_OR_10BPS(), is_planar_yuv(), is_yuv_planar(), libopenjpeg_copy_to_packed16(), libopenjpeg_copyto16(), libopenjpeg_decode_frame(), libopenjpeg_ispacked(), libopenjpeg_matches_pix_fmt(), libx265_encode_frame(), mj2_create_image(), opengl_get_plane_pointer(), pix_fmt_match(), planarCopyWrapper(), planarRgb16ToRgb16Wrapper(), pnm_encode_frame(), query_formats(), Rgb16ToPlanarRgb16Wrapper(), smv_img_pnt(), sws_init_context(), swscale(), verify_md5(), video_get_buffer(), write_packet(), and yuv2gbrp_full_X_c().


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