This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/tvtime.git tree:
Subject: [tvtime,1/4] xvoutput: Fix xvblit not working with odd widths Author: Hans de Goede <[email protected]> Date: Wed Feb 24 08:07:04 2016 -0300 Since xvblit blits the u and v planes 2 pixels at a time it needs to ensure that width always is a multiple of 2. Add support for planar yuv formats Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> src/xvoutput.c | 3 +++ 1 file changed, 3 insertions(+) --- http://git.linuxtv.org/cgit.cgi/tvtime.git/commit/?id=a36b4f9765dcf04da2e287f7b69be78702319c9c diff --git a/src/xvoutput.c b/src/xvoutput.c index c5a80a008db7..c8f5ed373f8a 100644 --- a/src/xvoutput.c +++ b/src/xvoutput.c @@ -232,6 +232,9 @@ static void xv_blit( uint8_t *dest, uint8_t *src, { uint8_t *y_dest, *u_dest, *v_dest, *src1; + /* We always copy 2 pixels at a time */ + width = (width + 1) & ~1; + /* Adjust src for x and y start coordinates */ src += y * input_width * 2 + (x & ~1) * 2; _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
