debian/tmp/usr/include/libavutil/avassert.h File Reference

simple assert() macros that are a bit more flexible than ISO C assert(). More...

#include <stdlib.h>
#include "avutil.h"
#include "log.h"

Go to the source code of this file.

Defines

#define av_assert0(cond)
 assert() equivalent, that is always enabled.
#define av_assert1(cond)   ((void)0)
 assert() equivalent, that does not lie in speed critical code.
#define av_assert2(cond)   ((void)0)
 assert() equivalent, that does lie in speed critical code.

Detailed Description

simple assert() macros that are a bit more flexible than ISO C assert().

Author:
Michael Niedermayer <michaelni@gmx.at>

Definition in file avassert.h.


Define Documentation

#define av_assert0 (   cond  ) 
Value:
do {                                           \
    if (!(cond)) {                                                      \
        av_log(NULL, AV_LOG_FATAL, "Assertion %s failed at %s:%d\n",    \
               AV_STRINGIFY(cond), __FILE__, __LINE__);                 \
        abort();                                                        \
    }                                                                   \
} while (0)

assert() equivalent, that is always enabled.

Definition at line 37 of file avassert.h.

Referenced by add_new_samples(), ape_decode_frame(), av_grow_packet(), av_packet_merge_side_data(), av_packet_split_side_data(), avcodec_get_context_defaults3(), avcodec_version(), avdevice_version(), avfilter_default_get_audio_buffer(), avfilter_unref_buffer(), avfilter_version(), avformat_version(), avutil_version(), cache_read(), config_inprops(), copy(), decode_bmv_frame(), decode_chunks(), decode_frame(), decode_nal_units(), decode_postinit(), decode_slice_header(), do_audio_out(), does_clip(), draw_slice(), dv_extract_audio(), encode_frame(), encode_init(), ff_alsa_extend_reorder_buf(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sos(), finish_file(), free_pool(), g726_encode_init(), get(), input_get_buffer(), input_init(), ljpeg_decode_yuv_scan(), mpeg1_encode_sequence_header(), mpeg_decode_mb(), mpegts_write_packet(), postproc_version(), quantize(), read_from_packet_buffer(), realloc_audio(), sbr_mapping(), start_frame(), store_in_pool(), swr_convert(), swr_init(), swresample_version(), swri_rematrix(), swri_rematrix_init(), sws_init_context(), swScale(), swscale_version(), unref_buffer(), vf_get_image(), vf_next_config(), vf_next_put_image(), wav_parse_bext_string(), write_chunk_header(), write_header(), yuv2plane1_16_c_template(), and yuv2planeX_16_c_template().

#define av_assert1 (   cond  )     ((void)0)

assert() equivalent, that does not lie in speed critical code.

These asserts() thus can be enabled without fearing speedloss.

Definition at line 53 of file avassert.h.

Referenced by decode_slice(), find_scale_factor7(), and validate_options().

#define av_assert2 (   cond  )     ((void)0)

assert() equivalent, that does lie in speed critical code.

Definition at line 63 of file avassert.h.

Referenced by asym_quant(), av_reduce(), decode_line(), ff_ac3_group_exponents(), output_frame_end(), set(), and sym_quant().