From 9e443f2498aa7a20b6ba891f2fad40072f9948c2 Mon Sep 17 00:00:00 2001 From: Steven Walters Date: Wed, 15 Sep 2010 20:42:08 -0400 Subject: [PATCH] Add full chroma input flag to swscale Improves quality of colorspace conversions involving RGB(A). --- filters/video/resize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters/video/resize.c b/filters/video/resize.c index b68db59a..38077b2d 100644 --- a/filters/video/resize.c +++ b/filters/video/resize.c @@ -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 */ -- 2.47.3