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"
Include dependency graph for libavutil/internal.h:

Go to the source code of this file.

Macros

#define NDEBUG
 
#define emms_c()
 
#define attribute_align_arg
 
#define av_export
 
#define INT_BIT   (CHAR_BIT * sizeof(int))
 
#define E1(x)   x
 
#define LOCAL_ALIGNED_A(a, t, v, s, o, ...)
 
#define LOCAL_ALIGNED_D(a, t, v, s, o, ...)
 
#define LOCAL_ALIGNED(a, t, v, ...)   E1(LOCAL_ALIGNED_A(a, t, v, __VA_ARGS__,,))
 
#define LOCAL_ALIGNED_8(t, v, ...)   LOCAL_ALIGNED(8, t, v, __VA_ARGS__)
 
#define LOCAL_ALIGNED_16(t, v, ...)   LOCAL_ALIGNED(16, t, v, __VA_ARGS__)
 
#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. More...
 
#define ONLY_IF_THREADS_ENABLED(x)   NULL
 Define a function with only the non-default version specified. More...
 

Functions

void avpriv_report_missing_feature (void *avc, const char *msg,...) av_printf_format(2
 Log a generic warning message about a missing feature. More...
 
void void avpriv_request_sample (void *avc, const char *msg,...) av_printf_format(2
 Log a generic warning message about a missing feature. More...
 

Detailed Description

common internal API header

Definition in file libavutil/internal.h.

Macro Definition Documentation

#define attribute_align_arg

Definition at line 55 of file libavutil/internal.h.

Referenced by av_buffersink_set_frame_size(), and get_bit_rate().

#define av_export

Definition at line 62 of file libavutil/internal.h.

#define E1 (   x)    x

Definition at line 71 of file libavutil/internal.h.

#define FF_ALLOC_OR_GOTO (   ctx,
  p,
  size,
  label 
)
Value:
{\
if (p == NULL && (size) != 0) {\
av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
goto label;\
}\
}
initialize output if(nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
void av_log(void *avcl, int level, const char *fmt,...)
Definition: log.c:246
int size
NULL
Definition: eval.c:55
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:148
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
Definition: mem.c:73

Definition at line 95 of file libavutil/internal.h.

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

#define FF_ALLOCZ_OR_GOTO (   ctx,
  p,
  size,
  label 
)
Value:
{\
if (p == NULL && (size) != 0) {\
av_log(ctx, AV_LOG_ERROR, "Cannot allocate memory.\n");\
goto label;\
}\
}
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
Definition: mem.c:205
initialize output if(nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
void av_log(void *avcl, int level, const char *fmt,...)
Definition: log.c:246
int size
NULL
Definition: eval.c:55
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:148

Definition at line 104 of file libavutil/internal.h.

Referenced by alloc_buffers(), allocate_buffers(), allocate_sample_buffers(), context_init(), dnxhd_encode_init(), dnxhd_init_qmat(), dnxhd_init_rc(), dnxhd_init_vlc(), ff_h264_alloc_tables(), ff_iir_filter_init_coeffs(), ff_MPV_common_init(), ff_mpv_frame_size_alloc(), ff_snow_common_init_after_header(), init_context_frame(), init_duplicate_context(), initFilter(), mca(), and sws_init_context().

#define INT_BIT   (CHAR_BIT * sizeof(int))

Definition at line 66 of file libavutil/internal.h.

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

#define LOCAL_ALIGNED (   a,
  t,
  v,
  ... 
)    E1(LOCAL_ALIGNED_A(a, t, v, __VA_ARGS__,,))

Definition at line 81 of file libavutil/internal.h.

Referenced by do_hybrid_window().

#define LOCAL_ALIGNED_8 (   t,
  v,
  ... 
)    LOCAL_ALIGNED(8, t, v, __VA_ARGS__)
#define LOCAL_ALIGNED_A (   a,
  t,
  v,
  s,
  o,
  ... 
)
Value:
uint8_t la_##v[sizeof(t s o) + (a)]; \
t (*v) o = (void *)FFALIGN((uintptr_t)la_##v, a)
float v
const char * s
Definition: avisynth_c.h:668
#define FFALIGN(x, a)
Definition: common.h:63
uint8_t
t
Definition: genspecsines3.m:6

Definition at line 73 of file libavutil/internal.h.

#define LOCAL_ALIGNED_D (   a,
  t,
  v,
  s,
  o,
  ... 
)
Value:
DECLARE_ALIGNED(a, t, la_##v) s o; \
t (*v) o = la_##v
float v
const char * s
Definition: avisynth_c.h:668
#define DECLARE_ALIGNED(n, t, v)
Definition: mem.h:59
t
Definition: genspecsines3.m:6

Definition at line 77 of file libavutil/internal.h.

#define NDEBUG

Definition at line 30 of file libavutil/internal.h.

#define ONLY_IF_THREADS_ENABLED (   x)    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
typereturn type of function
namename of function
argsargument list of function
verversion 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 162 of file libavutil/internal.h.

Referenced by decode_end(), and vp3_init_thread_copy().

Function Documentation

void avpriv_report_missing_feature ( void avc,
const char *  msg,
  ... 
)

Log a generic warning message about a missing feature.

Parameters
[in]avca pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct
[in]msgstring containing the name of the missing feature

Referenced by aac_adtstoasc_filter(), amr_decode_fix_avctx(), amrnb_decode_frame(), amrnb_decode_init(), amrwb_decode_init(), decode_frame_header(), decode_init(), decode_seq_header(), decode_subframe(), ff_mjpeg_decode_sof(), ff_spdif_read_packet(), ff_vc1_parse_frame_header_adv(), ogg_replace_stream(), parse_adts_frame_header(), parse_MP4SLDescrTag(), read_sbr_extension(), rso_read_header(), skeleton_header(), vp6_parse_header(), and write_header().

void void avpriv_request_sample ( void avc,
const char *  msg,
  ... 
)

Log a generic warning message about a missing feature.

Additionally request that a sample showcasing the feature be uploaded.

Parameters
[in]avca pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct
[in]msgstring containing the name of the missing feature

Referenced by alac_decode_init(), amrwb_decode_frame(), ape_decode_init(), ast_read_header(), avpriv_adx_decode_header(), avr_read_header(), cdxl_decode_frame(), cinepak_decode(), cook_decode_init(), dca_decode_frame(), dca_exss_parse_header(), dca_parse_frame_header(), dca_subframe_header(), decode_audio_block(), decode_band_hdr(), decode_bytes(), decode_channel_transform(), decode_frame(), decode_frame_header(), decode_frame_headers(), decode_ga_specific_config(), decode_ics(), decode_init(), decode_mvc2(), decode_nop(), decode_packet(), decode_scalefactors(), decode_sgirle8(), decode_slice_header(), decode_subframe(), decode_wmv9(), determine_bitrate(), ea_read_packet(), epaf_read_header(), execute_code(), ff_compute_band_indexes(), ff_eac3_parse_header(), ff_mjpeg_decode_sof(), ff_parse_mpeg2_descriptor(), ff_spdif_read_packet(), ff_vc1_decode_blocks(), fill_coding_method_array(), flashsv_decode_frame(), get_packet_header(), h264_set_parameter_from_sps(), iff_read_header(), imc_decode_block(), imc_decode_init(), latm_decode_audio_specific_config(), lvf_read_header(), mimic_decode_frame(), mov_read_mdhd(), mpc7_decode_init(), mpc8_decode_init(), mtv_read_header(), mv_read_header(), mxf_read_packet_old(), mxf_read_primer_pack(), nist_read_header(), oma_read_header(), paf_vid_decode(), parse_fmtp(), parse_setup_header(), parse_video_var(), pmp_packet(), process_audio_header_eacs(), process_audio_header_elements(), process_ea_header(), process_frame_obj(), ptx_decode_frame(), qt_rtp_parse_packet(), read_block_data(), read_frame(), read_header(), read_major_sync(), read_restart_header(), read_sbr_extension(), read_stream_mux_config(), read_table(), rso_read_header(), rv10_decode_init(), rv10_decode_picture_header(), save_bits(), smc_decode_stream(), smjpeg_read_header(), spdif_get_offset_and_codec(), spdif_header_dts(), spdif_header_truehd(), sunrast_decode_frame(), synth_superframe(), tm2_read_header(), truemotion1_decode_header(), truespeech_decode_init(), unsupported(), vc1_decode_init(), vcr1_decode_init(), wsaud_read_header(), xa_decode(), xan_wc3_copy_pixel_run(), xmv_read_header(), xwd_decode_frame(), xwma_read_header(), and zero12v_decode_init().