comparison libvo/gl_common.c @ 36170:4fc911fa5366

Add NV12/NV21 support to some helper functions.
author reimar
date Mon, 13 May 2013 19:34:40 +0000
parents 868f3a141dca
children 927dedf22dde
comparison
equal deleted inserted replaced
36169:438586240590 36170:4fc911fa5366
324 *gl_texfmt = GL_LUMINANCE16; 324 *gl_texfmt = GL_LUMINANCE16;
325 *bpp = 16; 325 *bpp = 16;
326 *gl_format = GL_LUMINANCE; 326 *gl_format = GL_LUMINANCE;
327 *gl_type = GL_UNSIGNED_SHORT; 327 *gl_type = GL_UNSIGNED_SHORT;
328 break; 328 break;
329 case IMGFMT_NV12:
330 case IMGFMT_NV21:
329 case IMGFMT_YV12: 331 case IMGFMT_YV12:
330 supported = 0; // no native YV12 support 332 supported = 0; // no native YV12 support
331 case IMGFMT_Y800: 333 case IMGFMT_Y800:
332 case IMGFMT_Y8: 334 case IMGFMT_Y8:
333 *gl_texfmt = GL_LUMINANCE; 335 *gl_texfmt = GL_LUMINANCE;