1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/* This file is part of libmeegotouch
*
* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
*
* Contact: Tomas Junnonen <tomas.junnonen@nokia.com>
*
* This software, including documentation, is protected by copyright
* controlled by Nokia Corporation. All rights are reserved. Copying,
* including reproducing, storing, adapting or translating, any or all of
* this material requires the prior written consent of Nokia Corporation.
* This material also contains confidential information which may not be
* disclosed to others without the prior written consent of Nokia.
*/
#ifndef MVIDEOWIDGETVIEW_P_H
#define MVIDEOWIDGETVIEW_P_H
#include "private/mwidgetview_p.h"
class MVideoWidgetView;
class MVideoWidgetModel;
class MGstVideo;
class QGLShaderProgram;
class MVideoWidgetViewPrivate : public MWidgetViewPrivate
{
public:
Q_DECLARE_PUBLIC(MVideoWidgetView)
MVideoWidgetViewPrivate();
virtual ~MVideoWidgetViewPrivate();
const MVideoWidgetModel* model() const;
MVideoWidgetModel* model();
void update();
void updateGeometry();
void videoReady();
void frameReady();
void stateChanged();
void updateVideoGeometry();
void blitGLFrame();
void blitRgbTexture(const uchar* data, int width, int height);
void blitMultiYuvTexture(const uchar* data, int width, int height);
void blitSingleYuvTexture(const uchar* data, int width, int height);
void blitSwFrame();
void prepareBlit(int w, int h);
void blit(const uchar* data);
void blit(const uchar* data, int w, int h);
unsigned long currentWinId() const;
void _q_enableVisualUpdates();
void _q_disableVisualUpdates();
bool m_useSingleYuvTexture;
unsigned int m_textures[3];
QImage *image;
uchar *bits;
const int *scaleOffsets;
bool m_needFillBg;
QString m_videoFilename;
QRectF m_scaledVideoRect;
bool m_fullscreen;
MGstVideo* m_gstVideo;
bool m_updateEnabled;
};
#endif
|