Phonon
4.7.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Properties
Pages
phonon
graphicsview
videoframe.h
1
/*
2
Copyright (C) 2011-2012 Harald Sitter <sitter@kde.org>
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) version 3, or any
8
later version accepted by the membership of KDE e.V. (or its
9
successor approved by the membership of KDE e.V.), Nokia Corporation
10
(or its successors, if any) and the KDE Free Qt Foundation, which shall
11
act as a proxy defined in Section 6 of version 3 of the license.
12
13
This library is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
Lesser General Public License for more details.
17
18
You should have received a copy of the GNU Lesser General Public
19
License along with this library. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef PHONON_VIDEOFRAME_H
23
#define PHONON_VIDEOFRAME_H
24
25
#include <QtCore/QByteArray>
26
27
namespace
Phonon {
28
39
struct
VideoFrame
{
47
enum
Format
{
48
Format_Invalid,
49
Format_RGB32
,
50
Format_YV12
,
52
Format_I420
53
};
54
55
VideoFrame
()
56
:
width
(0)
57
,
height
(0)
58
,
format
(Format_Invalid)
59
{
60
for
(
int
i = 0; i < 4; ++i) {
61
pitch
[i] = 0;
62
visiblePitch
[i] = 0;
63
lines
[i] = 0;
64
visibleLines
[i] = 0;
65
}
66
}
67
69
unsigned
int
width
;
70
72
unsigned
int
height
;
73
75
Format
format
;
76
78
unsigned
int
planeCount
;
79
81
QByteArray
plane
[4];
82
93
int
pitch
[4];
94
99
int
visiblePitch
[4];
100
105
int
lines
[4];
106
111
int
visibleLines
[4];
112
};
113
114
}
// namespace Phonon
115
116
#endif // PHONON_VIDEOFRAME_H
Generated on Mon Nov 4 2013 18:07:27 for Phonon by
1.8.4