sl@0
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef DEVVIDEOSURFACEHANDLECUSTOMINTERFACE_H
|
sl@0
|
17 |
#define DEVVIDEOSURFACEHANDLECUSTOMINTERFACE_H
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <graphics/surface.h>
|
sl@0
|
20 |
#include <mmf/common/mmfvideo.h>
|
sl@0
|
21 |
|
sl@0
|
22 |
/**
|
sl@0
|
23 |
DevVideo SurfaceHandle Custom Interface UID.
|
sl@0
|
24 |
|
sl@0
|
25 |
@publishedPartner
|
sl@0
|
26 |
@prototype
|
sl@0
|
27 |
*/
|
sl@0
|
28 |
const TUid KUidMMFVideoSurfaceHandleControl = { 0x10286486 };
|
sl@0
|
29 |
|
sl@0
|
30 |
/**
|
sl@0
|
31 |
Video play surface handle custom interface.
|
sl@0
|
32 |
This interface can be used by a H/W device which creates a surface to pass
|
sl@0
|
33 |
information about the surface (such as the surface handle) to another H/W device.
|
sl@0
|
34 |
This is typically implemented by a post processor and used by a decoder.
|
sl@0
|
35 |
|
sl@0
|
36 |
@publishedPartner
|
sl@0
|
37 |
@prototype
|
sl@0
|
38 |
*/
|
sl@0
|
39 |
class MMmfVideoSurfaceHandleControl
|
sl@0
|
40 |
{
|
sl@0
|
41 |
public:
|
sl@0
|
42 |
|
sl@0
|
43 |
/**
|
sl@0
|
44 |
Set the handle for the surface
|
sl@0
|
45 |
|
sl@0
|
46 |
@param aSurfaceHandle Surface handle for the new surface.
|
sl@0
|
47 |
*/
|
sl@0
|
48 |
virtual void MmvshcSetSurfaceHandle(const TSurfaceId& aSurfaceHandle) = 0;
|
sl@0
|
49 |
|
sl@0
|
50 |
/**
|
sl@0
|
51 |
Pass a buffer to redraw on the surface.
|
sl@0
|
52 |
One situation here this might be used is where resources for a decoder are
|
sl@0
|
53 |
temporarily removed. The decoder can call this routine in order to pass the
|
sl@0
|
54 |
last picture to a postprocessor for redrawing.
|
sl@0
|
55 |
|
sl@0
|
56 |
@param aRedrawBuffer Buffer containing picture to redraw. The memory for
|
sl@0
|
57 |
this buffer is owned by the caller and ownership of the memory is not
|
sl@0
|
58 |
transferred as part of this call. The memory may not be valid after the
|
sl@0
|
59 |
call completes.
|
sl@0
|
60 |
*/
|
sl@0
|
61 |
virtual void MmvshcRedrawBufferToSurface(TPtrC8& /*aRedrawBuffer*/) {};
|
sl@0
|
62 |
};
|
sl@0
|
63 |
|
sl@0
|
64 |
#endif // DEVVIDEOSURFACEHANDLECUSTOMINTERFACE_H
|