# HG changeset patch # User Faisal Memon # Date 1269618351 0 # Node ID c9d64fb26f98534ad9d1d46b4203457681edd6c7 # Parent 535d0a02b797d643b841607ed738bc446e2450b4 Test program updated to create a blank background surface of the appropriate type. This program needs to be improved by loading a real YUV image so that the algorithm can be confirmed. diff -r 535d0a02b797 -r c9d64fb26f98 applications/Symbian_MiniGUI_TestApp/yuv.cpp --- a/applications/Symbian_MiniGUI_TestApp/yuv.cpp Thu Mar 25 22:13:48 2010 +0000 +++ b/applications/Symbian_MiniGUI_TestApp/yuv.cpp Fri Mar 26 15:45:51 2010 +0000 @@ -63,10 +63,10 @@ RSurfaceManager::TSurfaceCreationAttributesBuf buf; RSurfaceManager::TSurfaceCreationAttributes& attributes = buf(); - attributes.iSize = TSize(361,341); // w > 0, h > 0 + attributes.iSize = TSize(320, 240); // w > 0, h > 0 attributes.iBuffers = 4; // > 0, <= 4 - attributes.iPixelFormat = EUidPixelFormatYUV_422Planar; // 2bpp - attributes.iStride = 1400; // > 0, width * bpp + attributes.iPixelFormat = EUidPixelFormatYUV_422Interleaved; // 1bpp + attributes.iStride = 320; // > 0, width * bpp attributes.iOffsetToFirstBuffer = 184; // > 0, divisible by alignment attributes.iAlignment = 4; // 1 || 2 || 4 || 8 attributes.iContiguous = EFalse; @@ -102,6 +102,8 @@ win.EndRedraw(); ws.Flush(); User::After(3000000); + + win.RemoveBackgroundSurface(ETrue); win.Close(); grp.Close(); delete gc;