FFmpeg
Loading...
Searching...
No Matches

Topics

 Preprocessor String Macros
 
 
 Library Version Macros
 
 
 Constants
 
 Image related
 AVPicture types, pixel formats and basic image planes manipulation.
 
 Version and Build diagnostics
 Macros and function useful to check at compile time and at runtime which version of libavutil is in use.
 
 Media Type
 Media Type
 

Macros

#define AV_FOURCC_MAX_STRING_SIZE   32
 
#define av_fourcc2str(fourcc)
 

Enumerations

enum  AVMediaType {
  AVMEDIA_TYPE_UNKNOWN = -1 , AVMEDIA_TYPE_VIDEO , AVMEDIA_TYPE_AUDIO , AVMEDIA_TYPE_DATA ,
  AVMEDIA_TYPE_SUBTITLE , AVMEDIA_TYPE_ATTACHMENT , AVMEDIA_TYPE_NB
}
 

Functions

const char * av_get_media_type_string (enum AVMediaType media_type)
 Return a string describing the media_type enum, NULL if media_type is unknown.
 
static void * av_x_if_null (const void *p, const void *x)
 Return x default pointer in case p is NULL.
 
AVRational av_get_time_base_q (void)
 Return the fractional representation of the internal time base.
 
char * av_fourcc_make_string (char *buf, uint32_t fourcc)
 Fill the provided buffer with a string containing a FourCC (four-character code) representation.
 

Detailed Description

Macro Definition Documentation

◆ AV_FOURCC_MAX_STRING_SIZE

#define AV_FOURCC_MAX_STRING_SIZE   32

Definition at line 321 of file avutil.h.

Referenced by av_fourcc_make_string(), ff_decklink_read_header(), and mov_read_udta_string().

◆ av_fourcc2str

#define av_fourcc2str ( fourcc)
Value:
char * av_fourcc_make_string(char *buf, uint32_t fourcc)
Fill the provided buffer with a string containing a FourCC (four-character code) representation.
Definition utils.c:54
#define AV_FOURCC_MAX_STRING_SIZE
Definition avutil.h:321
uint32_t fourcc

Definition at line 323 of file avutil.h.

Referenced by apng_read_packet(), avcodec_string(), avi_read_header(), control_port_cb(), decode_frame(), decode_frame(), decode_frame_common(), dxa_read_packet(), ff_guid_str_buf(), ff_make_codec_str(), ff_mov_read_stsd_entries(), ff_v4l2_context_init(), ffmmal_init_decoder(), ffmmal_read_frame(), get_aiff_header(), hxvs_build_index(), hxvs_read_header(), init_muxer(), main(), mjpeg_decode_app(), mov_parse_stsd_audio(), mov_parse_stsd_video(), mov_read_default(), mov_read_eyes(), mov_read_hdlr(), mov_read_infe(), mov_read_iprp(), mov_read_iref(), mov_read_iref_cdsc(), mov_read_iref_dimg(), mov_read_pack(), mov_read_pcmc(), mov_read_sbgp(), mov_read_sv3d(), mov_read_vexu(), mov_read_vexu_proj(), mov_write_hdlr_tag(), mov_write_subtitle_tag(), oma_write_header(), parse_dsd_prop(), parse_pixel_format(), print_pix_fmt_fourccs(), read_header(), rm_read_header(), rpl_read_header(), rsd_read_header(), scan_file(), show_stream(), v4l2_configure_contexts(), vqa_decode_frame_hicolor(), vqa_decode_frame_pal8(), vt_map_frame(), wc3_read_header(), wc3_read_packet(), webp_anim_read_header(), webp_anim_read_packet(), webp_decode_frame(), wsvqa_read_header(), wsvqa_read_packet(), and xwma_read_header().

Enumeration Type Documentation

◆ AVMediaType

Enumerator
AVMEDIA_TYPE_UNKNOWN 

Usually treated as AVMEDIA_TYPE_DATA.

AVMEDIA_TYPE_VIDEO 
AVMEDIA_TYPE_AUDIO 
AVMEDIA_TYPE_DATA 

Opaque data information usually continuous.

AVMEDIA_TYPE_SUBTITLE 
AVMEDIA_TYPE_ATTACHMENT 

Opaque data information usually sparse.

AVMEDIA_TYPE_NB 

Definition at line 198 of file avutil.h.

Function Documentation

◆ av_get_media_type_string()

◆ av_x_if_null()

◆ av_get_time_base_q()

AVRational av_get_time_base_q ( void )

Return the fractional representation of the internal time base.

Definition at line 77 of file utils.c.

◆ av_fourcc_make_string()

char * av_fourcc_make_string ( char * buf,
uint32_t fourcc )

Fill the provided buffer with a string containing a FourCC (four-character code) representation.

Parameters
bufa buffer with size in bytes of at least AV_FOURCC_MAX_STRING_SIZE
fourccthe fourcc to represent
Returns
the buffer in input

Definition at line 54 of file utils.c.

Referenced by ff_decklink_read_header(), and mov_read_udta_string().