Libav
|
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 81 of file pixdesc.h.
Referenced by av_get_pix_fmt_name(), av_get_pix_fmt_string(), doTest(), ff_get_format(), 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 82 of file pixdesc.h.
Referenced by av_get_bits_per_pixel(), av_get_pix_fmt_string(), av_image_copy(), av_image_copy_to_buffer(), av_pix_fmt_count_planes(), avcodec_get_pix_fmt_loss(), config_props(), copy_picture_field(), decode_block(), decode_frame(), encode_frame(), ffv1_encode_init(), filter(), filter_frame(), get_deinterleaved_format(), horizontal_frame_pack(), is_gray(), isALPHA(), isPacked(), isPlanar(), isYUV(), libopenjpeg_create_image(), libopenjpeg_ispacked(), libopenjpeg_matches_pix_fmt(), query_formats(), show_pix_fmts(), and vaapi_build_decoder_config().
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 91 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(), copy_picture_field(), ff_fill_line_with_color(), ff_hevc_output_frame(), filter(), filter_frame(), frame_end(), get_aspect_ratio(), getSubSampleFactors(), horizontal_frame_pack(), libopenjpeg_create_image(), libopenjpeg_matches_pix_fmt(), libx265_encode_init(), map_pixel_format(), qsv_init_pool(), shuffleplanes_config_input(), vaapi_build_decoder_config(), and verify_md5().
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 100 of file pixdesc.h.
Referenced by av_get_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(), avcodec_get_pix_fmt_loss(), color_config_props(), config_input(), config_input_main(), config_props(), config_props_output(), copy_picture_field(), ff_draw_horiz_band(), ff_h264_draw_horiz_band(), ff_hevc_output_frame(), ff_mjpeg_decode_frame(), filter(), filter_frame(), frame_end(), get_aspect_ratio(), get_video_buffer(), getSubSampleFactors(), horizontal_frame_pack(), libopenjpeg_create_image(), libopenjpeg_matches_pix_fmt(), map_pixel_format(), qsv_init_pool(), query_formats(), shuffleplanes_config_input(), utvideo_encode_init(), vaapi_build_decoder_config(), verify_md5(), and vertical_frame_pack().
uint64_t AVPixFmtDescriptor::flags |
Combination of AV_PIX_FMT_FLAG_...
flags.
Definition at line 105 of file pixdesc.h.
Referenced by 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_read_image_line(), av_write_image_line(), avcodec_get_pix_fmt_loss(), config_props(), decode_slice(), encode_frame(), encode_init(), encode_slice(), ff_get_format(), ff_pnm_decode_header(), filter_frame(), get_format(), get_video_buffer(), hwdownload_query_formats(), is_gray(), is_hwaccel_pix_fmt(), is_yuv_planar(), isBE(), isPacked(), isPackedRGB(), isPlanar(), isPlanarRGB(), isPlanarYUV(), isRGB(), isYUV(), query_formats(), raw_decode(), raw_init_decoder(), show_pix_fmts(), shuffleplanes_config_input(), usePal(), xwd_encode_frame(), and yuv2gbrp_full_X_c().
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]. If the format is RGB-like, the first component is R, followed by G and B.
If the format is YUV-like, the first component is Y, followed by U and V.
If present, the Alpha channel is always the last component.
Definition at line 119 of file pixdesc.h.
Referenced by av_get_bits_per_pixel(), av_image_copy(), av_image_copy_to_buffer(), av_image_fill_linesizes(), av_image_fill_max_pixsteps(), av_image_fill_pointers(), av_image_get_linesize(), av_pix_fmt_count_planes(), av_read_image_line(), av_write_image_line(), avcodec_get_pix_fmt_loss(), check_image_pointers(), config_input(), config_props(), ff_hevc_output_frame(), ff_sws_init_output_funcs(), filter_slice(), hScale16To15_c(), hScale16To19_c(), init_video_param(), is16BPS(), is9_OR_10BPS(), libopenjpeg_create_image(), libopenjpeg_decode_frame(), libopenjpeg_ispacked(), libopenjpeg_matches_pix_fmt(), libx265_encode_frame(), libx265_encode_init(), planarCopyWrapper(), pnm_encode_frame(), qsv_decode_init(), qsv_init_pool(), sws_init_context(), swscale(), verify_md5(), and yuv2gbrp_full_X_c().
const char* AVPixFmtDescriptor::alias |