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:
cehoyos 2009-08-11 17:51:11 +00:00
parent 180b6a88e4
commit b92666b582
3 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,8 @@ const char *vo_format_name(int format)
case IMGFMT_RGB16: return "RGB 16-bit";
case IMGFMT_RGB24: return "RGB 24-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_BGR4: return "BGR 4-bit";
case IMGFMT_BG4B: return "BGR 4-bit per byte";

View File

@ -13,6 +13,8 @@
#define IMGFMT_RGB16 (IMGFMT_RGB|16)
#define IMGFMT_RGB24 (IMGFMT_RGB|24)
#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 (('B'<<24)|('G'<<16)|('R'<<8))

View File

@ -474,6 +474,8 @@ static int query_format(struct vf_instance_s* vf, unsigned int fmt){
case IMGFMT_RGB8:
case IMGFMT_BG4B:
case IMGFMT_RG4B:
case IMGFMT_RGB48LE:
case IMGFMT_RGB48BE:
{
unsigned int best=find_best_out(vf);
int flags;