libavutil/internal.h File Reference

common internal API header More...

#include <limits.h>
#include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include "config.h"
#include "attributes.h"
#include "timer.h"
#include "cpu.h"
#include "dict.h"
#include "libm.h"

Go to the source code of this file.

Data Structures

struct  AVDictionary


#define NDEBUG
#define INT16_MIN   (-0x7fff - 1)
#define INT16_MAX   0x7fff
#define INT32_MIN   (-0x7fffffff - 1)
#define INT32_MAX   0x7fffffff
#define UINT32_MAX   0xffffffff
#define INT64_MIN   (-0x7fffffffffffffffLL - 1)
#define INT64_MAX   INT64_C(9223372036854775807)
#define INT_BIT   (CHAR_BIT * sizeof(int))
#define LOCAL_MANGLE(a)   #a
#define av_abort()   do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0)
#define MASK_ABS(mask, level)
#define malloc   please_use_av_malloc
#define free   please_use_av_free
#define realloc   please_use_av_realloc
#define time   time_is_forbidden_due_to_security_issues
#define rand   rand_is_forbidden_due_to_state_trashing_use_av_lfg_get
#define srand   srand_is_forbidden_due_to_state_trashing_use_av_lfg_init
#define random   random_is_forbidden_due_to_state_trashing_use_av_lfg_get
#define sprintf   sprintf_is_forbidden_due_to_security_issues_use_snprintf
#define strcat   strcat_is_forbidden_due_to_security_issues_use_av_strlcat
#define strncpy   strncpy_is_forbidden_due_to_security_issues_use_av_strlcpy
#define exit   exit_is_forbidden
#define printf   please_use_av_log_instead_of_printf
#define fprintf   please_use_av_log_instead_of_fprintf
#define puts   please_use_av_log_instead_of_puts
#define perror   please_use_av_log_instead_of_perror
#define strcasecmp   please_use_av_strcasecmp
#define strncasecmp   please_use_av_strncasecmp
#define FF_ALLOC_OR_GOTO(ctx, p, size, label)
#define FF_ALLOCZ_OR_GOTO(ctx, p, size, label)
#define NULL_IF_CONFIG_SMALL(x)   x
 Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
 Define a function with only the non-default version specified.


static av_always_inline void emms_c (void)
 Empty mmx state.

Detailed Description

common internal API header

Definition in file internal.h.

Define Documentation

#define av_abort (  )     do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0)

Definition at line 110 of file internal.h.

Referenced by flush_packet(), iff_read_packet(), and rtp_send_samples().

#define exit   exit_is_forbidden

#define FF_ALLOC_OR_GOTO ( ctx,
label   ) 


    p = av_malloc(size);\
    if (p == NULL && (size) != 0) {\
        av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
        goto label;\

Definition at line 164 of file internal.h.

Referenced by adpcm_encode_init(), allocate_buffers(), allocate_sample_buffers(), ape_decode_init(), ff_iir_filter_init_coeffs(), init_mdct_win(), initFilter(), mca(), and sws_init_context().

#define FF_ALLOCZ_OR_GOTO ( ctx,
label   ) 

#define fprintf   please_use_av_log_instead_of_fprintf

#define free   please_use_av_free

Definition at line 132 of file internal.h.

#define INT16_MAX   0x7fff

Definition at line 61 of file internal.h.

#define INT16_MIN   (-0x7fff - 1)

Definition at line 57 of file internal.h.

#define INT32_MAX   0x7fffffff

#define INT32_MIN   (-0x7fffffff - 1)

Definition at line 65 of file internal.h.

#define INT64_MAX   INT64_C(9223372036854775807)

#define INT64_MIN   (-0x7fffffffffffffffLL - 1)

#define INT_BIT   (CHAR_BIT * sizeof(int))

Definition at line 89 of file internal.h.

Referenced by decode_cabac_mb_mvd(), h263_get_motion_length(), and inter_predict().

#define LABEL_MANGLE (  )     EXTERN_PREFIX #a

Definition at line 97 of file internal.h.

#define LOCAL_MANGLE (  )     #a

Definition at line 103 of file internal.h.

#define malloc   please_use_av_malloc


#define MASK_ABS ( mask,
level   ) 


mask  = level >> 31;\
            level = (level ^ mask) - mask;

Definition at line 123 of file internal.h.

Referenced by dnxhd_init_vlc(), and mpeg1_encode_block().

