void CntThumbnailCreator::RunL() { __ASSERT_DEBUG(m_activeSchedulerWait, User::Panic(KPanicCategory, KPanicUnitialized)); User::LeaveIfError(iStatus.Int()); switch (m_state) { case EStateDecodeImage: { m_state = EStateScaleImage; ScaleImageL(); break; } case EStateScaleImage: { m_state = EStateEncodeImage; EncodeImageL(); break; } case EStateEncodeImage: { m_state = EStateFinal; CreateContactFieldL(); break; } case EStateFinal: { // We are done with the image, back to the caller of convertL m_activeSchedulerWait->AsyncStop(); break; } default: User::Leave(KErrCompletion); } }
CFbsBitmap* CVideoEntry::ScaledBitmapL( TInt aDstWidth, TInt aDstHeight ) { if( iScaledBitmap ) delete iScaledBitmap; iScaledBitmap = NULL; ScaleImageL( aDstWidth, aDstHeight ); return iScaledBitmap; }