From bc93a46c4fe499f23b9c0ff52e2e36b4c587f7d6 Mon Sep 17 00:00:00 2001 From: Michel Daenzer Date: Mon, 8 May 2006 09:29:34 +0000 Subject: Bugzilla #4640 Patch #5273 : Add cases for FOURCC_RGBA32 and FOURCC_RGB24. This prevents clients from receiving incorrect data sizes with these formats. (Jan Schmidt) --- src/radeon_video.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/radeon_video.c b/src/radeon_video.c index d1e5f3f..d567e19 100644 --- a/src/radeon_video.c +++ b/src/radeon_video.c @@ -2925,6 +2925,18 @@ RADEONQueryImageAttributes( if(offsets) offsets[2] = size; size += tmp; break; + case FOURCC_RGBA32: + size = *w << 2; + if(pitches) pitches[0] = size; + size *= *h; + break; + case FOURCC_RGB24: + size = *w * 3; + if(pitches) pitches[0] = size; + size *= *h; + break; + case FOURCC_RGBT16: + case FOURCC_RGB16: case FOURCC_UYVY: case FOURCC_YUY2: default: -- cgit v1.2.3