mmserv/thumbnailengine/TneAPISrc/HXTNEVideoClipInfoImp.cpp
changeset 47 c2e43643db4c
parent 0 71ca22bcf22a
child 46 0ac9a5310753
equal deleted inserted replaced
42:1fa3fb47b1e3 47:c2e43643db4c
   419     TInt bytesPerPixel = 0;           
   419     TInt bytesPerPixel = 0;           
   420     TInt error = KErrNone;
   420     TInt error = KErrNone;
   421     
   421     
   422     if ( !iRgbBuf )
   422     if ( !iRgbBuf )
   423     {
   423     {
       
   424         //we only support even frame width & height. Ignore and return error
       
   425         if ( (iMetaData.iWidth & 0x01) || (iMetaData.iHeight & 0x01) )
       
   426         {
       
   427              FLOG(_L("CHXTNEVideoClipInfoImp::GenerateThumbNail non-even frame size returning error iMetaData.iWidth=%d iMetaData.iHeight=%d "),iMetaData.iWidth,iMetaData.iHeight);
       
   428              HandleThumbnailError(KErrNotSupported);
       
   429              return;
       
   430         }
       
   431         
   424         TSize inputFrameResolution(iMetaData.iWidth,iMetaData.iHeight);
   432         TSize inputFrameResolution(iMetaData.iWidth,iMetaData.iHeight);
   425                        
   433                        
   426         // rgb specs
   434         // rgb specs
   427         TUint thumbLength = iMetaData.iWidth * iMetaData.iHeight; 
   435         TUint thumbLength = iMetaData.iWidth * iMetaData.iHeight; 
   428         TUint thumbUVLength = thumbLength>>2;	
   436         TUint thumbUVLength = thumbLength>>2;