diff options
author | Andreas Öman <andreas@olebyn.nu> | 2007-07-18 08:12:40 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-07-18 08:12:40 +0000 |
commit | 9ba7fe6dcbe61e21b12563e6ff648ac798990d94 (patch) | |
tree | cff1d5eebec7b93aed812cb76992896edcc976d0 /libswscale/swscale.c | |
parent | 4196cfb75bc5a2c185691861e73995244d6df564 (diff) | |
download | ffmpeg-9ba7fe6dcbe61e21b12563e6ff648ac798990d94.tar.gz |
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
Originally committed as revision 23811 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 349822ab0f..7c2e0254c1 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -124,6 +124,7 @@ untested special converters || (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 @@ char *sws_format_name(enum PixelFormat format) return "nv12"; case PIX_FMT_NV21: return "nv21"; + case PIX_FMT_YUV440P: + return "yuv440p"; default: return "Unknown format"; } @@ -1882,6 +1885,10 @@ static void getSubSampleFactors(int *h, int *v, int format){ *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 @@ static int handle_jpeg(int *format) case PIX_FMT_YUVJ444P: *format = PIX_FMT_YUV444P; return 1; + case PIX_FMT_YUVJ440P: + *format = PIX_FMT_YUV440P; + return 1; default: return 0; } |