libavutil/internal.h File Reference

common internal api header. More...

#include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include "intreadwrite.h"
#include "bswap.h"

Go to the source code of this file.

Defines

#define NDEBUG
#define attribute_align_arg
#define attribute_used
#define AVV(x...)   {x}
#define M_PI   3.14159265358979323846
#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   64
#define offsetof(T, F)   ((unsigned int)((char *)&((T *)0)->F))
#define MANGLE(a)   #a
#define dprintf(pctx,...)
#define av_abort()   do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0)
#define FASTDIV(a, b)   ((a)/(b))
#define MASK_ABS(mask, level)
#define COPY3_IF_LT(x, y, a, b, c, d)
#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_random
#define srand   srand_is_forbidden_due_to_state_trashing_use_av_init_random
#define random   random_is_forbidden_due_to_state_trashing_use_av_random
#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
#define fprintf   please_use_av_log
#define puts   please_use_av_log
#define perror   please_use_av_log_instead_of_perror
#define CHECKED_ALLOCZ(p, size)

Functions

static int av_log2_16bit (unsigned int v)
static unsigned int ff_sqrt (unsigned int a)
static av_always_inline long long llrint (double x)
static av_always_inline long int lrint (double x)
static av_always_inline long int lrintf (float x)
static av_always_inline double round (double x)
static av_always_inline float roundf (float x)

Variables

const uint32_t ff_inverse [256]
const uint8_t ff_sqrt_tab [256]


Detailed Description

common internal api header.

Definition in file internal.h.


Define Documentation

#define attribute_align_arg

Definition at line 41 of file internal.h.

#define attribute_used

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

Referenced by ff_rtp_send_aac(), h_resample_fast(), and rtp_send_samples().

#define AVV ( x...   )     {x}

#define CHECKED_ALLOCZ ( p,
size   ) 

Value:

{\
    p= av_mallocz(size);\
    if(p==NULL && (size)!=0){\
        av_log(NULL, AV_LOG_ERROR, "Cannot allocate memory.");\
        goto fail;\
    }\
}

Definition at line 270 of file internal.h.

Referenced by alloc_picture(), alloc_tables(), context_init(), dnxhd_encode_init(), dnxhd_init_qmat(), dnxhd_init_rc(), dnxhd_init_vlc(), init_duplicate_context(), and MPV_common_init().

#define COPY3_IF_LT ( x,
y,
a,
b,
c,
 ) 

Value:

if((y)<(x)){\
     (x)=(y);\
     (a)=(b);\
     (c)=(d);\
}

Definition at line 230 of file internal.h.

#define dprintf ( pctx,
...   ) 

#define exit   exit_is_forbidden

#define FASTDIV ( a,
 )     ((a)/(b))

#define fprintf   please_use_av_log

#define free   please_use_av_free

Definition at line 242 of file internal.h.

#define INT16_MAX   0x7fff

Definition at line 69 of file internal.h.

#define INT16_MIN   (-0x7fff-1)

Definition at line 65 of file internal.h.

#define INT32_MAX   0x7fffffff

Definition at line 77 of file internal.h.

Referenced by mov_write_mdhd_tag(), mov_write_tkhd_tag(), and output_residual().

#define INT32_MIN   (-0x7fffffff-1)

Definition at line 73 of file internal.h.

#define INT64_MAX   INT64_C(9223372036854775807)

#define INT64_MIN   (-0x7fffffffffffffffLL-1)

#define INT_BIT   64

Definition at line 98 of file internal.h.

Referenced by h263_decode_motion(), mpeg1_encode_motion(), and mpeg_decode_motion().

#define M_PI   3.14159265358979323846

Definition at line 61 of file internal.h.

#define malloc   please_use_av_malloc

#define MANGLE (  )     #a

#define MASK_ABS ( mask,
level   ) 

Value:

Definition at line 214 of file internal.h.

Referenced by dnxhd_encode_block(), and mpeg1_encode_block().

#define NDEBUG

Definition at line 30 of file internal.h.

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

Definition at line 112 of file internal.h.

#define perror   please_use_av_log_instead_of_perror

