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 70 of file pixdesc.h.
Referenced by convert_from_tensorflow.Operand::__str__(), av_get_pix_fmt_name(), av_get_pix_fmt_string(), av_pix_fmt_desc_next(), doTest(), 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 71 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(), draw_line(), ff_blend_mask(), ff_blend_rectangle(), ffprobe_show_pixel_formats(), filter(), filter_frame(), get_pix_fmt_score(), libjxl_encode_frame(), match_pixfmt(), merge_formats_internal(), mov_init(), mov_write_pixi_tag(), overlay_opencl_load(), pick_format(), query_formats(), remap_opencl_load(), show_pix_fmts(), and xfade_opencl_load().
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 80 of file pixdesc.h.
Referenced by av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), blockdetect_config_input(), blurdetect_config_input(), choose_chroma_location(), config_input(), config_input_main(), config_input_overlay(), config_output(), config_props(), config_props_output(), create_filtergraph(), draw_horiz_band(), ff_scale_eval_dimensions(), ffprobe_show_pixel_formats(), fill_picture_parameters(), filter(), filter_frame(), get_pix_fmt_score(), match_pixfmt(), mov_write_ftyp_tag(), mxf_init(), nvdec_vp9_start_frame(), overlay_opencl_load(), scale_eval_dimensions(), transpose_opencl_config_output(), vaapi_vp9_start_frame(), and vdpau_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 89 of file pixdesc.h.
Referenced by av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), blockdetect_config_input(), blurdetect_config_input(), choose_chroma_location(), config_input(), config_input_main(), config_input_overlay(), config_output(), config_props(), config_props_output(), create_filtergraph(), cuvid_output_frame(), draw_horiz_band(), ff_scale_eval_dimensions(), ffprobe_show_pixel_formats(), fill_picture_parameters(), filter(), filter_frame(), get_pix_fmt_score(), match_pixfmt(), mov_write_ftyp_tag(), mxf_init(), nvdec_vp9_start_frame(), overlay_opencl_load(), scale_eval_dimensions(), transpose_opencl_config_output(), utvideo_encode_init(), vaapi_vp9_start_frame(), and vdpau_vp9_start_frame().
uint64_t AVPixFmtDescriptor::flags |
Combination of AV_PIX_FMT_FLAG_...
flags.
Definition at line 94 of file pixdesc.h.
Referenced by av_get_padded_bits_per_pixel(), config_input(), config_output(), config_props(), encode_init(), ff_blend_mask(), ff_blend_rectangle(), ff_draw_color(), ff_pnm_decode_header(), ffprobe_show_pixel_formats(), filter_frame(), get_pix_fmt_score(), graphs_build(), init_filter(), is_native_endian(), libjxl_encode_frame(), main(), match_pixfmt(), merge_formats_internal(), planarRgb16ToRgb16Wrapper(), Rgb16ToPlanarRgb16Wrapper(), scale_frame(), 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 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().
const char* AVPixFmtDescriptor::alias |