]> git.sesse.net Git - x264/commitdiff
Add full chroma input flag to swscale
authorSteven Walters <kemuri9@gmail.com>
Thu, 16 Sep 2010 00:42:08 +0000 (20:42 -0400)
committerFiona Glaser <fiona@x264.com>
Sun, 19 Sep 2010 01:18:05 +0000 (18:18 -0700)
Improves quality of colorspace conversions involving RGB(A).

filters/video/resize.c

index b68db59a5cf1f9bf53ab207909d90271a485bf80..38077b2dd32975f95f85ae04978dd802c54a6379 100644 (file)
@@ -359,7 +359,7 @@ static int init( hnd_t *handle, cli_vid_filter_t *filter, video_info_t *info, x2
 
     h->ctx_flags = convert_cpu_to_flag( param->cpu ) | method;
     if( method != SWS_FAST_BILINEAR )
-        h->ctx_flags |= SWS_FULL_CHR_H_INT | SWS_ACCURATE_RND;
+        h->ctx_flags |= SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP | SWS_ACCURATE_RND;
     h->dst.pix_fmt = convert_csp_to_pix_fmt( h->dst_csp );
     h->scale = h->dst;
     /* swap chroma planes for yv12 to have it become i420 */