os/mm/mmhais/videohai/devvideo/inc/devvideosurfacehandlecustominterface.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmhais/videohai/devvideo/inc/devvideosurfacehandlecustominterface.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,64 @@
     1.4 +// Copyright (c) 2008-2009 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 DEVVIDEOSURFACEHANDLECUSTOMINTERFACE_H
    1.20 +#define DEVVIDEOSURFACEHANDLECUSTOMINTERFACE_H
    1.21 +
    1.22 +#include <graphics/surface.h>
    1.23 +#include <mmf/common/mmfvideo.h>
    1.24 +
    1.25 +/** 
    1.26 +DevVideo SurfaceHandle Custom Interface UID.
    1.27 +
    1.28 +@publishedPartner
    1.29 +@prototype
    1.30 +*/
    1.31 +const TUid KUidMMFVideoSurfaceHandleControl = { 0x10286486 };
    1.32 +
    1.33 +/**
    1.34 +Video play surface handle custom interface.
    1.35 +This interface can be used by a H/W device which creates a surface to pass
    1.36 +information about the surface (such as the surface handle) to another H/W device.
    1.37 +This is typically implemented by a post processor and used by a decoder.
    1.38 +
    1.39 +@publishedPartner
    1.40 +@prototype
    1.41 +*/
    1.42 +class MMmfVideoSurfaceHandleControl
    1.43 +	{
    1.44 +	public:
    1.45 +
    1.46 +	/**
    1.47 +	Set the handle for the surface
    1.48 +
    1.49 +	@param aSurfaceHandle Surface handle for the new surface.
    1.50 +	*/
    1.51 +	virtual void MmvshcSetSurfaceHandle(const TSurfaceId& aSurfaceHandle) = 0;
    1.52 +
    1.53 +	/**
    1.54 +	Pass a buffer to redraw on the surface.
    1.55 +	One situation here this might be used is where resources for a decoder are
    1.56 +	temporarily removed. The decoder can call this routine in order to pass the
    1.57 +	last picture to a postprocessor for redrawing.
    1.58 +
    1.59 +	@param  aRedrawBuffer Buffer containing picture to redraw. The memory for
    1.60 +	this buffer is owned by the caller and ownership of the memory is not
    1.61 +	transferred as part of this call. The memory may not be valid	after the
    1.62 +	call completes.
    1.63 +	*/
    1.64 +	virtual void MmvshcRedrawBufferToSurface(TPtrC8& /*aRedrawBuffer*/) {};
    1.65 +	};
    1.66 +
    1.67 +#endif // DEVVIDEOSURFACEHANDLECUSTOMINTERFACE_H