#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. |
Definition in file avassert.h.
#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)
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(), ff_alsa_extend_reorder_buf(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sos(), finish_file(), free_pool(), get(), 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(), write_chunk_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().