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

Parameters that describe how pixels are packed.

If the format has chroma components, they must be stored in comp[1] and comp[2].

Definition at line 83 of file pixdesc.h.

Referenced by av_get_bits_per_pixel(), av_image_copy(), av_image_fill_max_pixsteps(), av_image_fill_pointers(), av_read_image_line(), av_write_image_line(), avcodec_default_get_buffer(), avpicture_layout(), check_image_pointers(), filter(), hcscale(), hyscale(), planarCopyWrapper(), and return_frame().

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

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

Definition at line 75 of file pixdesc.h.

Referenced by av_get_bits_per_pixel(), av_image_copy(), av_image_fill_pointers(), av_picture_crop(), av_picture_pad(), avcodec_get_chroma_sub_sample(), avcodec_get_pix_fmt_loss(), avfilter_draw_slice(), avg_bits_per_pixel(), avpicture_layout(), color_config_props(), config_input(), config_input_main(), config_props(), config_props_output(), draw_slice(), end_frame(), ff_draw_horiz_band(), filter(), getSubSampleFactors(), MPV_frame_end(), and start_frame().

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_picture_crop(), av_picture_pad(), avcodec_align_dimensions(), avcodec_get_chroma_sub_sample(), avcodec_get_pix_fmt_loss(), avg_bits_per_pixel(), color_config_props(), config_input(), config_input_main(), config_props(), config_props_output(), draw_slice(), ff_draw_horiz_band(), ff_fill_line_with_color(), filter(), getSubSampleFactors(), image_get_linesize(), MPV_frame_end(), and start_frame().

The number of components each pixel has, (1-4).

Definition at line 57 of file pixdesc.h.

Referenced by av_get_bits_per_pixel(), av_get_pix_fmt_string(), av_image_copy(), avpicture_layout(), config_props(), draw_slice(), filter(), and opt_pix_fmts().


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

Generated on Fri Oct 26 02:39:51 2012 for FFmpeg by  doxygen 1.5.8