Mercurial > mplayer.hg
comparison libmpcodecs/img_format.c @ 36170:4fc911fa5366
Add NV12/NV21 support to some helper functions.
author | reimar |
---|---|
date | Mon, 13 May 2013 19:34:40 +0000 |
parents | 4e3c56728d1e |
children | 0b6385acafcc |
comparison
equal
deleted
inserted
replaced
36169:438586240590 | 36170:4fc911fa5366 |
---|---|
218 case IMGFMT_Y8: | 218 case IMGFMT_Y8: |
219 case IMGFMT_Y800: | 219 case IMGFMT_Y800: |
220 xs = 31; | 220 xs = 31; |
221 ys = 31; | 221 ys = 31; |
222 break; | 222 break; |
223 case IMGFMT_NV12: | |
224 case IMGFMT_NV21: | |
225 xs = 1; | |
226 ys = 1; | |
227 err = 1; | |
223 default: | 228 default: |
224 err = 1; | 229 err = 1; |
225 break; | 230 break; |
226 } | 231 } |
227 if (x_shift) *x_shift = xs; | 232 if (x_shift) *x_shift = xs; |