Mercurial > mplayer.hg
changeset 23791:e4138d991107
use YUV440P in swscale
patch by Andreas ªÓman: \andreas olebyn nu/
original thread: [FFmpeg-devel] half vertical chroma resolution from JPEGs..
date: 07/03/2007 01:29 PM
author | benoit |
---|---|
date | Wed, 18 Jul 2007 08:12:40 +0000 |
parents | b85ad66b047b |
children | ac22aefd69ac |
files | libswscale/swscale.c libswscale/swscale_internal.h |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale.c Tue Jul 17 17:30:50 2007 +0000 +++ b/libswscale/swscale.c Wed Jul 18 08:12:40 2007 +0000 @@ -124,6 +124,7 @@ || (x)==PIX_FMT_RGB8 \ || (x)==PIX_FMT_BGR4_BYTE \ || (x)==PIX_FMT_RGB4_BYTE \ + || (x)==PIX_FMT_YUV440P \ ) #define isSupportedOut(x) ( \ (x)==PIX_FMT_YUV420P \ @@ -351,6 +352,8 @@ return "nv12"; case PIX_FMT_NV21: return "nv21"; + case PIX_FMT_YUV440P: + return "yuv440p"; default: return "Unknown format"; } @@ -1882,6 +1885,10 @@ *h=1; *v=1; break; + case PIX_FMT_YUV440P: + *h=0; + *v=1; + break; case PIX_FMT_YUV410P: *h=2; *v=2; @@ -2002,6 +2009,9 @@ case PIX_FMT_YUVJ444P: *format = PIX_FMT_YUV444P; return 1; + case PIX_FMT_YUVJ440P: + *format = PIX_FMT_YUV440P; + return 1; default: return 0; }
--- a/libswscale/swscale_internal.h Tue Jul 17 17:30:50 2007 +0000 +++ b/libswscale/swscale_internal.h Wed Jul 18 08:12:40 2007 +0000 @@ -193,6 +193,7 @@ || (x)==PIX_FMT_YUV411P \ || (x)==PIX_FMT_YUV422P \ || (x)==PIX_FMT_YUV444P \ + || (x)==PIX_FMT_YUV440P \ || (x)==PIX_FMT_NV12 \ || (x)==PIX_FMT_NV21 \ )