Kaydet (Commit) a6aa29db authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unused FMT_R8G8B8

...since 5b4d4af3 "bin agg"

Change-Id: If86d294f812a670917b181f3bd140883ad2df71d
Reviewed-on: https://gerrit.libreoffice.org/20348Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Tested-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst e82ca698
......@@ -423,46 +423,6 @@ namespace dxcanvas
}
break;
case ::canvas::IColorBuffer::FMT_R8G8B8:
{
const std::size_t nSourceBytesPerPixel(3);
const std::size_t nSourcePitchInBytes(rSource.getStride());
pImage += rSourceRect.getMinY()*nSourcePitchInBytes;
pImage += rSourceRect.getMinX()*nSourceBytesPerPixel;
// calculate the destination memory address
sal_uInt8 *pDst = (sal_uInt8*)aLockedRect.pBits;
const sal_Int32 nNumColumns(
sal::static_int_cast<sal_Int32>(rSourceRect.getWidth()));
const sal_Int32 nNumLines(
sal::static_int_cast<sal_Int32>(rSourceRect.getHeight()));
for(sal_Int32 i=0; i<nNumLines; ++i)
{
sal_uInt32 *pDstScanline = reinterpret_cast<sal_uInt32 *>(pDst);
sal_uInt8 *pSrcScanline = reinterpret_cast<sal_uInt8 *>(pImage);
for(sal_Int32 x=0; x<nNumColumns; ++x)
{
sal_uInt32 color(0xFF000000);
color |= pSrcScanline[2]<<16;
color |= pSrcScanline[1]<<8;
color |= pSrcScanline[0];
pSrcScanline += 3;
*pDstScanline++ = color;
}
if( bClearRightColumn )
*pDstScanline++ = 0xFF000000;
pDst += aLockedRect.Pitch;
pImage += nSourcePitchInBytes;
}
if( bClearBottomRow )
memset(pDst, 0, 4*(nNumColumns+1));
}
break;
case ::canvas::IColorBuffer::FMT_X8R8G8B8:
{
const std::size_t nSourceBytesPerPixel(4);
......
......@@ -35,9 +35,6 @@ namespace canvas
/// The underlying pixel format for this buffer
enum Format
{
// 24-bit RGB pixel format, 8 bits per channel.
FMT_R8G8B8,
// 32-bit ARGB pixel format with alpha, 8 bits per channel.
FMT_A8R8G8B8,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment