Mercurial > mplayer.hg
comparison libswscale/swscale_internal.h @ 29608:ff34398b14b1
Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Patch by Lars T¸«£uber <lars <dot> taeuber <at> gmx <dot> net>.
author | ramiro |
---|---|
date | Sat, 05 Sep 2009 23:33:11 +0000 |
parents | bb2eaf7331e5 |
children | 3b0026eb9c4d |
comparison
equal
deleted
inserted
replaced
29607:5a46b1a05a32 | 29608:ff34398b14b1 |
---|---|
300 #define is16BPS(x) ( \ | 300 #define is16BPS(x) ( \ |
301 (x)==PIX_FMT_GRAY16BE \ | 301 (x)==PIX_FMT_GRAY16BE \ |
302 || (x)==PIX_FMT_GRAY16LE \ | 302 || (x)==PIX_FMT_GRAY16LE \ |
303 || (x)==PIX_FMT_RGB48BE \ | 303 || (x)==PIX_FMT_RGB48BE \ |
304 || (x)==PIX_FMT_RGB48LE \ | 304 || (x)==PIX_FMT_RGB48LE \ |
305 || (x)==PIX_FMT_YUV420PLE \ | 305 || (x)==PIX_FMT_YUV420P16LE \ |
306 || (x)==PIX_FMT_YUV422PLE \ | 306 || (x)==PIX_FMT_YUV422P16LE \ |
307 || (x)==PIX_FMT_YUV444PLE \ | 307 || (x)==PIX_FMT_YUV444P16LE \ |
308 || (x)==PIX_FMT_YUV420PBE \ | 308 || (x)==PIX_FMT_YUV420P16BE \ |
309 || (x)==PIX_FMT_YUV422PBE \ | 309 || (x)==PIX_FMT_YUV422P16BE \ |
310 || (x)==PIX_FMT_YUV444PBE \ | 310 || (x)==PIX_FMT_YUV444P16BE \ |
311 ) | 311 ) |
312 #define isBE(x) ((x)&1) | 312 #define isBE(x) ((x)&1) |
313 #define isPlanar8YUV(x) ( \ | 313 #define isPlanar8YUV(x) ( \ |
314 (x)==PIX_FMT_YUV410P \ | 314 (x)==PIX_FMT_YUV410P \ |
315 || (x)==PIX_FMT_YUV420P \ | 315 || (x)==PIX_FMT_YUV420P \ |
321 || (x)==PIX_FMT_NV12 \ | 321 || (x)==PIX_FMT_NV12 \ |
322 || (x)==PIX_FMT_NV21 \ | 322 || (x)==PIX_FMT_NV21 \ |
323 ) | 323 ) |
324 #define isPlanarYUV(x) ( \ | 324 #define isPlanarYUV(x) ( \ |
325 isPlanar8YUV(x) \ | 325 isPlanar8YUV(x) \ |
326 || (x)==PIX_FMT_YUV420PLE \ | 326 || (x)==PIX_FMT_YUV420P16LE \ |
327 || (x)==PIX_FMT_YUV422PLE \ | 327 || (x)==PIX_FMT_YUV422P16LE \ |
328 || (x)==PIX_FMT_YUV444PLE \ | 328 || (x)==PIX_FMT_YUV444P16LE \ |
329 || (x)==PIX_FMT_YUV420PBE \ | 329 || (x)==PIX_FMT_YUV420P16BE \ |
330 || (x)==PIX_FMT_YUV422PBE \ | 330 || (x)==PIX_FMT_YUV422P16BE \ |
331 || (x)==PIX_FMT_YUV444PBE \ | 331 || (x)==PIX_FMT_YUV444P16BE \ |
332 ) | 332 ) |
333 #define isYUV(x) ( \ | 333 #define isYUV(x) ( \ |
334 (x)==PIX_FMT_UYVY422 \ | 334 (x)==PIX_FMT_UYVY422 \ |
335 || (x)==PIX_FMT_YUYV422 \ | 335 || (x)==PIX_FMT_YUYV422 \ |
336 || isPlanarYUV(x) \ | 336 || isPlanarYUV(x) \ |