diff options
author | wm4 <wm4@nowhere> | 2014-03-17 18:19:57 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-17 18:19:57 +0100 |
commit | 5ed24862c01b217b4db0b04d74f29bad9bc80569 (patch) | |
tree | afb9133ac23119c3aceabb1cfb1f2b7e8ee57175 /video/img_format.h | |
parent | 6aa2d1f12073c65a30a0b3a8c6d7191165ca0286 (diff) | |
download | mpv-5ed24862c01b217b4db0b04d74f29bad9bc80569.tar.bz2 mpv-5ed24862c01b217b4db0b04d74f29bad9bc80569.tar.xz |
video: change image format from unsigned int to int in some places
Image formats used to be FourCCs, so unsigned int was better. But now
it's annoying and the only difference is that unsigned int is more to
type than int.
Diffstat (limited to 'video/img_format.h')
-rw-r--r-- | video/img_format.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/img_format.h b/video/img_format.h index 10268febaa..3707018477 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -333,7 +333,7 @@ enum mp_imgfmt { IMGFMT_XYZ12 = MP_SELECT_LE_BE(IMGFMT_XYZ12_LE, IMGFMT_XYZ12_BE), }; -static inline bool IMGFMT_IS_RGB(unsigned int fmt) +static inline bool IMGFMT_IS_RGB(int fmt) { struct mp_imgfmt_desc desc = mp_imgfmt_get_desc(fmt); return (desc.flags & MP_IMGFLAG_RGB) && desc.num_planes == 1; @@ -350,13 +350,13 @@ static inline bool IMGFMT_IS_RGB(unsigned int fmt) struct mp_imgfmt_entry { const char *name; - unsigned int fmt; + int fmt; }; extern struct mp_imgfmt_entry mp_imgfmt_list[]; -unsigned int mp_imgfmt_from_name(bstr name, bool allow_hwaccel); -const char *mp_imgfmt_to_name(unsigned int fmt); +int mp_imgfmt_from_name(bstr name, bool allow_hwaccel); +const char *mp_imgfmt_to_name(int fmt); #define vo_format_name mp_imgfmt_to_name |