#define NDEBUG

Definition at line 30 of file internal.h.

#define NULL_IF_CONFIG_SMALL (  )     x

Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.

Used to disable the definition of strings (for example AVCodec long_names).

Definition at line 192 of file internal.h.

Referenced by mpeg12_class().


Define a function with only the non-default version specified.

On systems with ELF shared libraries, all symbols exported from FFmpeg libraries are tagged with the name and major version of the library to which they belong. If a function is moved from one library to another, a wrapper must be retained in the original location to preserve binary compatibility.

Functions defined with this macro will never be used to resolve symbols by the build-time linker.

type return type of function
name name of function
args argument list of function
ver version tag to assign function Return NULL if a threading library has not been enabled. Used to disable threading functions in AVCodec definitions when not needed.

Definition at line 231 of file internal.h.

#define perror   please_use_av_log_instead_of_perror

#define printf   please_use_av_log_instead_of_printf

Definition at line 152 of file internal.h.

Referenced by audio_decode_example(), audio_decode_frame(), audio_encode_example(), compact_print_int(), compact_print_section_footer(), compact_print_section_header(), compact_print_str(), compact_show_tags(), dct_error(), dct_quantize_refine(), default_print_chapter_header(), default_print_footer(), default_print_int(), default_print_section_footer(), default_print_section_header(), default_print_str(), default_show_tags(), do_exit(), doTest(), extract_mpeg4_header(), fileTest(), help(), idct248_error(), json_print_chapter_footer(), json_print_chapter_header(), json_print_footer(), json_print_header(), json_print_int(), json_print_item_str(), json_print_section_footer(), json_print_section_header(), json_print_str(), json_show_tags(), main(), opt_bsfs(), opt_codecs(), opt_filters(), opt_formats(), opt_help(), opt_license(), opt_output_file(), opt_pix_fmts(), opt_protocols(), print_aff_and_breaks(), print_option(), print_sdp(), printval(), pullup_get_frame(), queue_picture(), selfTest(), show_codec_opts(), show_format_opts(), show_help_children(), show_help_options(), show_opts(), show_sample_fmts(), test_motion(), usage(), vf_open(), video_decode_example(), video_encode_example(), video_refresh(), WRITE_1D_FUNC_ARGV(), write_fileheader(), write_float_3d_array(), write_float_4d_array(), xml_print_chapter_footer(), xml_print_chapter_header(), xml_print_footer(), xml_print_header(), xml_print_int(), xml_print_section_footer(), xml_print_section_header(), xml_print_str(), and xml_show_tags().

#define puts   please_use_av_log_instead_of_puts

Definition at line 156 of file internal.h.

Referenced by display_picref().

#define rand   rand_is_forbidden_due_to_state_trashing_use_av_lfg_get

Definition at line 138 of file internal.h.

Referenced by av_resample(), initNoise(), main(), noise(), and swri_resample().

#define random   random_is_forbidden_due_to_state_trashing_use_av_lfg_get

Definition at line 142 of file internal.h.

Referenced by get_generic_seed().

#define realloc   please_use_av_realloc

Definition at line 134 of file internal.h.

Referenced by analyze(), av_realloc(), config(), and put_image().

#define sprintf   sprintf_is_forbidden_due_to_security_issues_use_snprintf

Definition at line 144 of file internal.h.

#define srand   srand_is_forbidden_due_to_state_trashing_use_av_lfg_init

Definition at line 140 of file internal.h.

Referenced by initNoise().

#define strcasecmp   please_use_av_strcasecmp

Definition at line 160 of file internal.h.

#define strcat   strcat_is_forbidden_due_to_security_issues_use_av_strlcat

Definition at line 146 of file internal.h.

Referenced by main().

#define strncasecmp   please_use_av_strncasecmp

Definition at line 162 of file internal.h.

#define strncpy   strncpy_is_forbidden_due_to_security_issues_use_av_strlcpy

Definition at line 148 of file internal.h.

Referenced by main(), and vf_open().

#define time   time_is_forbidden_due_to_security_issues

#define UINT32_MAX   0xffffffff


Definition at line 85 of file internal.h.

Referenced by eval_expr(), and reset_options().

Function Documentation

static av_always_inline void emms_c ( void   )  [static]

Generated on Fri Oct 26 02:46:08 2012 for FFmpeg by  doxygen 1.5.8