summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/img_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/img_format.h')
-rw-r--r--libmpcodecs/img_format.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmpcodecs/img_format.h b/libmpcodecs/img_format.h
index ba3bd760b1..61873ad72a 100644
--- a/libmpcodecs/img_format.h
+++ b/libmpcodecs/img_format.h
@@ -236,4 +236,14 @@ const char *vo_format_name(int format);
*/
int mp_get_chroma_shift(int format, int *x_shift, int *y_shift, int *component_bits);
+struct mp_imgfmt_entry {
+ const char *name;
+ unsigned int fmt;
+};
+
+extern struct mp_imgfmt_entry mp_imgfmt_list[];
+
+unsigned int mp_imgfmt_from_name(const char *name);
+const char *mp_imgfmt_to_name(unsigned int fmt);
+
#endif /* MPLAYER_IMG_FORMAT_H */