summaryrefslogtreecommitdiffstats
path: root/filters/f_autoconvert.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-02 22:30:25 +0200
committerwm4 <wm4@nowhere>2019-10-02 22:30:25 +0200
commit55424c29d35ec96061c36537e1ad18cd9a281b5a (patch)
tree4cd9d600b092e2aa4a74b6eea858fc14f53d6271 /filters/f_autoconvert.h
parent3e02f39087029380d666cfda963084d3952582f8 (diff)
downloadmpv-55424c29d35ec96061c36537e1ad18cd9a281b5a.tar.bz2
mpv-55424c29d35ec96061c36537e1ad18cd9a281b5a.tar.xz
f_autoconvert: add hw->sw download path
For some reason it could do sw->sw and sw->hw (and, in some ways, even do hw->hw in special cases), but not hw->sw. Add this.
Diffstat (limited to 'filters/f_autoconvert.h')
-rw-r--r--filters/f_autoconvert.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/filters/f_autoconvert.h b/filters/f_autoconvert.h
index 4cd0cb3d6d..d8fac346e5 100644
--- a/filters/f_autoconvert.h
+++ b/filters/f_autoconvert.h
@@ -27,6 +27,13 @@ struct mp_autoconvert *mp_autoconvert_create(struct mp_filter *parent);
// otherwise must be 0.
void mp_autoconvert_add_imgfmt(struct mp_autoconvert *c, int imgfmt, int subfmt);
+// Add all sw image formats. The effect is that hardware video image formats are
+// disallowed. The semantics are the same as calling mp_autoconvert_add_imgfmt()
+// for each sw format that exists.
+// No need to do this if you add sw formats with mp_autoconvert_add_imgfmt(),
+// as the normal semantics will exclude other formats (including hw ones).
+void mp_autoconvert_add_all_sw_imgfmts(struct mp_autoconvert *c);
+
// Add the formats supported by the hwdec interops (or essentially refine them),
// and trigger conversion if hw_subfmts mismatch. This is mostly a hack for
// D3D11/ANGLE (which supports NV12 only).