Changeset 846 for trunk/src/gui/painting/qmemrotate.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/painting/qmemrotate.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 595 595 } 596 596 597 void 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 602 void 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 607 void 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 612 void 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 617 void 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 622 void 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 627 MemRotateFunc 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 597 648 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.