[MPlayer-cvslog] r37784 - trunk/libmpcodecs/mp_image.c

rtogni subversion at mplayerhq.hu
Sun Feb 21 01:59:06 CET 2016


Author: rtogni
Date: Sun Feb 21 01:59:05 2016
New Revision: 37784

Log:
Add support for YUV440P12, YUV440P10, and GBRP10 colorspaces

Add allocation part missing from r37783

Modified:
   trunk/libmpcodecs/mp_image.c

Modified: trunk/libmpcodecs/mp_image.c
==============================================================================
--- trunk/libmpcodecs/mp_image.c	Sun Feb 21 01:50:57 2016	(r37783)
+++ trunk/libmpcodecs/mp_image.c	Sun Feb 21 01:59:05 2016	(r37784)
@@ -144,6 +144,10 @@ void mp_image_setfmt(mp_image_t* mpi,uns
         mpi->bpp=24;
         mpi->flags|=MP_IMGFLAG_PLANAR;
         return;
+    } else if (out_fmt == IMGFMT_GBR10P) {
+        mpi->bpp=30;
+        mpi->flags|=MP_IMGFLAG_PLANAR;
+        return;
     } else if (out_fmt == IMGFMT_GBR12P) {
         mpi->bpp=36;
         mpi->flags|=MP_IMGFLAG_PLANAR;
@@ -206,6 +210,10 @@ void mp_image_setfmt(mp_image_t* mpi,uns
     case IMGFMT_420P10_BE:
     case IMGFMT_420P9_LE:
     case IMGFMT_420P9_BE:
+    case IMGFMT_440P12_LE:
+    case IMGFMT_440P12_BE:
+    case IMGFMT_440P10_LE:
+    case IMGFMT_440P10_BE:
         return;
     case IMGFMT_Y16_LE:
     case IMGFMT_Y16_BE:


More information about the MPlayer-cvslog mailing list