summaryrefslogtreecommitdiffstats
path: root/video/img_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/img_format.h')
-rw-r--r--video/img_format.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/video/img_format.h b/video/img_format.h
index 3707018477..9cf3a60f11 100644
--- a/video/img_format.h
+++ b/video/img_format.h
@@ -252,20 +252,8 @@ enum mp_imgfmt {
// Hardware accelerated formats. Plane data points to special data
// structures, instead of pixel data.
-
- IMGFMT_VDPAU, // new decoder API
- IMGFMT_VDPAU_MPEG1, // old API
- IMGFMT_VDPAU_MPEG2,
- IMGFMT_VDPAU_H264,
- IMGFMT_VDPAU_WMV3,
- IMGFMT_VDPAU_VC1,
- IMGFMT_VDPAU_MPEG4,
-
- IMGFMT_VDPAU_FIRST = IMGFMT_VDPAU,
- IMGFMT_VDPAU_LAST = IMGFMT_VDPAU_MPEG4,
-
+ IMGFMT_VDPAU,
IMGFMT_VDA,
-
IMGFMT_VAAPI,
@@ -341,11 +329,8 @@ static inline bool IMGFMT_IS_RGB(int fmt)
#define IMGFMT_RGB_DEPTH(fmt) (mp_imgfmt_get_desc(fmt).plane_bits)
-#define IMGFMT_IS_VDPAU(fmt) \
- (((fmt) >= IMGFMT_VDPAU_FIRST) && ((fmt) <= IMGFMT_VDPAU_LAST))
-
#define IMGFMT_IS_HWACCEL(fmt) \
- (IMGFMT_IS_VDPAU(fmt) || ((fmt) == IMGFMT_VAAPI) || ((fmt) == IMGFMT_VDA))
+ ((fmt) == IMGFMT_VDPAU || (fmt) == IMGFMT_VAAPI || (fmt) == IMGFMT_VDA)
struct mp_imgfmt_entry {