diff libmpcodecs/img_format.h @ 32488:49722126eba9

Add and use a IMGFMT_IS_HWACCEL define.
author reimar
date Wed, 03 Nov 2010 16:39:52 +0000
parents 92f88bb315c5
children b1e64a3d6dd3
line wrap: on
line diff
--- a/libmpcodecs/img_format.h	Wed Nov 03 08:15:19 2010 +0000
+++ b/libmpcodecs/img_format.h	Wed Nov 03 16:39:52 2010 +0000
@@ -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;