[MPlayer-cvslog] r37780 - in trunk/libmpcodecs: img_format.c img_format.h

rtogni subversion at mplayerhq.hu
Sun Feb 21 01:04:43 CET 2016


Author: rtogni
Date: Sun Feb 21 01:04:42 2016
New Revision: 37780

Log:
Fix playback of YUV4xxP12 and YUV4xxP14

Set the correct bpp value for the formats, and make them recognized as
YUV4xxP16-like formats

Modified:
   trunk/libmpcodecs/img_format.c
   trunk/libmpcodecs/img_format.h

Modified: trunk/libmpcodecs/img_format.c
==============================================================================
--- trunk/libmpcodecs/img_format.c	Sat Feb 20 23:16:03 2016	(r37779)
+++ trunk/libmpcodecs/img_format.c	Sun Feb 21 01:04:42 2016	(r37780)
@@ -169,6 +169,12 @@ int mp_get_chroma_shift(int format, int
         case 0x53:
             bits = 9;
             break;
+        case 0x54:
+            bits = 14;
+            break;
+        case 0x55:
+            bits = 12;
+            break;
         default:
             err = 1;
             break;

Modified: trunk/libmpcodecs/img_format.h
==============================================================================
--- trunk/libmpcodecs/img_format.h	Sat Feb 20 23:16:03 2016	(r37779)
+++ trunk/libmpcodecs/img_format.h	Sun Feb 21 01:04:42 2016	(r37780)
@@ -224,8 +224,8 @@
 #define IMGFMT_IS_YUVP16_NE(fmt) IMGFMT_IS_YUVP16_LE(fmt)
 #endif
 
-#define IMGFMT_IS_YUVP16_LE(fmt) (((fmt - 0x51000034) & 0xfc0000ff) == 0)
-#define IMGFMT_IS_YUVP16_BE(fmt) (((fmt - 0x34000051) & 0xff0000fc) == 0)
+#define IMGFMT_IS_YUVP16_LE(fmt) (((fmt - 0x51000034) & 0xf80000ff) == 0)
+#define IMGFMT_IS_YUVP16_BE(fmt) (((fmt - 0x34000051) & 0xff0000f8) == 0)
 #define IMGFMT_IS_YUVP16(fmt)    (IMGFMT_IS_YUVP16_LE(fmt) || IMGFMT_IS_YUVP16_BE(fmt))
 
 /**


More information about the MPlayer-cvslog mailing list