|
FFmpeg 8.0.1
|
simple assert() macros that are a bit more flexible than ISO C assert(). More...
Go to the source code of this file.
Macros | |
| #define | av_assert0(cond) |
| assert() equivalent, that is always enabled. | |
| #define | av_assert1(cond) |
| assert() equivalent, that does not lie in speed critical code. | |
| #define | av_assert2(cond) |
| assert() equivalent, that does lie in speed critical code. | |
| #define | av_assert2_fpu() |
| #define | av_unreachable(msg) |
| Asserts that are used as compiler optimization hints depending upon ASSERT_LEVEL and NBDEBUG. | |
| #define | av_assume(cond) |
Functions | |
| void | av_assert0_fpu (void) |
| Assert that floating point operations can be executed. | |
simple assert() macros that are a bit more flexible than ISO C assert().
Definition in file avassert.h.
| #define av_assert0 | ( | cond | ) |
assert() equivalent, that is always enabled.
Definition at line 41 of file avassert.h.
Referenced by av_get_detection_bbox(), av_iamf_param_definition_get_subblock(), av_tdrdi_get_display(), av_video_enc_params_block(), init_resampler(), and write_audio_frame().
| #define av_assert1 | ( | cond | ) |
assert() equivalent, that does not lie in speed critical code.
These asserts() thus can be enabled without fearing speed loss.
Definition at line 57 of file avassert.h.
| #define av_assert2 | ( | cond | ) |
assert() equivalent, that does lie in speed critical code.
Definition at line 68 of file avassert.h.
| #define av_assert2_fpu | ( | ) |
Definition at line 69 of file avassert.h.
| #define av_unreachable | ( | msg | ) |
Asserts that are used as compiler optimization hints depending upon ASSERT_LEVEL and NBDEBUG.
Undefined behaviour occurs if execution reaches a point marked with av_unreachable() or if a condition used with av_assume() is false.
The condition used with av_assume() should not have side-effects and should be visible to the compiler.
Definition at line 91 of file avassert.h.
| #define av_assume | ( | cond | ) |
Definition at line 98 of file avassert.h.
| void av_assert0_fpu | ( | void | ) |
Assert that floating point operations can be executed.
This will av_assert0() that the cpu is not in MMX state on X86