808 { |
808 { |
809 const TInt count = missingSizes->Count(); |
809 const TInt count = missingSizes->Count(); |
810 |
810 |
811 TSize bitmapSize = bitmap->SizeInPixels(); |
811 TSize bitmapSize = bitmap->SizeInPixels(); |
812 |
812 |
813 for ( TInt i( 0 ); i < count; i++ ) |
813 // scale small thumbs first, because fullscreen encoding takes longer |
|
814 for ( TInt i( count-1 ); i >= 0; i-- ) |
814 { |
815 { |
815 if( bitmapSize.iWidth < bitmapSize.iHeight ) |
816 if( bitmapSize.iWidth < bitmapSize.iHeight ) |
816 { |
817 { |
817 TThumbnailSize size = (*missingSizes)[ i ].iType; |
818 TThumbnailSize size = (*missingSizes)[ i ].iType; |
818 |
819 |
819 if ( size == EFullScreenThumbnailSize || |
820 if ( size == EFullScreenThumbnailSize || |
820 size == EVideoFullScreenThumbnailSize || |
821 size == EVideoFullScreenThumbnailSize || |
821 size == EAudioFullScreenThumbnailSize || |
822 size == EAudioFullScreenThumbnailSize || |
822 size == EImageFullScreenThumbnailSize ) |
823 size == EImageFullScreenThumbnailSize || |
|
824 size == EContactFullScreenThumbnailSize ) |
823 { |
825 { |
824 TInt height = (*missingSizes)[i].iSize.iHeight; |
826 TInt height = (*missingSizes)[i].iSize.iHeight; |
825 (*missingSizes)[i].iSize.iHeight = (*missingSizes)[i].iSize.iWidth; |
827 (*missingSizes)[i].iSize.iHeight = (*missingSizes)[i].iSize.iWidth; |
826 (*missingSizes)[i].iSize.iWidth = height; |
828 (*missingSizes)[i].iSize.iWidth = height; |
827 |
829 |