Mercurial > mplayer.hg
changeset 36170:4fc911fa5366
Add NV12/NV21 support to some helper functions.
author | reimar |
---|---|
date | Mon, 13 May 2013 19:34:40 +0000 |
parents | 438586240590 |
children | 94979f661d38 |
files | libmpcodecs/img_format.c libvo/gl_common.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/img_format.c Sun May 12 01:25:11 2013 +0000 +++ b/libmpcodecs/img_format.c Mon May 13 19:34:40 2013 +0000 @@ -220,6 +220,11 @@ xs = 31; ys = 31; break; + case IMGFMT_NV12: + case IMGFMT_NV21: + xs = 1; + ys = 1; + err = 1; default: err = 1; break;
--- a/libvo/gl_common.c Sun May 12 01:25:11 2013 +0000 +++ b/libvo/gl_common.c Mon May 13 19:34:40 2013 +0000 @@ -326,6 +326,8 @@ *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: