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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/img_format.h b/video/img_format.h
index 3eb6ba16a8..44c5505f68 100644
--- a/video/img_format.h
+++ b/video/img_format.h
@@ -256,6 +256,7 @@ enum mp_imgfmt {
IMGFMT_VDPAU_OUTPUT, // VdpOutputSurface
IMGFMT_VDA,
IMGFMT_VAAPI,
+ IMGFMT_DXVA2,
IMGFMT_END,
@@ -332,7 +333,7 @@ static inline bool IMGFMT_IS_RGB(int fmt)
#define IMGFMT_IS_HWACCEL(fmt) \
((fmt) == IMGFMT_VDPAU || (fmt) == IMGFMT_VDPAU_OUTPUT || \
- (fmt) == IMGFMT_VAAPI || (fmt) == IMGFMT_VDA)
+ (fmt) == IMGFMT_VAAPI || (fmt) == IMGFMT_VDA || (fmt) == IMGFMT_DXVA2)
int mp_imgfmt_from_name(bstr name, bool allow_hwaccel);
char *mp_imgfmt_to_name_buf(char *buf, size_t buf_size, int fmt);