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. |
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.
AVComponentDescriptor AVPixFmtDescriptor::comp[4] |
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 alloc_buffer(), av_get_bits_per_pixel(), av_image_copy(), av_image_fill_linesizes(), av_image_fill_max_pixsteps(), av_image_fill_pointers(), av_image_get_linesize(), av_read_image_line(), av_write_image_line(), avcodec_get_pix_fmt_loss(), avpicture_layout(), check_image_pointers(), config_input(), ff_sws_init_output_funcs(), filter(), hScale16To15_c(), hScale16To19_c(), is16BPS(), is9_OR_10BPS(), libopenjpeg_create_image(), libopenjpeg_decode_frame(), libopenjpeg_ispacked(), libopenjpeg_matches_pix_fmt(), planarCopyWrapper(), return_frame(), sws_init_context(), swScale(), and video_get_buffer().
uint8_t AVPixFmtDescriptor::flags |
Definition at line 76 of file pixdesc.h.
Referenced by av_image_alloc(), av_image_copy(), av_image_fill_linesizes(), av_image_fill_pointers(), av_image_get_linesize(), av_read_image_line(), av_write_image_line(), avcodec_get_pix_fmt_loss(), avpicture_get_size(), avpicture_layout(), config_props(), decode_slice(), encode_frame(), encode_slice(), ff_all_formats(), filter_frame(), is_gray(), is_hwaccel_pix_fmt(), is_yuv_planar(), isBE(), isPacked(), isPackedRGB(), isPlanar(), isPlanarRGB(), isPlanarYUV(), isRGB(), isYUV(), query_formats(), raw_decode(), show_pix_fmts(), usePal(), and xwd_encode_frame().
uint8_t AVPixFmtDescriptor::log2_chroma_h |
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(), av_pix_fmt_get_chroma_sub_sample(), avcodec_get_chroma_sub_sample(), avcodec_get_pix_fmt_loss(), avpicture_layout(), color_config_props(), config_input(), config_input_main(), config_props(), config_props_output(), ff_draw_horiz_band(), ff_MPV_frame_end(), filter(), filter_frame(), getSubSampleFactors(), libopenjpeg_create_image(), libopenjpeg_matches_pix_fmt(), and query_formats().
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_image_fill_linesizes(), av_image_get_linesize(), av_picture_crop(), av_picture_pad(), av_pix_fmt_get_chroma_sub_sample(), avcodec_align_dimensions(), avcodec_get_chroma_sub_sample(), avcodec_get_pix_fmt_loss(), color_config_props(), config_input(), config_input_main(), config_props(), config_props_output(), ff_draw_horiz_band(), ff_fill_line_with_color(), ff_MPV_frame_end(), filter(), filter_frame(), getSubSampleFactors(), libopenjpeg_create_image(), and libopenjpeg_matches_pix_fmt().
const char* AVPixFmtDescriptor::name |
Definition at line 56 of file pixdesc.h.
Referenced by av_get_pix_fmt_name(), av_get_pix_fmt_string(), doTest(), filter_frame(), print_digraph(), selfTest(), show_pix_fmts(), show_stream(), and sws_format_name().
uint8_t AVPixFmtDescriptor::nb_components |
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(), avcodec_get_pix_fmt_loss(), avpicture_layout(), config_props(), encode_frame(), ffv1_encode_init(), filter(), filter_frame(), is_gray(), isALPHA(), isPacked(), isPlanar(), isYUV(), libopenjpeg_create_image(), libopenjpeg_ispacked(), libopenjpeg_matches_pix_fmt(), query_formats(), and show_pix_fmts().