[x264-devel] commit: Add full chroma input flag to swscale (Steven Walters )

git at videolan.org git at videolan.org
Sun Sep 19 03:19:54 CEST 2010


x264 | branch: master | Steven Walters <kemuri9 at gmail.com> | Wed Sep 15 20:42:08 2010 -0400| [9e443f2498aa7a20b6ba891f2fad40072f9948c2] | committer: Jason Garrett-Glaser 

Add full chroma input flag to swscale
Improves quality of colorspace conversions involving RGB(A).

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=9e443f2498aa7a20b6ba891f2fad40072f9948c2
---

 filters/video/resize.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/filters/video/resize.c b/filters/video/resize.c
index b68db59..38077b2 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 */



More information about the x264-devel mailing list