#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(), av_grow_packet(), config_inprops(), decode_chunks(), decode_postinit(), decode_slice_header(), do_audio_out(), does_clip(), draw_slice(), ff_generate_sliding_window_mmcos(), ff_mjpeg_decode_sos(), mpegts_write_packet(), opt_new_stream(), output_packet(), quantize(), sbr_mapping(), start_frame(), store_in_pool(), vf_get_image(), vf_next_config(), and vf_next_put_image().
#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(), group_exponents(), output_frame_end(), and sym_quant().