[MPlayer-cvslog] r36266 - in trunk: libmpcodecs/img_format.c libvo/gl_common.c

reimar subversion at mplayerhq.hu
Mon May 13 21:34:41 CEST 2013


Author: reimar
Date: Mon May 13 21:34:40 2013
New Revision: 36266

Log:
Add NV12/NV21 support to some helper functions.

Modified:
   trunk/libmpcodecs/img_format.c
   trunk/libvo/gl_common.c

Modified: trunk/libmpcodecs/img_format.c
==============================================================================
--- trunk/libmpcodecs/img_format.c	Sun May 12 03:25:11 2013	(r36265)
+++ trunk/libmpcodecs/img_format.c	Mon May 13 21:34:40 2013	(r36266)
@@ -220,6 +220,11 @@ int mp_get_chroma_shift(int format, int 
         xs = 31;
         ys = 31;
         break;
+    case IMGFMT_NV12:
+    case IMGFMT_NV21:
+        xs = 1;
+        ys = 1;
+        err = 1;
     default:
         err = 1;
         break;

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Sun May 12 03:25:11 2013	(r36265)
+++ trunk/libvo/gl_common.c	Mon May 13 21:34:40 2013	(r36266)
@@ -326,6 +326,8 @@ int glFindFormat(uint32_t fmt, int *bpp,
       *gl_format = GL_LUMINANCE;
       *gl_type = GL_UNSIGNED_SHORT;
       break;
+    case IMGFMT_NV12:
+    case IMGFMT_NV21:
     case IMGFMT_YV12:
       supported = 0; // no native YV12 support
     case IMGFMT_Y800:


More information about the MPlayer-cvslog mailing list