Bug 6614

Summary: XvShmCreateImage creates images of wrong size
Product: xorg Reporter: Arne Caspari <arne>
Component: Lib/XextAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: high    
Version: 7.0.0   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Arne Caspari 2006-04-16 05:04:17 UTC
XvShmCreateImage creates images of wrong size for certain formats. For example,
for the format with the ID 0x41424752 (ABGR) with an image size of 320x240
pixels, it returns an image with a data size of 153600 pixels while the correct
size of such an image should be 307200 pixels. I am testing this on a ATI Radeon
9000 mobility, using the x.org "ati" driver.

Consequently applications using this format segfault.

I modified the xvinfo program to show the calculated size and the image size
returned by XvShmCreateImage. It can be found here: 

http://www.datafloater.de/xvinfo-1.0.1-mod.tar.bz2
Comment 1 Daniel Stone 2006-04-16 19:54:38 UTC

*** This bug has been marked as a duplicate of 4640 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.