diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-30 09:15:09 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-30 09:15:09 +0000 |
commit | 49a3af8585178fa4b790bedfb587a8c23ec9c99e (patch) | |
tree | d580a9eb8d4512209354a96bdd6e7ef1cea3f625 /libmpcodecs/img_format.h | |
parent | 6df2ca6ea6d6e8f9ceda72e00991a0331ccdbc5d (diff) | |
download | mpv-49a3af8585178fa4b790bedfb587a8c23ec9c99e.tar.bz2 mpv-49a3af8585178fa4b790bedfb587a8c23ec9c99e.tar.xz |
fixing rgb4 & bgr4 (2 pixels per byte)
adding bg4b & rg4b (1 pixel per byte)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9172 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/img_format.h')
-rw-r--r-- | libmpcodecs/img_format.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpcodecs/img_format.h b/libmpcodecs/img_format.h index 4a19febc27..5619eb624f 100644 --- a/libmpcodecs/img_format.h +++ b/libmpcodecs/img_format.h @@ -8,6 +8,7 @@ #define IMGFMT_RGB (('R'<<24)|('G'<<16)|('B'<<8)) #define IMGFMT_RGB1 (IMGFMT_RGB|1) #define IMGFMT_RGB4 (IMGFMT_RGB|4) +#define IMGFMT_RG4B (IMGFMT_RGB|4|128) // RGB4 with 1 pixel per byte #define IMGFMT_RGB8 (IMGFMT_RGB|8) #define IMGFMT_RGB15 (IMGFMT_RGB|15) #define IMGFMT_RGB16 (IMGFMT_RGB|16) @@ -18,6 +19,7 @@ #define IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8)) #define IMGFMT_BGR1 (IMGFMT_BGR|1) #define IMGFMT_BGR4 (IMGFMT_BGR|4) +#define IMGFMT_BG4B (IMGFMT_BGR|4|128) // BGR4 with 1 pixel per byte #define IMGFMT_BGR8 (IMGFMT_BGR|8) #define IMGFMT_BGR15 (IMGFMT_BGR|15) #define IMGFMT_BGR16 (IMGFMT_BGR|16) @@ -27,8 +29,8 @@ #define IMGFMT_IS_RGB(fmt) (((fmt)&IMGFMT_RGB_MASK)==IMGFMT_RGB) #define IMGFMT_IS_BGR(fmt) (((fmt)&IMGFMT_BGR_MASK)==IMGFMT_BGR) -#define IMGFMT_RGB_DEPTH(fmt) ((fmt)&~IMGFMT_RGB_MASK) -#define IMGFMT_BGR_DEPTH(fmt) ((fmt)&~IMGFMT_BGR_MASK) +#define IMGFMT_RGB_DEPTH(fmt) ((fmt)&0x3F) +#define IMGFMT_BGR_DEPTH(fmt) ((fmt)&0x3F) /* Planar YUV Formats */ |