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) More...
uint8_t log2_chroma_w
 Amount to shift the luma width right to find the chroma width. More...
uint8_t log2_chroma_h
 Amount to shift the luma height right to find the chroma height. More...
uint64_t flags
 Combination of AV_PIX_FMT_FLAG_... More...
AVComponentDescriptor comp [4]
 Parameters that describe how pixels are packed. More...
const char * alias
 Alternative comma-separated names. More...

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.

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 69 of file pixdesc.h.

Field Documentation

◆ name

const char* AVPixFmtDescriptor::name

◆ nb_components

uint8_t AVPixFmtDescriptor::nb_components

◆ log2_chroma_w

uint8_t AVPixFmtDescriptor::log2_chroma_w

◆ log2_chroma_h

uint8_t AVPixFmtDescriptor::log2_chroma_h

◆ flags

uint64_t AVPixFmtDescriptor::flags

◆ comp

AVComponentDescriptor AVPixFmtDescriptor::comp[4]

Parameters that describe how pixels are packed.

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.

If present, the Alpha channel is always the last component.

Definition at line 105 of file pixdesc.h.

Referenced by av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), av_image_fill_max_pixsteps(), avcodec_string(), config_input(), config_out_props(), config_output(), config_props(), copy_picture_field(), create_filtergraph(), cuvid_decode_init(), decode_slice(), draw_line(), encode_preinit_video(), encode_slice(), ff_blend_mask(), ff_blend_rectangle(), ff_bwdif_init_x86(), ff_draw_color(), ff_fill_rectangle(), ff_huffyuvdsp_init_x86(), ff_huffyuvencdsp_init_x86(), ff_mjpeg_receive_frame(), ff_nvdec_decode_init(), ff_yadif_init_x86(), ffprobe_show_pixel_formats(), fill_picture_parameters(), filter(), filter_frame(), filter_slice(), flip_bayer(), get_pix_fmt_score(), init_output_stream_encode(), libx265_encode_frame(), match_pixfmt(), mov_write_ftyp_tag(), mov_write_pixi_tag(), mxf_init(), nvdec_vp9_start_frame(), overlay_opencl_load(), planarCopyWrapper(), planarRgb16ToRgb16Wrapper(), planarToP01xWrapper(), pnm_encode_frame(), query_formats(), remap_opencl_load(), reverse_color16(), Rgb16ToPlanarRgb16Wrapper(), show_pix_fmts(), sws_init_context(), vc2_encode_init(), vdpau_vp9_start_frame(), X264_init(), and xfade_opencl_load().

◆ alias

const char* AVPixFmtDescriptor::alias

Alternative comma-separated names.

Definition at line 110 of file pixdesc.h.

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