50
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: CCoeControl to provide RWindow for videoplayback.
|
|
15 |
* QGraphicsView derived class can not be used for this purpose,
|
|
16 |
* because the Qt OpenVG context may interfere with the one being
|
|
17 |
* used by the renderer.
|
|
18 |
*
|
|
19 |
*/
|
|
20 |
|
|
21 |
#ifndef SVPBNATIVEWINDOW_H
|
|
22 |
#define SVPBNATIVEWINDOW_H
|
|
23 |
|
|
24 |
#include <coecntrl.h>
|
|
25 |
#include "svpbsurfacecontainer.h"
|
|
26 |
|
|
27 |
class CMediaClientVideoDisplay;
|
|
28 |
|
|
29 |
class CSvpbNativeWindow : public CCoeControl, public SvpbSurfaceContainer
|
|
30 |
{
|
|
31 |
public:
|
|
32 |
static CSvpbNativeWindow* NewL(const TRect& displayRect);
|
|
33 |
virtual ~CSvpbNativeWindow();
|
|
34 |
|
|
35 |
public: // From SvpbSurfaceContainer
|
|
36 |
int attachSurface(const TSurfaceId &surfaceId, const TRect &cropRect, const TVideoAspectRatio &aspectRatio);
|
|
37 |
void detachSurface();
|
|
38 |
|
|
39 |
private:
|
|
40 |
CSvpbNativeWindow();
|
|
41 |
void ConstructL(const TRect& displayRect);
|
|
42 |
int setupSurface(const TRect &cropRect, const TVideoAspectRatio &aspectRatio);
|
|
43 |
|
|
44 |
private:
|
|
45 |
TSurfaceId mSurfaceId;
|
|
46 |
CMediaClientVideoDisplay *mDisplay;
|
|
47 |
};
|
|
48 |
|
|
49 |
#endif // SVPBNATIVEWINDOW_H
|