FFmpeg
Macros | Functions
utils.c File Reference
#include "config.h"
#include "avutil.h"
#include "avassert.h"

Go to the source code of this file.

Macros

#define LIST_LENGTH(type)   { type t = term, *l = (type *)list; for (i = 0; l[i] != t; i++); }
 

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...
 
char av_get_picture_type_char (enum AVPictureType pict_type)
 Return a single letter to describe the given picture type pict_type. More...
 
unsigned av_int_list_length_for_size (unsigned elsize, const void *list, uint64_t term)
 Compute the length of an integer list. More...
 
char * av_fourcc_make_string (char *buf, uint32_t fourcc)
 Fill the provided buffer with a string containing a FourCC (four-character code) representation. More...
 
AVRational av_get_time_base_q (void)
 Return the fractional representation of the internal time base. More...
 
void av_assert0_fpu (void)
 Assert that floating point operations can be executed. More...
 

Detailed Description

various utility functions

Definition in file utils.c.

Macro Definition Documentation

◆ LIST_LENGTH

#define LIST_LENGTH (   type)    { type t = term, *l = (type *)list; for (i = 0; l[i] != t; i++); }

Function Documentation

◆ av_assert0_fpu()

void av_assert0_fpu ( void  )

Assert that floating point operations can be executed.

This will av_assert0() that the cpu is not in MMX state on X86

Definition at line 103 of file utils.c.