summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/mp_image.h
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-21 16:01:18 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-21 16:01:18 +0000
commit3028536080160f566c0609239c13b8eae078e6eb (patch)
tree8728a5ea7a72fd7977529892adb8057e7e3f9cd3 /libmpcodecs/mp_image.h
parent0b2ecf14e167f64a4d4b703175812862d9165895 (diff)
downloadmpv-3028536080160f566c0609239c13b8eae078e6eb.tar.bz2
mpv-3028536080160f566c0609239c13b8eae078e6eb.tar.xz
added yvu9
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6479 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/mp_image.h')
-rw-r--r--libmpcodecs/mp_image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmpcodecs/mp_image.h b/libmpcodecs/mp_image.h
index d818f21f2e..b99dbf2b89 100644
--- a/libmpcodecs/mp_image.h
+++ b/libmpcodecs/mp_image.h
@@ -26,6 +26,8 @@
#define MP_IMGFLAG_SWAPPED 0x400
// type displayed (do not set this flag - it's for internal use!)
#define MP_IMGFLAG_TYPE_DISPLAYED 0x800
+// using palette for RGB data
+#define MP_IMGFLAG_TYPE_RGB_PALETTE 0x1000
// codec doesn't support any form of direct rendering - it has own buffer
// allocation. so we just export its buffer pointers:
@@ -74,6 +76,10 @@ static inline void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){
mpi->flags|=MP_IMGFLAG_PLANAR;
mpi->bpp=12;
return;
+ case IMGFMT_YVU9:
+ mpi->flags|=MP_IMGFLAG_PLANAR;
+ mpi->bpp=9;
+ return;
case IMGFMT_UYVY:
mpi->flags|=MP_IMGFLAG_SWAPPED;
case IMGFMT_YUY2: