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... | |
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... | |
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.
const char* AVPixFmtDescriptor::name |
Definition at line 82 of file pixdesc.h.
Referenced by av_get_pix_fmt_name(), av_get_pix_fmt_string(), av_pix_fmt_desc_next(), doTest(), ff_check_pixfmt_descriptors(), ff_draw_color(), ffprobe_show_pixel_formats(), filter(), main(), match_pixfmt(), planarRgb16ToRgb16Wrapper(), Rgb16ToPlanarRgb16Wrapper(), selfTest(), show_pix_fmts(), and transpose_opencl_config_output().
uint8_t AVPixFmtDescriptor::nb_components |
The number of components each pixel has, (1-4)
Definition at line 83 of file pixdesc.h.
Referenced by av_find_best_pix_fmt_of_2(), av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), av_get_pix_fmt_string(), checkstride(), config_props_output(), cuvid_decode_init(), cuvid_output_frame(), ff_check_pixfmt_descriptors(), ff_merge_formats(), ffprobe_show_pixel_formats(), filter(), filter_frame(), get_pix_fmt_score(), match_pixfmt(), overlay_opencl_load(), pick_format(), and show_pix_fmts().
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 = AV_CEIL_RSHIFT(luma_width, log2_chroma_w) The note above is needed to ensure rounding up. This value only refers to the chroma components.
Definition at line 92 of file pixdesc.h.
Referenced by av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), config_input(), config_input_main(), config_input_overlay(), config_output(), config_props(), config_props_output(), create_filtergraph(), draw_horiz_band(), ff_check_pixfmt_descriptors(), ff_choose_chroma_location(), ff_fill_line_with_color(), ff_scale_eval_dimensions(), ffprobe_show_pixel_formats(), fill_picture_parameters(), filter(), filter_frame(), get_pix_fmt_score(), match_pixfmt(), mxf_write_header(), nvdec_vp9_start_frame(), overlay_opencl_load(), transpose_opencl_config_output(), and vaapi_vp9_start_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= AV_CEIL_RSHIFT(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 101 of file pixdesc.h.
Referenced by av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), config_input(), config_input_main(), config_input_overlay(), config_output(), config_props(), config_props_output(), create_filtergraph(), cuvid_output_frame(), draw_horiz_band(), ff_check_pixfmt_descriptors(), ff_choose_chroma_location(), ff_scale_eval_dimensions(), ffprobe_show_pixel_formats(), fill_picture_parameters(), filter(), filter_frame(), get_pix_fmt_score(), match_pixfmt(), mxf_write_header(), nvdec_vp9_start_frame(), overlay_opencl_load(), transpose_opencl_config_output(), utvideo_encode_init(), and vaapi_vp9_start_frame().
uint64_t AVPixFmtDescriptor::flags |
Combination of AV_PIX_FMT_FLAG_...
flags.
Definition at line 106 of file pixdesc.h.
Referenced by av_get_padded_bits_per_pixel(), config_input(), config_props(), encode_init(), ff_blend_mask(), ff_blend_rectangle(), ff_check_pixfmt_descriptors(), ff_draw_color(), ff_merge_formats(), ff_pnm_decode_header(), ffprobe_show_pixel_formats(), filter_frame(), get_pix_fmt_score(), is_native_endian(), main(), match_pixfmt(), planarRgb16ToRgb16Wrapper(), Rgb16ToPlanarRgb16Wrapper(), and show_pix_fmts().
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 117 of file pixdesc.h.
Referenced by av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), av_image_fill_max_pixsteps(), avcodec_open2(), avcodec_string(), config_input(), config_out_props(), config_output(), config_props(), copy_picture_field(), create_filtergraph(), cuvid_decode_init(), decode_slice(), draw_line(), encode_slice(), ff_blend_mask(), ff_blend_rectangle(), ff_bwdif_init_x86(), ff_check_pixfmt_descriptors(), ff_draw_color(), ff_fill_rectangle(), ff_huffyuvdsp_init_x86(), ff_huffyuvencdsp_init_x86(), ff_mjpeg_decode_frame(), ff_nvdec_decode_init(), ff_yadif_init_x86(), ffprobe_show_pixel_formats(), fill_picture_parameters(), filter(), filter_frame(), filter_slice(), get_pix_fmt_score(), init_output_stream_encode(), libx265_encode_frame(), libx265_encode_init(), match_pixfmt(), mxf_write_header(), nvdec_vp9_start_frame(), overlay_opencl_load(), planarCopyWrapper(), planarRgb16ToRgb16Wrapper(), planarToP01xWrapper(), pnm_encode_frame(), reverse_color16(), Rgb16ToPlanarRgb16Wrapper(), sws_init_context(), and X264_init().
const char* AVPixFmtDescriptor::alias |