FFmpeg  4.0
Macros
attributes.h File Reference

Macro definitions for various function/variable attributes. More...

Go to the source code of this file.

Macros

#define AV_GCC_VERSION_AT_LEAST(x, y)   (__GNUC__ > (x) || __GNUC__ == (x) && __GNUC_MINOR__ >= (y))
 
#define AV_GCC_VERSION_AT_MOST(x, y)   (__GNUC__ < (x) || __GNUC__ == (x) && __GNUC_MINOR__ <= (y))
 
#define av_always_inline   __attribute__((always_inline)) inline
 
#define av_extern_inline   inline
 
#define av_warn_unused_result   __attribute__((warn_unused_result))
 
#define av_noinline   __attribute__((noinline))
 
#define av_pure   __attribute__((pure))
 
#define av_const   __attribute__((const))
 
#define av_cold   __attribute__((cold))
 
#define av_flatten   __attribute__((flatten))
 
#define attribute_deprecated   __attribute__((deprecated))
 
#define AV_NOWARN_DEPRECATED(code)
 Disable warnings about deprecated features This is useful for sections of code kept for backward compatibility and scheduled for removal. More...
 
#define av_unused   __attribute__((unused))
 
#define av_used   __attribute__((used))
 Mark a variable as used and prevent the compiler from optimizing it away. More...
 
#define av_alias   __attribute__((may_alias))
 
#define av_uninit(x)   x=x
 
#define av_builtin_constant_p   __builtin_constant_p
 
#define av_printf_format(fmtpos, attrpos)   __attribute__((__format__(__printf__, fmtpos, attrpos)))
 
#define av_noreturn   __attribute__((noreturn))
 

Detailed Description

Macro definitions for various function/variable attributes.

Definition in file attributes.h.

Macro Definition Documentation

◆ AV_GCC_VERSION_AT_LEAST

#define AV_GCC_VERSION_AT_LEAST (   x,
 
)    (__GNUC__ > (x) || __GNUC__ == (x) && __GNUC_MINOR__ >= (y))

Definition at line 30 of file attributes.h.

◆ AV_GCC_VERSION_AT_MOST

#define AV_GCC_VERSION_AT_MOST (   x,
 
)    (__GNUC__ < (x) || __GNUC__ == (x) && __GNUC_MINOR__ <= (y))

Definition at line 31 of file attributes.h.

◆ av_always_inline

#define av_always_inline   __attribute__((always_inline)) inline

Definition at line 39 of file attributes.h.

Referenced by aptx_qmf_convolution(), aptx_qmf_filter_signal_push(), aptx_qmf_tree_analysis(), aptx_qmf_tree_synthesis(), AV_RL24(), avg_no_rnd_vc1_chroma_mc4_c(), backup_mb_border(), check_dc_pred8x8_mode(), check_intra_pred4x4_mode_emuedge(), check_intra_pred8x8_mode_emuedge(), check_tm_pred4x4_mode(), check_tm_pred8x8_mode(), decode_block_coeffs(), decode_block_coeffs_internal(), decode_cabac_residual_dc(), decode_intra4x4_modes(), decode_mb_coeffs(), decode_mb_mode(), decode_mode(), decode_residual(), decode_tiles(), denoise_spatial(), denoise_temporal(), dnxhd_8bit_get_pixels_8x4_sym(), dnxhd_calc_ac_bits(), dnxhd_encode_block(), dnxhd_encode_dc(), dnxhd_get_blocks(), dnxhd_ssd_block(), dxtory_decode_v2(), ff_clean_intra_table_entries(), ff_yuv2rgb_init_tables_ppc(), filter_level_for_mb(), filter_mb(), get_bmv_ptr(), get_cabac_cbf_ctx(), get_pixel_format(), get_submv_prob(), hpel_motion(), idct_mb(), inter_predict(), lowpass(), prefetch_motion(), rgb64ToUV_c_template(), rgb64ToY_c_template(), sbr_qmf_deint_neg_c(), svq3_decode_block(), tempNoiseReducer(), vp7_decode_mvs(), vp8_decode_block_coeffs_internal(), vp8_decode_frame_header(), vp8_decode_mb_row_sliced(), vp8_decode_mvs(), vp8_filter_mb_row(), vp8_init_frames(), vp8_mc_chroma(), vp8_mc_luma(), vp8_mc_part(), vp8_rac_get_nn(), vp8_read_mv_component(), xchg_mb_border(), yuv2422_2_c_template(), yuv2422_X_c_template(), yuv2mono_2_c_template(), yuv2mono_X_c_template(), yuv2p016cX_c(), yuv2plane1_10_c_template(), yuv2plane1_16_c_template(), yuv2rgb_2_c_template(), yuv2rgb_full_2_c_template(), yuv2rgb_full_X_c_template(), yuv2rgb_write(), yuv2rgb_write_full(), yuv2rgb_X_c_template(), yuv2rgba64_1_c_template(), yuv2rgba64_2_c_template(), yuv2rgba64_full_2_c_template(), yuv2rgba64_full_X_c_template(), and yuv2rgba64_X_c_template().

◆ av_extern_inline

#define av_extern_inline   inline

Definition at line 51 of file attributes.h.

◆ av_warn_unused_result

#define av_warn_unused_result   __attribute__((warn_unused_result))

Definition at line 56 of file attributes.h.

Referenced by ff_rint64_clip().

◆ av_noinline

#define av_noinline   __attribute__((noinline))

Definition at line 62 of file attributes.h.

◆ av_pure

#define av_pure   __attribute__((pure))

Definition at line 70 of file attributes.h.

Referenced by av_x_if_null().

◆ av_const

#define av_const   __attribute__((const))

Definition at line 76 of file attributes.h.

Referenced by av_inv_q().

◆ av_cold

#define av_cold   __attribute__((cold))

◆ av_flatten

#define av_flatten   __attribute__((flatten))

Definition at line 88 of file attributes.h.

◆ attribute_deprecated

#define attribute_deprecated   __attribute__((deprecated))

Definition at line 94 of file attributes.h.

◆ AV_NOWARN_DEPRECATED

#define AV_NOWARN_DEPRECATED (   code)
Value:
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
code \
_Pragma("GCC diagnostic pop")

Disable warnings about deprecated features This is useful for sections of code kept for backward compatibility and scheduled for removal.

Definition at line 108 of file attributes.h.

◆ av_unused

#define av_unused   __attribute__((unused))

◆ av_used

#define av_used   __attribute__((used))

Mark a variable as used and prevent the compiler from optimizing it away.

This is useful for variables accessed only from inline assembler without the compiler being aware.

Definition at line 136 of file attributes.h.

◆ av_alias

union unaligned_16 av_alias   __attribute__((may_alias))

Definition at line 142 of file attributes.h.

◆ av_uninit

#define av_uninit (   x)    x=x

◆ av_builtin_constant_p

#define av_builtin_constant_p   __builtin_constant_p

Definition at line 154 of file attributes.h.

Referenced by cmp().

◆ av_printf_format

#define av_printf_format (   fmtpos,
  attrpos 
)    __attribute__((__format__(__printf__, fmtpos, attrpos)))

Definition at line 155 of file attributes.h.

Referenced by av_strnlen(), and avio_tell().

◆ av_noreturn

#define av_noreturn   __attribute__((noreturn))

Definition at line 162 of file attributes.h.