os/mm/mdfdevvideoextensions/nga_mdf_postprocessor/inc/fetchframecustominterface.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mdfdevvideoextensions/nga_mdf_postprocessor/inc/fetchframecustominterface.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,51 @@
1.4 +// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef FETCHFRAMECUSTOMINTERFACE_H
1.20 +#define FETCHFRAMECUSTOMINTERFACE_H
1.21 +
1.22 +/**
1.23 +FetchFrame Custom Interface UID.
1.24 +
1.25 +@publishedPartner
1.26 +@prototype
1.27 +*/
1.28 +const TUid KUidMMFVideoFetchFrame = { 0x20024343 };
1.29 +
1.30 +/**
1.31 +This interface can be used to fetch the frame data using the buffer id.
1.32 +This interface can be used by a H/W device which needs to send the frame
1.33 +data back to application.
1.34 +
1.35 +@publishedPartner
1.36 +@prototype
1.37 +*/
1.38 +class MMmfVideoFetchFrame
1.39 + {
1.40 + public:
1.41 +
1.42 + /**
1.43 + Set the handle for the surface
1.44 +
1.45 + @param aBufId Buffer id whose frame data needs to be returned.
1.46 +
1.47 + returns pointer to a frame data. memory is allocated by the Custom interface
1.48 + implementor to hold the frame data on the host side. ownership of the memory
1.49 + would be transfered to the caller of this method.
1.50 + */
1.51 + virtual TUint8* MmvffGetFrame(TInt aBufId) = 0;
1.52 + };
1.53 +
1.54 +#endif // FETCHFRAMECUSTOMINTERFACE_H