mirror of https://github.com/mpv-player/mpv
Add IMGFMT_RGB48LE and IMGFMT_RGB48BE.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29486 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
180b6a88e4
commit
b92666b582
|
@ -15,6 +15,8 @@ const char *vo_format_name(int format)
|
||||||
case IMGFMT_RGB16: return "RGB 16-bit";
|
case IMGFMT_RGB16: return "RGB 16-bit";
|
||||||
case IMGFMT_RGB24: return "RGB 24-bit";
|
case IMGFMT_RGB24: return "RGB 24-bit";
|
||||||
// case IMGFMT_RGB32: return "RGB 32-bit";
|
// case IMGFMT_RGB32: return "RGB 32-bit";
|
||||||
|
case IMGFMT_RGB48LE: return "RGB 48-bit LE";
|
||||||
|
case IMGFMT_RGB48BE: return "RGB 48-bit BE";
|
||||||
case IMGFMT_BGR1: return "BGR 1-bit";
|
case IMGFMT_BGR1: return "BGR 1-bit";
|
||||||
case IMGFMT_BGR4: return "BGR 4-bit";
|
case IMGFMT_BGR4: return "BGR 4-bit";
|
||||||
case IMGFMT_BG4B: return "BGR 4-bit per byte";
|
case IMGFMT_BG4B: return "BGR 4-bit per byte";
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
#define IMGFMT_RGB16 (IMGFMT_RGB|16)
|
#define IMGFMT_RGB16 (IMGFMT_RGB|16)
|
||||||
#define IMGFMT_RGB24 (IMGFMT_RGB|24)
|
#define IMGFMT_RGB24 (IMGFMT_RGB|24)
|
||||||
#define IMGFMT_RGB32 (IMGFMT_RGB|32)
|
#define IMGFMT_RGB32 (IMGFMT_RGB|32)
|
||||||
|
#define IMGFMT_RGB48LE (IMGFMT_RGB|48)
|
||||||
|
#define IMGFMT_RGB48BE (IMGFMT_RGB|49)
|
||||||
|
|
||||||
#define IMGFMT_BGR_MASK 0xFFFFFF00
|
#define IMGFMT_BGR_MASK 0xFFFFFF00
|
||||||
#define IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8))
|
#define IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8))
|
||||||
|
|
|
@ -474,6 +474,8 @@ static int query_format(struct vf_instance_s* vf, unsigned int fmt){
|
||||||
case IMGFMT_RGB8:
|
case IMGFMT_RGB8:
|
||||||
case IMGFMT_BG4B:
|
case IMGFMT_BG4B:
|
||||||
case IMGFMT_RG4B:
|
case IMGFMT_RG4B:
|
||||||
|
case IMGFMT_RGB48LE:
|
||||||
|
case IMGFMT_RGB48BE:
|
||||||
{
|
{
|
||||||
unsigned int best=find_best_out(vf);
|
unsigned int best=find_best_out(vf);
|
||||||
int flags;
|
int flags;
|
||||||
|
|
Loading…
Reference in New Issue