mirror of https://git.ffmpeg.org/ffmpeg.git
lavu/log: add device category macros
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
96602f4e34
commit
3c19744218
|
@ -46,6 +46,16 @@ typedef enum {
|
||||||
AV_CLASS_CATEGORY_NB, ///< not part of ABI/API
|
AV_CLASS_CATEGORY_NB, ///< not part of ABI/API
|
||||||
}AVClassCategory;
|
}AVClassCategory;
|
||||||
|
|
||||||
|
#define AV_IS_INPUT_DEVICE(category) \
|
||||||
|
(((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT) || \
|
||||||
|
((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT) || \
|
||||||
|
((category) == AV_CLASS_CATEGORY_DEVICE_INPUT))
|
||||||
|
|
||||||
|
#define AV_IS_OUTPUT_DEVICE(category) \
|
||||||
|
(((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT) || \
|
||||||
|
((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT) || \
|
||||||
|
((category) == AV_CLASS_CATEGORY_DEVICE_OUTPUT))
|
||||||
|
|
||||||
struct AVOptionRanges;
|
struct AVOptionRanges;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue