diff -r c36d67f77f75 -r eb1e5d7cc688 mdfdevvideoextensions/nga_mdf_postprocessor/inc/NGAPostProcHwDevice.h --- a/mdfdevvideoextensions/nga_mdf_postprocessor/inc/NGAPostProcHwDevice.h Thu Jun 24 10:37:45 2010 +0100 +++ b/mdfdevvideoextensions/nga_mdf_postprocessor/inc/NGAPostProcHwDevice.h Fri Jul 09 12:23:13 2010 +0100 @@ -41,9 +41,11 @@ #include #include +#include "fetchframecustominterface.h" #include "MdfRDebug.h" #include "NGAPostProcHwDevice_UID.hrh" #include "NGAPostProcSessionManagerObserver.h" +#include "common.h" class CNGAPostProcSessionManager; class CNGAPostProcSurfaceHandler; @@ -528,8 +530,8 @@ plug-in does not support snapshots." @pre "This method can only be called after the hwdevice has been initialized with Initialize()." */ -// TBool GetSnapshotL(TPictureData& aPictureData, const TUncompressedVideoFormat& aFormat) {return EFalse;}; - TBool GetSnapshotL(TPictureData&, const TUncompressedVideoFormat& ) {return EFalse;}; +// TBool GetSnapshotL(TPictureData& aPictureData, const TUncompressedVideoFormat& aFormat) {return EFalse;}; + TBool GetSnapshotL(TPictureData& aPictureData, const TUncompressedVideoFormat& aFormat); /** When the snapshot is available, it will be returned to the client using the TimedSnapshotComplete() @@ -1008,6 +1010,10 @@ #ifdef _DUMP_YUV_FRAMES void captureYuv(TVideoPicture* aPicture); #endif + + TInt SetSourceFormat(); + TInt SetSourceRange(); + TInt ColorConvert(tBaseVideoFrame* aInputFrame, TUint8* aDestPtr, tWndParam* aInputCropWindow, tWndParam* aOutputCropWindow); private: @@ -1063,7 +1069,10 @@ TInt iVideoFrameBufSize; TBool iResourceLost; TBool iRedrawDone; - + // Flag to indicate that the redraw surface has been created, and + // can be used in a subsequent call ro Redraw() + TBool iRedrawSurfaceInUse; + //-- members for buffer management -- MMmfVideoBufferManagementObserver* iVBMObserver; TBufferOptions iVBMBufferOptions; @@ -1083,6 +1092,8 @@ MMmfVideoPropertiesObserver* iVPObserver; RWsSession iWsSession; TSize iPicSize; + TUint iAspectRatioNum; + TUint iAspectRatioDenom; //-- members for Trickplay support -- TInt iStepFrameCount; TInt iPlayRate; @@ -1091,6 +1102,13 @@ TUint8 iSkippedFramesCountingBuffer[64]; TUint8 iSkippedFramesInLast64Frames; TUint8 iCurrentPosInFramesCountingBuffer; + TUncompressedVideoFormat iVideoFormat; + //---------- utility variables ------- + // Image source format + TUint8 iSourceFormat; + + //Image range + TUint8 iSourceRange; }; /**