summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/img_format.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-11-03 16:39:52 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-08 18:03:35 +0200
commit98a6088a2028ace0693adbdc0ee419e896bee277 (patch)
tree5a0e17b3f7ac25f36cc1f21063dd4cc6c60140fe /libmpcodecs/img_format.h
parentd783c38ce18e7776529e8a94cf461676f3fa6e4c (diff)
downloadmpv-98a6088a2028ace0693adbdc0ee419e896bee277.tar.bz2
mpv-98a6088a2028ace0693adbdc0ee419e896bee277.tar.xz
video: simplify some tests with a new IMGFMT_IS_HWACCEL macro
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32575 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/img_format.h')
-rw-r--r--libmpcodecs/img_format.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/img_format.h b/libmpcodecs/img_format.h
index e5800828d0..c95ed4df3c 100644
--- a/libmpcodecs/img_format.h
+++ b/libmpcodecs/img_format.h
@@ -193,6 +193,8 @@
#define IMGFMT_VDPAU_VC1 (IMGFMT_VDPAU|0x05)
#define IMGFMT_VDPAU_MPEG4 (IMGFMT_VDPAU|0x06)
+#define IMGFMT_IS_HWACCEL(fmt) (IMGFMT_IS_VDPAU(fmt) || IMGFMT_IS_XVMC(fmt))
+
typedef struct {
void* data;
int size;