aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki2@gmail.com>2014-08-07 01:58:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-18 22:37:03 +0200
commit3c19744218e665a5b1ff426aae6e3402585d08b1 (patch)
tree42abda55d5c513a80584014e51b78dc9a0dcf665
parent96602f4e349bfa3b75109dd8d3c2418f37e986e5 (diff)
downloadffmpeg-3c19744218e665a5b1ff426aae6e3402585d08b1.tar.gz
lavu/log: add device category macros
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/log.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/log.h b/libavutil/log.h
index a6a07e0653..e1ff09bc65 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -46,6 +46,16 @@ typedef enum {
AV_CLASS_CATEGORY_NB, ///< not part of ABI/API
}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;
/**