Bug 545632 - Add 16bpp format support enabler. r=jmuizelaar

This commit is contained in:
Oleg Romashin
2010-06-11 05:33:22 -04:00
parent 69de83f484
commit 6f4af0a40d
9 changed files with 65 additions and 47 deletions

View File

@@ -188,7 +188,7 @@ BasicPlanarYCbCrImage::GetAsSurface()
}
nsRefPtr<gfxImageSurface> imgSurface =
new gfxImageSurface(mBuffer, mSize,
mSize.width * 4,
mSize.width * gfxASurface::BytePerPixelFromFormat(gfxASurface::ImageFormatRGB24),
gfxASurface::ImageFormatRGB24);
if (!imgSurface) {
return nsnull;