diff options
author | wm4 <wm4@nowhere> | 2019-11-02 01:02:54 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-02 01:02:54 +0100 |
commit | c3cee4b9ecd2a13a35651b81158d1577c899daa1 (patch) | |
tree | afd25dc2eb68ed6ef4bcb70fd8afea5cf07ab74a /video/img_format.h | |
parent | bdd1e1e7ec20bc8ff7a5486d589645d9988c7c6c (diff) | |
download | mpv-c3cee4b9ecd2a13a35651b81158d1577c899daa1.tar.bz2 mpv-c3cee4b9ecd2a13a35651b81158d1577c899daa1.tar.xz |
img_format: add function to find image format by layout
This is similar to mp_imgfmt_find(), but probably a bit saner. Used by
the next commit. The previous commit is required to map this
unambiguously between all formats.
Diffstat (limited to 'video/img_format.h')
-rw-r--r-- | video/img_format.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/img_format.h b/video/img_format.h index 5f097d43ff..67de42f3f4 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -150,6 +150,7 @@ struct mp_regular_imgfmt { }; bool mp_get_regular_imgfmt(struct mp_regular_imgfmt *dst, int imgfmt); +int mp_find_regular_imgfmt(struct mp_regular_imgfmt *src); enum mp_imgfmt { IMGFMT_NONE = 0, |