diff options
author | wm4 <wm4@nowhere> | 2019-10-17 22:43:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-17 22:43:14 +0200 |
commit | 77fd4dd681be8eb95d8e7b79b66242822f95e4da (patch) | |
tree | 7d512a14700da3b16019bd9c3a946a19d2e3138d /video/d3d.c | |
parent | a6000d3114214cf697d628ad09c8ca226c31340d (diff) | |
download | mpv-77fd4dd681be8eb95d8e7b79b66242822f95e4da.tar.bz2 mpv-77fd4dd681be8eb95d8e7b79b66242822f95e4da.tar.xz |
video: remove mp_image_params.hw_flags field
This was speculatively added 2 years ago in preparation for something
that apparently never happened. The D3D code was added as an "example",
but this too was never used/finished.
No reason to keep this.
Diffstat (limited to 'video/d3d.c')
-rw-r--r-- | video/d3d.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/video/d3d.c b/video/d3d.c index b7a644dcfd..dfb999b854 100644 --- a/video/d3d.c +++ b/video/d3d.c @@ -112,15 +112,6 @@ AVBufferRef *d3d11_wrap_device_ref(ID3D11Device *device) return device_ref; } -static void d3d11_complete_image_params(struct mp_image *img) -{ - AVHWFramesContext *hw_frames = (void *)img->hwctx->data; - - // According to hwcontex_d3d11va.h, this means DXGI_FORMAT_420_OPAQUE. - img->params.hw_flags = hw_frames->sw_format == AV_PIX_FMT_YUV420P - ? MP_IMAGE_HW_FLAG_OPAQUE : 0; -} - static struct AVBufferRef *d3d11_create_standalone(struct mpv_global *global, struct mp_log *plog, struct hwcontext_create_dev_params *params) { @@ -152,7 +143,6 @@ static struct AVBufferRef *d3d11_create_standalone(struct mpv_global *global, const struct hwcontext_fns hwcontext_fns_d3d11 = { .av_hwdevice_type = AV_HWDEVICE_TYPE_D3D11VA, - .complete_image_params = d3d11_complete_image_params, .refine_hwframes = d3d11_refine_hwframes, .create_dev = d3d11_create_standalone, }; |