imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailserversession.cpp
changeset 42 2e2a89493e2b
parent 39 1a8af2cd6858
equal deleted inserted replaced
39:1a8af2cd6858 42:2e2a89493e2b
   850         {
   850         {
   851         const TInt count = missingSizes->Count();
   851         const TInt count = missingSizes->Count();
   852         
   852         
   853         TSize bitmapSize = bitmap->SizeInPixels();
   853         TSize bitmapSize = bitmap->SizeInPixels();
   854         
   854         
   855         for ( TInt i( 0 ); i < count; i++ )
   855         // scale small thumbs first, because fullscreen encoding takes longer
       
   856         for ( TInt i( count-1 ); i >= 0; i-- )
   856             {           
   857             {           
   857             if( bitmapSize.iWidth < bitmapSize.iHeight )
   858             if( bitmapSize.iWidth < bitmapSize.iHeight )
   858                {
   859                {
   859                TThumbnailSize size = (*missingSizes)[ i ].iType;
   860                TThumbnailSize size = (*missingSizes)[ i ].iType;
   860         
   861         
   861                if ( size == EFullScreenThumbnailSize ||
   862                if ( size == EFullScreenThumbnailSize ||
   862                     size == EVideoFullScreenThumbnailSize ||
   863                     size == EVideoFullScreenThumbnailSize ||
   863                     size == EAudioFullScreenThumbnailSize ||
   864                     size == EAudioFullScreenThumbnailSize ||
   864                     size == EImageFullScreenThumbnailSize )
   865                     size == EImageFullScreenThumbnailSize ||
       
   866                     size == EContactFullScreenThumbnailSize )
   865                    {
   867                    {
   866                    TInt height = (*missingSizes)[i].iSize.iHeight;
   868                    TInt height = (*missingSizes)[i].iSize.iHeight;
   867                    (*missingSizes)[i].iSize.iHeight = (*missingSizes)[i].iSize.iWidth;
   869                    (*missingSizes)[i].iSize.iHeight = (*missingSizes)[i].iSize.iWidth;
   868                    (*missingSizes)[i].iSize.iWidth = height;
   870                    (*missingSizes)[i].iSize.iWidth = height;
   869                     
   871