mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
100l, fix compilation again and make codec-cfg.c use the predefined constants
instead of reimplementing the IMGFMT_RGB|bit_depth logic. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29500 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c9f520a3f9
commit
a3d39e2702
@ -162,8 +162,8 @@ static int add_to_format(char *s, char *alias,unsigned int *fourcc, unsigned int
|
||||
{"UYVY", IMGFMT_UYVY},
|
||||
{"YVYU", IMGFMT_YVYU},
|
||||
|
||||
{"RGB48LE", IMGFMT_RGB|48},
|
||||
{"RGB48BE", IMGFMT_RGB|49},
|
||||
{"RGB48LE", IMGFMT_RGB48LE},
|
||||
{"RGB48BE", IMGFMT_RGB48BE},
|
||||
{"RGB4", IMGFMT_RGB|4},
|
||||
{"RGB8", IMGFMT_RGB|8},
|
||||
{"RGB15", IMGFMT_RGB|15},
|
||||
|
@ -14,7 +14,7 @@
|
||||
#define IMGFMT_RGB24 (IMGFMT_RGB|24)
|
||||
#define IMGFMT_RGB32 (IMGFMT_RGB|32)
|
||||
#define IMGFMT_RGB48LE (IMGFMT_RGB|48)
|
||||
#define IMGFMT_RGB48BE (IMGFMT_RGB|48)
|
||||
#define IMGFMT_RGB48BE (IMGFMT_RGB|48|128)
|
||||
|
||||
#define IMGFMT_BGR_MASK 0xFFFFFF00
|
||||
#define IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8))
|
||||
|
Loading…
Reference in New Issue
Block a user