Mercurial > mplayer.hg
comparison libswscale/swscale_internal.h @ 32308:ecb8e52d4add
Y400A (gray alpha) input support in libswscale
author | bcoudurier |
---|---|
date | Mon, 27 Sep 2010 22:24:03 +0000 |
parents | b90559772910 |
children |
comparison
equal
deleted
inserted
replaced
32307:7ba2369d71f7 | 32308:ecb8e52d4add |
---|---|
376 || (x)==PIX_FMT_YUYV422 \ | 376 || (x)==PIX_FMT_YUYV422 \ |
377 || isPlanarYUV(x) \ | 377 || isPlanarYUV(x) \ |
378 ) | 378 ) |
379 #define isGray(x) ( \ | 379 #define isGray(x) ( \ |
380 (x)==PIX_FMT_GRAY8 \ | 380 (x)==PIX_FMT_GRAY8 \ |
381 || (x)==PIX_FMT_Y400A \ | |
381 || (x)==PIX_FMT_GRAY16BE \ | 382 || (x)==PIX_FMT_GRAY16BE \ |
382 || (x)==PIX_FMT_GRAY16LE \ | 383 || (x)==PIX_FMT_GRAY16LE \ |
383 ) | 384 ) |
384 #define isGray16(x) ( \ | 385 #define isGray16(x) ( \ |
385 (x)==PIX_FMT_GRAY16BE \ | 386 (x)==PIX_FMT_GRAY16BE \ |
438 #define isALPHA(x) ( \ | 439 #define isALPHA(x) ( \ |
439 (x)==PIX_FMT_BGR32 \ | 440 (x)==PIX_FMT_BGR32 \ |
440 || (x)==PIX_FMT_BGR32_1 \ | 441 || (x)==PIX_FMT_BGR32_1 \ |
441 || (x)==PIX_FMT_RGB32 \ | 442 || (x)==PIX_FMT_RGB32 \ |
442 || (x)==PIX_FMT_RGB32_1 \ | 443 || (x)==PIX_FMT_RGB32_1 \ |
444 || (x)==PIX_FMT_Y400A \ | |
443 || (x)==PIX_FMT_YUVA420P \ | 445 || (x)==PIX_FMT_YUVA420P \ |
444 ) | 446 ) |
445 #define usePal(x) (av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) | 447 #define usePal(x) ((av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) || (x) == PIX_FMT_Y400A) |
446 | 448 |
447 extern const uint64_t ff_dither4[2]; | 449 extern const uint64_t ff_dither4[2]; |
448 extern const uint64_t ff_dither8[2]; | 450 extern const uint64_t ff_dither8[2]; |
449 | 451 |
450 extern const AVClass sws_context_class; | 452 extern const AVClass sws_context_class; |