diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-15 01:27:34 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-15 01:27:34 +0000 |
commit | a381e71128b5809a5bbe9f3d072eb056915e8b8d (patch) | |
tree | c0846758bcf7ffd5d480d0b3d3e220df4c66f0d1 /libswscale/swscale.c | |
parent | 31be9659501961dbc616d821c803befe2bca156b (diff) | |
download | mpv-a381e71128b5809a5bbe9f3d072eb056915e8b8d.tar.bz2 mpv-a381e71128b5809a5bbe9f3d072eb056915e8b8d.tar.xz |
improve horizontal chroma resolution with pal
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22994 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 1b21a2f463..0dec5e5e8e 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2036,7 +2036,10 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH c->chrSrcVSubSample+= c->vChrDrop; // drop every 2. pixel for chroma calculation unless user wants full chroma - if((isBGR(srcFormat) || isRGB(srcFormat)) && !(flags&SWS_FULL_CHR_H_INP)) + if((isBGR(srcFormat) || isRGB(srcFormat)) && !(flags&SWS_FULL_CHR_H_INP) + && srcFormat!=PIX_FMT_RGB8 && srcFormat!=PIX_FMT_BGR8 + && srcFormat!=PIX_FMT_RGB4 && srcFormat!=PIX_FMT_BGR4 + && srcFormat!=PIX_FMT_RGB4_BYTE && srcFormat!=PIX_FMT_BGR4_BYTE) c->chrSrcHSubSample=1; if(param){ |