#define printf   please_use_av_log

Definition at line 261 of file internal.h.

Referenced by asf_get_packet(), asf_read_header(), audio_decode_example(), audio_decode_frame(), audio_encode_example(), audio_write_packet(), av_estimate_timings(), avi_load_index(), avi_read_header(), bit_alloc(), build_feed_streams(), compute_bit_allocation(), compute_scale_factors(), dct_error(), dct_quantize_refine(), decode_frame(), decode_nal(), do_exit(), doTest(), dv_decode_ac(), dv_decode_video_segment(), encode_frame(), extract_mpeg4_header(), ff_combine_frame(), ff_estimate_p_frame_motion(), ff_rate_estimate_qscale(), ff_rtp_send_data(), ff_wmv2_decode_picture_header(), ff_wmv2_encode_mb(), ffm_read_packet(), ffm_seek(), ffm_seek1(), flush_packet(), funny_diamond_search(), get_pts(), gif_parse_next_image(), gif_read_extension(), gif_read_header1(), gif_read_image(), grab_read_header(), hadamard8_diff8x8_c(), help(), http_connect(), http_prepare_data(), idct248_error(), main(), mpeg4_decode_sprite_trajectory(), mpegps_read_dts(), mpegts_write_header(), mpegvideo_parse(), opt_show_formats(), output_packet(), output_picture2(), print_sdp(), Process(), process_line(), qpel_motion_search(), read_huffman_tables(), rm_read_header(), rtcp_send_sr(), rtp_check_and_send_back_rr(), rtp_write_packet(), rtsp_cmd_play(), rtsp_send_cmd(), rtsp_skip_packet(), sdp_parse_line(), selfTest(), show_help(), show_help_options(), show_license(), show_version(), str_read_packet(), synchronize_audio(), tcp_read_packet(), test_motion(), var_diamond_search(), video_decode_example(), video_encode_example(), video_image_display(), video_refresh_timer(), wma_lsp_to_curve_init(), wmv2_decode_inter_block(), and yuv2rgb_altivec_init_tables().

#define puts   please_use_av_log

Definition at line 265 of file internal.h.

#define rand   rand_is_forbidden_due_to_state_trashing_use_av_random

Definition at line 248 of file internal.h.

Referenced by av_resample().

#define random   random_is_forbidden_due_to_state_trashing_use_av_random

Definition at line 252 of file internal.h.

Referenced by dct_error(), fill_random(), frandom(), idct248_error(), and main().

#define realloc   please_use_av_realloc

Definition at line 244 of file internal.h.

Referenced by av_realloc().

#define sprintf   sprintf_is_forbidden_due_to_security_issues_use_snprintf

Definition at line 254 of file internal.h.

#define srand   srand_is_forbidden_due_to_state_trashing_use_av_init_random

Definition at line 250 of file internal.h.

Referenced by main().

#define strcat   strcat_is_forbidden_due_to_security_issues_use_av_strlcat

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


Function Documentation

static int av_log2_16bit ( unsigned int  v  )  [inline, static]

static unsigned int ff_sqrt ( unsigned int  a  )  [inline, static]

static av_always_inline long long llrint ( double  x  )  [static]

Definition at line 280 of file internal.h.

Referenced by decode_init().

static av_always_inline long int lrint ( double  x  )  [static]

Definition at line 287 of file internal.h.

Referenced by encode_block().

static av_always_inline long int lrintf ( float  x  )  [static]

static av_always_inline double round ( double  x  )  [static]

Definition at line 301 of file internal.h.

static av_always_inline float roundf ( float  x  )  [static]

Definition at line 308 of file internal.h.

Referenced by xvid_correct_framerate().


Variable Documentation

const uint32_t ff_inverse[256]

Definition at line 100 of file dsputil.c.

Referenced by dct_quantize_TMPL(), msmpeg4_pred_dc(), and vorbis_residue_decode().

const uint8_t ff_sqrt_tab[256]

Definition at line 29 of file mathematics.c.

Referenced by ff_sqrt().


Generated on Thu Apr 2 07:16:14 2009 for ffmpeg by  doxygen 1.5.6