FFmpeg
|
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... | |
uint8_t | flags |
AVComponentDescriptor | comp [4] |
Parameters that describe how pixels are packed. 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.
- 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.
Field Documentation
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 86 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_props(), config_props_output(), decode_slice(), encode_frame(), encode_slice(), ff_check_pixfmt_descriptors(), ff_draw_init(), ff_sws_init_output_funcs(), ff_yadif_init_x86(), filter(), filter_frame(), get_pix_fmt_depth(), get_pix_fmt_score(), hScale16To15_c(), hScale16To19_c(), is16BPS(), is9_OR_10BPS(), is_planar_yuv(), is_yuv_planar(), libopenjpeg_decode_frame(), libopenjpeg_ispacked(), libopenjpeg_matches_pix_fmt(), mj2_create_image(), planarCopyWrapper(), pnm_encode_frame(), query_formats(), sws_init_context(), swScale(), video_get_buffer(), write_packet(), and yuv2gbrp_full_X_c().
uint8_t AVPixFmtDescriptor::flags |
Definition at line 76 of file pixdesc.h.
Referenced by av_get_padded_bits_per_pixel(), av_image_alloc(), av_image_copy(), av_image_copy_to_buffer(), av_image_fill_linesizes(), av_image_fill_pointers(), av_image_get_buffer_size(), av_image_get_linesize(), av_picture_pad(), av_read_image_line(), av_write_image_line(), avpriv_color_frame(), config_input(), config_props(), create_all_formats(), ff_all_formats(), ff_check_pixfmt_descriptors(), ff_draw_color(), ff_draw_init(), ff_merge_formats(), ff_pnm_decode_header(), filter_frame(), get_buffer_internal(), get_color_type(), get_video_buffer(), image_get_linesize(), is_hwaccel_pix_fmt(), is_planar_yuv(), is_yuv_planar(), isALPHA(), isBE(), isPackedRGB(), isPlanar(), isPlanarRGB(), isPlanarYUV(), isRGB(), isYUV(), main(), query_formats(), raw_decode(), raw_init_decoder(), show_pix_fmts(), usePal(), write_header(), 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_buffersrc_add_frame_internal(), av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), av_image_copy(), av_image_copy_to_buffer(), av_image_fill_pointers(), av_picture_crop(), av_picture_pad(), av_pix_fmt_get_chroma_sub_sample(), avcodec_get_chroma_sub_sample(), avpriv_color_frame(), config_input(), config_input_main(), config_input_overlay(), config_input_top(), config_out_props(), config_props(), config_props_output(), copy_picture_field(), ff_check_pixfmt_descriptors(), ff_draw_horiz_band(), ff_draw_init(), ff_h264_draw_horiz_band(), ff_MPV_frame_end(), ff_opencl_deshake_process_inout_buf(), filter(), filter_frame(), geq_config_props(), get_buffer_internal(), get_pix_fmt_score(), get_video_buffer(), getSubSampleFactors(), libopenjpeg_matches_pix_fmt(), mj2_create_image(), query_formats(), request_frame(), and write_packet().
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_overlay(), config_input_top(), config_props(), config_props_output(), ff_check_pixfmt_descriptors(), 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(), request_frame(), and write_packet().
const char* AVPixFmtDescriptor::name |
Definition at line 56 of file pixdesc.h.
Referenced by 7digital-python.lockerEndpoint.LockerArtist::__init__(), 7digital-python.lib.py7digital.Artist::__init__(), 7digital-python.lib.py7digital.Tag::__init__(), 7digital-python.lib.py7digital.Label::__init__(), av_get_pix_fmt_name(), av_get_pix_fmt_string(), av_picture_pad(), av_pix_fmt_desc_next(), doTest(), ff_check_pixfmt_descriptors(), ff_draw_color(), ff_draw_init(), ff_draw_supported_pixel_formats(), filter_frame(), get_color_type(), 7digital-python.lib.py7digital.Artist::get_name(), 7digital-python.lib.py7digital.Tag::get_name(), 7digital-python.lib.py7digital.Label::get_name(), main(), print_digraph(), selfTest(), 7digital-python.lib.py7digital.Artist::set_name(), 7digital-python.lib.py7digital.Tag::set_name(), 7digital-python.lib.py7digital.Label::set_name(), show_pix_fmts(), 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_padded_bits_per_pixel(), av_get_pix_fmt_string(), av_image_copy(), av_image_copy_to_buffer(), av_picture_pad(), av_pix_fmt_count_planes(), avcodec_find_best_pix_fmt_of_2(), avpriv_color_frame(), choose_pixel_fmt(), config_input(), config_props(), config_props_output(), copy_picture_field(), decode_block(), decode_frame(), encode_frame(), encode_init(), ff_check_pixfmt_descriptors(), ff_draw_init(), ff_merge_formats(), filter(), filter_frame(), geq_config_props(), get_color_type(), get_pix_fmt_depth(), get_pix_fmt_score(), is_planar_yuv(), is_yuv_planar(), isPlanar(), isYUV(), libopenjpeg_ispacked(), libopenjpeg_matches_pix_fmt(), mj2_create_image(), pick_format(), query_formats(), show_pix_fmts(), write_header(), and write_packet().
The documentation for this struct was generated from the following file:
Generated on Mon Nov 18 2024 06:52:11 for FFmpeg by 1.8.11