FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Modules | Macros | Enumerations | Functions

Modules

 Internal
 Not exported functions, for internal usage only.
 
 Preprocessor String Macros
 String manipulation macros.
 
 Library Version Macros
 Useful to check and match library version in order to maintain backward compatibility.
 
 Constants
 
 Image related
 AVPicture types, pixel formats and basic image planes manipulation.
 
 Version and Build diagnostics
 Macros and function useful to check at compiletime and at runtime which version of libavutil is in use.
 
 Media Type
 Media Type.
 

Macros

#define av_int_list_length(list, term)   av_int_list_length_for_size(sizeof(*(list)), list, term)
 Compute the length of an integer list. More...
 

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. More...
 
static voidav_x_if_null (const void *p, const void *x)
 Return x default pointer in case p is NULL. More...
 
unsigned av_int_list_length_for_size (unsigned elsize, const void *list, uint64_t term) av_pure
 Compute the length of an integer list. More...
 
FILE * av_fopen_utf8 (const char *path, const char *mode)
 Open a file using a UTF-8 filename. More...
 
AVRational av_get_time_base_q (void)
 Return the fractional representation of the internal time base. More...
 

Detailed Description

Macro Definition Documentation

#define av_int_list_length (   list,
  term 
)    av_int_list_length_for_size(sizeof(*(list)), list, term)

Compute the length of an integer list.

Parameters
termlist terminator (usually 0 or -1)
listpointer to the list
Returns
length of the list, in elements, not counting the terminator

Definition at line 324 of file avutil.h.

Enumeration Type Documentation

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 192 of file avutil.h.

Function Documentation

const char* av_get_media_type_string ( enum AVMediaType  media_type)
static void* av_x_if_null ( const void p,
const void x 
)
inlinestatic
unsigned av_int_list_length_for_size ( unsigned  elsize,
const void list,
uint64_t  term 
)

Compute the length of an integer list.

Parameters
elsizesize in bytes of each list element (only 1, 2, 4 or 8)
termlist terminator (usually 0 or -1)
listpointer to the list
Returns
length of the list, in elements, not counting the terminator

Definition at line 98 of file utils.c.

FILE* av_fopen_utf8 ( const char *  path,
const char *  mode 
)

Open a file using a UTF-8 filename.

The API of this function matches POSIX fopen(), errors are returned through errno.

Definition at line 92 of file file_open.c.

Referenced by cmdutils_read_file(), disp_tree(), and transcode_init().

AVRational av_get_time_base_q ( void  )

Return the fractional representation of the internal time base.

Definition at line 117 of file utils.c.