linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* downscaling YUV fails
@ 2012-12-19  9:51 Peter Meerwald
  2012-12-19 10:16 ` Archit Taneja
  0 siblings, 1 reply; 12+ messages in thread
From: Peter Meerwald @ 2012-12-19  9:51 UTC (permalink / raw)
  To: linux-omap; +Cc: Archit Taneja, Tomi Valkeinen

Hello,

downscaling a YUV video from /dev/fb1 silently fails and results in 
incorrectly rendered data (each line is shifted a bit more to the right, 
turning vertical lines into diagonals) -- observed with Linux 3.6.11 on 
omap3/dm3730


test data (an image with vertical bars) is produced by:
gst-launch-0.10 videotestsrc ! video/x-raw-yuv, width=400, height=240 ! freeze ! omapfbsink

cd /sys/devices/platform/omapdss/overlay1
echo 400,240 > output_size
echo 100,100 > position
echo 220,140 > output_size
this downscales the YUV data from 400x240->220x140 and results in 
distorted output data (see http://pmeerw.net/overlay-distorted.jpg)

note that upscaling works

more observations:
setting CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=4 results in correct downscaling 
with x_predecim=1/y_predecim=1

CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=0 leads to distorted output with 
x_predecim=2/y_predecim=1



I think there is a bug downscaling YUV data when resorting to 
pre-decimation; setting CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK is a workaround 
-- any ideas how this can be fixed?

thanks, regards, p.

-- 

Peter Meerwald
+43-664-2444418 (mobile)

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-12-19 13:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19  9:51 downscaling YUV fails Peter Meerwald
2012-12-19 10:16 ` Archit Taneja
2012-12-19 10:51   ` Peter Meerwald
2012-12-19 11:19     ` Tomi Valkeinen
2012-12-19 11:21       ` Tomi Valkeinen
2012-12-19 11:52         ` Archit Taneja
2012-12-19 11:59           ` Tomi Valkeinen
2012-12-19 12:19             ` Archit Taneja
2012-12-19 12:37               ` Tomi Valkeinen
2012-12-19 13:00                 ` Archit Taneja
2012-12-19 13:10                   ` Tomi Valkeinen
2012-12-19 12:15           ` Peter Meerwald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).