summaryrefslogtreecommitdiffstats
path: root/video/hwdec.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-17 13:54:17 +0100
committerwm4 <wm4@nowhere>2017-02-17 14:14:22 +0100
commit2b5577901d43841fcb7930db62ff881becbcc4de (patch)
tree3cff406a0384be62580ad2c08a9dacc72bc7207f /video/hwdec.h
parentb5bbcc9f930eaf61e149a6cd7cc61712107f50ed (diff)
downloadmpv-2b5577901d43841fcb7930db62ff881becbcc4de.tar.bz2
mpv-2b5577901d43841fcb7930db62ff881becbcc4de.tar.xz
videotoolbox: remove weird format-negotiation between VO and decoder
Originally, there was probably some sort of intention to restrict it to formats supported by the interop, or something. But in the end it was overcomplicated nonsense. In the future, we could use mp_hwdec_ctx.supported_formats or other mechanisms to handle this in a better way. mp_hwdec_ctx.ctx is not set to a dummy pointer - hwdec_devices_load() is only used to detect whether to vo_opengl interop is present, and the common hwdec code expects that the .ctx field is not NULL. This also changes videotoolbox-copy to use --videotoolbox-format, instead of the FFmpeg-set default.
Diffstat (limited to 'video/hwdec.h')
-rw-r--r--video/hwdec.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/video/hwdec.h b/video/hwdec.h
index 9d1035cd6e..f8a089e8c6 100644
--- a/video/hwdec.h
+++ b/video/hwdec.h
@@ -39,7 +39,7 @@ struct mp_hwdec_ctx {
// This is never NULL. Its meaning depends on the .type field:
// HWDEC_VDPAU: struct mp_vaapi_ctx*
- // HWDEC_VIDEOTOOLBOX: struct mp_vt_ctx*
+ // HWDEC_VIDEOTOOLBOX: non-NULL dummy pointer
// HWDEC_VAAPI: struct mp_vaapi_ctx*
// HWDEC_D3D11VA: ID3D11Device*
// HWDEC_DXVA2: IDirect3DDevice9*
@@ -64,11 +64,6 @@ struct mp_hwdec_ctx {
struct mp_image_pool *swpool);
};
-struct mp_vt_ctx {
- void *priv;
- uint32_t (*get_vt_fmt)(struct mp_vt_ctx *ctx);
-};
-
// Used to communicate hardware decoder device handles from VO to video decoder.
struct mp_hwdec_devices;