FFmpeg 7.1.1
|
Utility Preprocessor macros. More...
#include "libavutil/avconfig.h"
Go to the source code of this file.
Macros | |
#define | AV_NE(be, le) |
#define | FFDIFFSIGN(x, y) |
Comparator. | |
#define | FFMAX(a, b) |
#define | FFMAX3(a, b, c) |
#define | FFMIN(a, b) |
#define | FFMIN3(a, b, c) |
#define | FFSWAP(type, a, b) |
#define | FF_ARRAY_ELEMS(a) |
#define | MKTAG(a, b, c, d) |
#define | MKBETAG(a, b, c, d) |
#define | AV_STRINGIFY(s) |
#define | AV_TOSTRING(s) |
#define | AV_GLUE(a, b) |
#define | AV_JOIN(a, b) |
#define | AV_PRAGMA(s) |
#define | FFALIGN(x, a) |
Utility Preprocessor macros.
Definition in file macros.h.
#define AV_NE | ( | be, | |
le ) |
Definition at line 33 of file macros.h.
Referenced by get_format_from_sample_fmt(), get_format_from_sample_fmt(), and get_format_from_sample_fmt().
#define FFDIFFSIGN | ( | x, | |
y ) |
Comparator.
For two numerical expressions x and y, gives 1 if x > y, -1 if x < y, and 0 if x == y. This is useful for instance in a qsort comparator callback. Furthermore, compilers are able to optimize this to branchless code, and there is no risk of overflow with signed types. As with many macros, this evaluates its argument multiple times, it thus must not have a side-effect.
#define FFMAX | ( | a, | |
b ) |
Definition at line 47 of file macros.h.
Referenced by av_clipd_c(), and av_clipf_c().
#define FFMAX3 | ( | a, | |
b, | |||
c ) |
#define FFMIN | ( | a, | |
b ) |
Definition at line 49 of file macros.h.
Referenced by av_clipd_c(), av_clipf_c(), load_encode_and_write(), and read_packet().
#define FFMIN3 | ( | a, | |
b, | |||
c ) |
#define FFSWAP | ( | type, | |
a, | |||
b ) |
#define FF_ARRAY_ELEMS | ( | a | ) |
Definition at line 53 of file macros.h.
Referenced by decode_packet(), get_format_from_sample_fmt(), get_format_from_sample_fmt(), and get_format_from_sample_fmt().
#define MKTAG | ( | a, | |
b, | |||
c, | |||
d ) |
#define MKBETAG | ( | a, | |
b, | |||
c, | |||
d ) |