Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/painting/qmemrotate.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    595595}
    596596
     597void qt_memrotate90_16(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
     598{
     599    qt_memrotate90((const ushort *)srcPixels, w, h, sbpl, (ushort *)destPixels, dbpl);
     600}
     601
     602void qt_memrotate180_16(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
     603{
     604    qt_memrotate180((const ushort *)srcPixels, w, h, sbpl, (ushort *)destPixels, dbpl);
     605}
     606
     607void qt_memrotate270_16(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
     608{
     609    qt_memrotate270((const ushort *)srcPixels, w, h, sbpl, (ushort *)destPixels, dbpl);
     610}
     611
     612void qt_memrotate90_32(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
     613{
     614    qt_memrotate90((const uint *)srcPixels, w, h, sbpl, (uint *)destPixels, dbpl);
     615}
     616
     617void qt_memrotate180_32(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
     618{
     619    qt_memrotate180((const uint *)srcPixels, w, h, sbpl, (uint *)destPixels, dbpl);
     620}
     621
     622void qt_memrotate270_32(const uchar *srcPixels, int w, int h, int sbpl, uchar *destPixels, int dbpl)
     623{
     624    qt_memrotate270((const uint *)srcPixels, w, h, sbpl, (uint *)destPixels, dbpl);
     625}
     626
     627MemRotateFunc qMemRotateFunctions[QImage::NImageFormats][3] =
     628// 90, 180, 270
     629{
     630    { 0, 0, 0 },      // Format_Invalid,
     631    { 0, 0, 0 },      // Format_Mono,
     632    { 0, 0, 0 },      // Format_MonoLSB,
     633    { 0, 0, 0 },      // Format_Indexed8,
     634    { qt_memrotate90_32, qt_memrotate180_32, qt_memrotate270_32 },      // Format_RGB32,
     635    { qt_memrotate90_32, qt_memrotate180_32, qt_memrotate270_32 },      // Format_ARGB32,
     636    { qt_memrotate90_32, qt_memrotate180_32, qt_memrotate270_32 },      // Format_ARGB32_Premultiplied,
     637    { qt_memrotate90_16, qt_memrotate180_16, qt_memrotate270_16 },      // Format_RGB16,
     638    { 0, 0, 0 },      // Format_ARGB8565_Premultiplied,
     639    { 0, 0, 0 },      // Format_RGB666,
     640    { 0, 0, 0 },      // Format_ARGB6666_Premultiplied,
     641    { 0, 0, 0 },      // Format_RGB555,
     642    { 0, 0, 0 },      // Format_ARGB8555_Premultiplied,
     643    { 0, 0, 0 },      // Format_RGB888,
     644    { 0, 0, 0 },      // Format_RGB444,
     645    { 0, 0, 0 }       // Format_ARGB4444_Premultiplied,
     646};
     647
    597648QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.