FFmpeg
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

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

Definition at line 30 of file attributes.h.

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

Definition at line 31 of file attributes.h.

#define av_always_inline   __attribute__((always_inline)) inline

Definition at line 39 of file attributes.h.

#define av_extern_inline   inline

Definition at line 51 of file attributes.h.

#define av_warn_unused_result   __attribute__((warn_unused_result))

Definition at line 56 of file attributes.h.

#define av_noinline   __attribute__((noinline))

Definition at line 62 of file attributes.h.

#define av_pure   __attribute__((pure))

Definition at line 70 of file attributes.h.

#define av_const   __attribute__((const))

Definition at line 76 of file attributes.h.

#define av_cold   __attribute__((cold))

Definition at line 82 of file attributes.h.

#define av_flatten   __attribute__((flatten))

Definition at line 88 of file attributes.h.

#define attribute_deprecated   __attribute__((deprecated))

Definition at line 94 of file attributes.h.

#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.

#define av_unused   __attribute__((unused))

Definition at line 125 of file attributes.h.

Referenced by alias_pix_read_probe(), amf_init_context(), asf_build_simple_index(), asf_read_frame_header(), asf_read_packet_header(), audio_decode_frame(), av_file_map(), avisynth_read_packet_video(), body(), byte_alignment(), count_frame_header(), decode_frame(), dvbsub_parse_region_segment(), estimate_timings(), ff_cavsdsp_init_x86(), ff_huffyuvencdsp_init_x86(), ff_llvidencdsp_init_x86(), ff_me_search_ds(), ff_mpadsp_init_x86(), ff_rtp_check_and_send_back_rr(), ff_rv40dsp_init_x86(), ff_tlog_ref(), filler(), filter_mbedge(), flv_read_metabody(), genh_read_header(), hev(), id3v2_parse(), jp2_find_codestream(), matroska_decode_buffer(), measure_nop_time(), mp3_write_audio_packet(), multiple_resample(), nsv_parse_NSVf_header(), nsv_read_chunk(), parse_dB(), parse_psfile(), postProcess_TMPL(), profile_tier_level(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), r3d_read_reos(), rbsp_trailing_bits(), read_comment(), ripemd128_transform(), ripemd160_transform(), ripemd256_transform(), ripemd320_transform(), search_for_quantizers_twoloop(), sei_payload(), set_pix_fmt(), setup_window(), show_pix_fmts(), slice_header(), swr_convert(), swri_resample_dsp_x86_init(), vp8_filter_common_is4tap(), vp8_filter_common_isnot4tap(), vp8_normal_limit(), vp8_simple_limit(), vp9_handle_packet(), and vps().

#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.

union unaligned_16 av_alias   __attribute__((may_alias))

Definition at line 142 of file attributes.h.

#define av_uninit (   x )    x=x

Definition at line 148 of file attributes.h.

Referenced by adaptive_cb_search(), apply_channel_coupling(), av_opt_set_from_string(), bfi_decode_frame(), compand_delay(), count_colors(), decode_mb(), decode_subframe_fixed(), doVertLowPass_altivec(), draw_mandelbrot(), ea_read_packet(), encode_rgb_frame_TMPL(), ff_h264_execute_ref_pic_marking(), ff_lpc_calc_coefs(), ff_msmpeg4_decode_block(), ff_seek_frame_binary(), ff_srtp_decrypt(), ff_vp56_decode_frame(), ff_yuv2rgb_c_init_tables(), flv_read_packet(), main(), mpeg4_decode_block(), msmpeg4_encode_dc(), mss2_decode_frame(), output_audio_block(), process_options(), qtrle_encode_line(), set_bandwidth(), synth_frame(), and vp78_decode_frame().

#define av_builtin_constant_p   __builtin_constant_p

Definition at line 154 of file attributes.h.

Referenced by cmp().

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

Definition at line 155 of file attributes.h.

#define av_noreturn   __attribute__((noreturn))

Definition at line 162 of file attributes.h.


Generated on Sun May 13 2018 02:04:24 for FFmpeg by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /