equal
deleted
inserted
replaced
160 TUint32* s = static_cast< TUint32* >( aSource ); |
160 TUint32* s = static_cast< TUint32* >( aSource ); |
161 TRgb rgb( TRgb::Color16MA( *s++ ) ); |
161 TRgb rgb( TRgb::Color16MA( *s++ ) ); |
162 aSource = s; |
162 aSource = s; |
163 return rgb; |
163 return rgb; |
164 } |
164 } |
|
165 |
|
166 // ----------------------------------------------------------------------------- |
|
167 // VSReadColor16MAP( TAny*& aSource ) |
|
168 // (other items were commented in a header). |
|
169 // ----------------------------------------------------------------------------- |
|
170 // |
|
171 TRgb VSReadColor16MAP( TAny*& aSource ) |
|
172 { |
|
173 TUint32* s = static_cast< TUint32* >( aSource ); |
|
174 TRgb rgb( TRgb::Color16MAP( *s++ ) ); |
|
175 aSource = s; |
|
176 return rgb; |
|
177 } |
165 |
178 |
166 // ============================ MEMBER FUNCTIONS =============================== |
179 // ============================ MEMBER FUNCTIONS =============================== |
167 |
180 |
168 /** |
181 /** |
169 * |
182 * |
1764 break; |
1777 break; |
1765 |
1778 |
1766 case EColor16MA: |
1779 case EColor16MA: |
1767 DoProcess( VSReadColor16MA ); |
1780 DoProcess( VSReadColor16MA ); |
1768 break; |
1781 break; |
|
1782 |
|
1783 case EColor16MAP: |
|
1784 DoProcess( VSReadColor16MAP ); |
|
1785 break; |
1769 |
1786 |
1770 default: |
1787 default: |
1771 User::Leave( KErrNotSupported ); |
1788 User::Leave( KErrNotSupported ); |
1772 break; |
1789 break; |
1773 }; |
1790 }; |
1806 // make sure that source bitmap's displaymode is supported |
1823 // make sure that source bitmap's displaymode is supported |
1807 if( ( iSource->DisplayMode() != EColor4K ) && |
1824 if( ( iSource->DisplayMode() != EColor4K ) && |
1808 ( iSource->DisplayMode() != EColor64K ) && |
1825 ( iSource->DisplayMode() != EColor64K ) && |
1809 ( iSource->DisplayMode() != EColor16M ) && |
1826 ( iSource->DisplayMode() != EColor16M ) && |
1810 ( iSource->DisplayMode() != EColor16MU ) && |
1827 ( iSource->DisplayMode() != EColor16MU ) && |
1811 ( iSource->DisplayMode() != EColor16MA ) ) |
1828 ( iSource->DisplayMode() != EColor16MA ) && |
|
1829 ( iSource->DisplayMode() != EColor16MAP ) ) |
1812 { |
1830 { |
1813 User::Leave( KErrNotSupported ); |
1831 User::Leave( KErrNotSupported ); |
1814 } |
1832 } |
1815 |
1833 |
1816 if( !iYUVData || !( iSize == iSource->SizeInPixels() ) ) |
1834 if( !iYUVData || !( iSize == iSource->SizeInPixels() ) ) |