From a334292b5d280935e0a09b40eb1482db32854188 Mon Sep 17 00:00:00 2001 From: Dmitry Gryazin Date: Sat, 1 Nov 2008 11:01:17 +0300 Subject: [PATCH] Change initial offscreen images format to YUY2. Trident hardware Scaler fails to scale video. It seems that something is wrong in this pipeline: videogradder -> backend hardware scaler -> video-display. Trident driver's hardware Scaler supports YUV format, but YUY2 palette. xvinfo out: .... id:0x32595559 (YUY2) guid: 59555932-0000-0010-8000-00aa00389b71 bits perpixel: 16 number of planes: 1 type: YUV (packed) I have found in V4L2 API specifications that it supports YUYV. (http://v4l2spec.bytesex.org/spec-single/v4l2.html) But the default initial format in TRIDENTInitOffscreenImages function is RV16. And it isn't supported by V4L video driver. Solution is trivial: Init ofscreen images by correct format in TRIDENTInitOffscreenImages function. Signed-off-by: Dmitry Gryazin Signed-off-by: Kirill Smelkov --- src/trident_video.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/trident_video.c b/src/trident_video.c index 7b6fb10..87e56ec 100644 --- a/src/trident_video.c +++ b/src/trident_video.c @@ -1132,7 +1132,7 @@ TRIDENTInitOffscreenImages(ScreenPtr pScreen) if(!(offscreenImages = xalloc(sizeof(XF86OffscreenImageRec)))) return; - offscreenImages[0].image = &Images[0]; + offscreenImages[0].image = &Images[2]; offscreenImages[0].flags = VIDEO_OVERLAID_IMAGES | VIDEO_CLIP_TO_VIEWPORT; offscreenImages[0].alloc_surface = TRIDENTAllocateSurface; -- 1.5.6.5