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 "libm.h"

Go to the source code of this file.

Defines

#define NDEBUG
#define attribute_align_arg
#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 UINT64_MAX   UINT64_C(0xFFFFFFFFFFFFFFFF)
#define INT_BIT   (CHAR_BIT * sizeof(int))
#define offsetof(T, F)   ((unsigned int)((char *)&((T *)0)->F))
#define LABEL_MANGLE(a)   EXTERN_PREFIX #a
#define LOCAL_MANGLE(a)   #a
#define MANGLE(a)   EXTERN_PREFIX LOCAL_MANGLE(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 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 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 ONLY_IF_THREADS_ENABLED(x)   NULL
 Define a function with only the non-default version specified.


Detailed Description

common internal API header

Definition in file internal.h.


Define Documentation

#define attribute_align_arg

Definition at line 45 of file internal.h.

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

Definition at line 103 of file internal.h.

Referenced by flush_packet(), and rtp_send_samples().

#define exit   exit_is_forbidden

#define FF_ALLOC_OR_GOTO ( ctx,
p,
size,
label   ) 

Value:

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

Definition at line 153 of file internal.h.

Referenced by allocate_buffers(), ff_iir_filter_init_coeffs(), fft_init(), initFilter(), mdct_init(), and sws_init_context().

#define FF_ALLOCZ_OR_GOTO ( ctx,
p,
size,
label   ) 

#define fprintf   please_use_av_log_instead_of_fprintf

#define free   please_use_av_free

Definition at line 125 of file internal.h.

#define INT16_MAX   0x7fff

Definition at line 54 of file internal.h.

#define INT16_MIN   (-0x7fff - 1)

Definition at line 50 of file internal.h.

#define INT32_MAX   0x7fffffff

#define INT32_MIN   (-0x7fffffff - 1)

Definition at line 58 of file internal.h.

#define INT64_MAX   INT64_C(9223372036854775807)

#define INT64_MIN   (-0x7fffffffffffffffLL - 1)

#define INT_BIT   (CHAR_BIT * sizeof(int))

#define LABEL_MANGLE (  )     EXTERN_PREFIX #a

Definition at line 90 of file internal.h.

#define LOCAL_MANGLE (  )     #a

Definition at line 96 of file internal.h.

#define malloc   please_use_av_malloc

#define MANGLE (  )     EXTERN_PREFIX LOCAL_MANGLE(a)

#define MASK_ABS ( mask,
level   ) 

Value:

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

Definition at line 116 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 181 of file internal.h.

Referenced by decode_frame().

#define offsetof ( T,
 )     ((unsigned int)((char *)&((T *)0)->F))

#define ONLY_IF_THREADS_ENABLED (  )     NULL

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.

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

Definition at line 221 of file internal.h.

#define perror   please_use_av_log_instead_of_perror

#define printf   please_use_av_log_instead_of_printf

#define puts   please_use_av_log_instead_of_puts

Definition at line 148 of file internal.h.

#define rand   rand_is_forbidden_due_to_state_trashing_use_av_lfg_get

Definition at line 131 of file internal.h.

Referenced by av_resample(), and main().

#define random   random_is_forbidden_due_to_state_trashing_use_av_lfg_get

Definition at line 135 of file internal.h.

Referenced by get_generic_seed().

#define realloc   please_use_av_realloc

Definition at line 127 of file internal.h.

Referenced by av_realloc().

#define sprintf   sprintf_is_forbidden_due_to_security_issues_use_snprintf

Definition at line 137 of file internal.h.

#define srand   srand_is_forbidden_due_to_state_trashing_use_av_lfg_init

Definition at line 133 of file internal.h.

#define strcat   strcat_is_forbidden_due_to_security_issues_use_av_strlcat

Definition at line 139 of file internal.h.

Referenced by main().

#define time   time_is_forbidden_due_to_security_issues

#define UINT32_MAX   0xffffffff

#define UINT64_MAX   UINT64_C(0xFFFFFFFFFFFFFFFF)

Definition at line 78 of file internal.h.


Generated on Mon May 2 19:50:18 2011 for FFmpeg by  doxygen 1.5.6