sl@0: // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef FETCHFRAMECUSTOMINTERFACE_H sl@0: #define FETCHFRAMECUSTOMINTERFACE_H sl@0: sl@0: /** sl@0: FetchFrame Custom Interface UID. sl@0: sl@0: @publishedPartner sl@0: @prototype sl@0: */ sl@0: const TUid KUidMMFVideoFetchFrame = { 0x20024343 }; sl@0: sl@0: /** sl@0: This interface can be used to fetch the frame data using the buffer id. sl@0: This interface can be used by a H/W device which needs to send the frame sl@0: data back to application. sl@0: sl@0: @publishedPartner sl@0: @prototype sl@0: */ sl@0: class MMmfVideoFetchFrame sl@0: { sl@0: public: sl@0: sl@0: /** sl@0: Set the handle for the surface sl@0: sl@0: @param aBufId Buffer id whose frame data needs to be returned. sl@0: sl@0: returns pointer to a frame data. memory is allocated by the Custom interface sl@0: implementor to hold the frame data on the host side. ownership of the memory sl@0: would be transfered to the caller of this method. sl@0: */ sl@0: virtual TUint8* MmvffGetFrame(TInt aBufId) = 0; sl@0: }; sl@0: sl@0: #endif // FETCHFRAMECUSTOMINTERFACE_H