From 3c19744218e665a5b1ff426aae6e3402585d08b1 Mon Sep 17 00:00:00 2001 From: Lukasz Marek Date: Thu, 7 Aug 2014 01:58:56 +0200 Subject: [PATCH] lavu/log: add device category macros Signed-off-by: Michael Niedermayer --- libavutil/log.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; /**