summaryrefslogtreecommitdiff
path: root/src/multimedia/qmediametadata.h
blob: 99398743a0f728fe389c8ccdfbea0a2afd717052 (plain)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.  For licensing terms and
** conditions see http://qt.digia.com/licensing.  For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights.  These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
**
** $QT_END_LICENSE$
**
****************************************************************************/

#ifndef QMEDIAMETADATA_H
#define QMEDIAMETADATA_H

#include <QtCore/qpair.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qstring.h>

#include <QtMultimedia/qtmultimediadefs.h>

QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

// Class forward declaration required for QDoc bug
class QString;

#define Q_DECLARE_METADATA(key) Q_MULTIMEDIA_EXPORT extern const QString key

namespace QMediaMetaData {
#ifdef Q_QDOC
    // QDoc does not like macros, so try to keep this in sync :)
    QString Title;
    QString SubTitle;
    QString Author;
    QString Comment;
    QString Description;
    QString Category;
    QString Genre;
    QString Year;
    QString Date;
    QString UserRating;
    QString Keywords;
    QString Language;
    QString Publisher;
    QString Copyright;
    QString ParentalRating;
    QString RatingOrganization;

    // Media
    QString Size;
    QString MediaType;
    QString Duration;

    // Audio
    QString AudioBitRate;
    QString AudioCodec;
    QString AverageLevel;
    QString ChannelCount;
    QString PeakValue;
    QString SampleRate;

    // Music
    QString AlbumTitle;
    QString AlbumArtist;
    QString ContributingArtist;
    QString Composer;
    QString Conductor;
    QString Lyrics;
    QString Mood;
    QString TrackNumber;
    QString TrackCount;

    QString CoverArtUrlSmall;
    QString CoverArtUrlLarge;

    // Image/Video
    QString Resolution;
    QString PixelAspectRatio;

    // Video
    QString VideoFrameRate;
    QString VideoBitRate;
    QString VideoCodec;

    QString PosterUrl;

    // Movie
    QString ChapterNumber;
    QString Director;
    QString LeadPerformer;
    QString Writer;

    // Photos
    QString CameraManufacturer;
    QString CameraModel;
    QString Event;
    QString Subject;
    QString Orientation;
    QString ExposureTime;
    QString FNumber;
    QString ExposureProgram;
    QString ISOSpeedRatings;
    QString ExposureBiasValue;
    QString DateTimeOriginal;
    QString DateTimeDigitized;
    QString SubjectDistance;
    QString MeteringMode;
    QString LightSource;
    QString Flash;
    QString FocalLength;
    QString ExposureMode;
    QString WhiteBalance;
    QString DigitalZoomRatio;
    QString FocalLengthIn35mmFilm;
    QString SceneCaptureType;
    QString GainControl;
    QString Contrast;
    QString Saturation;
    QString Sharpness;
    QString DeviceSettingDescription;

    // Location
    QString GPSLatitude;
    QString GPSLongitude;
    QString GPSAltitude;
    QString GPSTimeStamp;
    QString GPSSatellites;
    QString GPSStatus;
    QString GPSDOP;
    QString GPSSpeed;
    QString GPSTrack;
    QString GPSTrackRef;
    QString GPSImgDirection;
    QString GPSImgDirectionRef;
    QString GPSMapDatum;
    QString GPSProcessingMethod;
    QString GPSAreaInformation;

    QString PosterImage;
    QString CoverArtImage;
    QString ThumbnailImage;
#else
    // Common
    Q_DECLARE_METADATA(Title);
    Q_DECLARE_METADATA(SubTitle);
    Q_DECLARE_METADATA(Author);
    Q_DECLARE_METADATA(Comment);
    Q_DECLARE_METADATA(Description);
    Q_DECLARE_METADATA(Category);
    Q_DECLARE_METADATA(Genre);
    Q_DECLARE_METADATA(Year);
    Q_DECLARE_METADATA(Date);
    Q_DECLARE_METADATA(UserRating);
    Q_DECLARE_METADATA(Keywords);
    Q_DECLARE_METADATA(Language);
    Q_DECLARE_METADATA(Publisher);
    Q_DECLARE_METADATA(Copyright);
    Q_DECLARE_METADATA(ParentalRating);
    Q_DECLARE_METADATA(RatingOrganization);

    // Media
    Q_DECLARE_METADATA(Size);
    Q_DECLARE_METADATA(MediaType);
    Q_DECLARE_METADATA(Duration);

    // Audio
    Q_DECLARE_METADATA(AudioBitRate);
    Q_DECLARE_METADATA(AudioCodec);
    Q_DECLARE_METADATA(AverageLevel);
    Q_DECLARE_METADATA(ChannelCount);
    Q_DECLARE_METADATA(PeakValue);
    Q_DECLARE_METADATA(SampleRate);

    // Music
    Q_DECLARE_METADATA(AlbumTitle);
    Q_DECLARE_METADATA(AlbumArtist);
    Q_DECLARE_METADATA(ContributingArtist);
    Q_DECLARE_METADATA(Composer);
    Q_DECLARE_METADATA(Conductor);
    Q_DECLARE_METADATA(Lyrics);
    Q_DECLARE_METADATA(Mood);
    Q_DECLARE_METADATA(TrackNumber);
    Q_DECLARE_METADATA(TrackCount);

    Q_DECLARE_METADATA(CoverArtUrlSmall);
    Q_DECLARE_METADATA(CoverArtUrlLarge);

    // Image/Video
    Q_DECLARE_METADATA(Resolution);
    Q_DECLARE_METADATA(PixelAspectRatio);

    // Video
    Q_DECLARE_METADATA(VideoFrameRate);
    Q_DECLARE_METADATA(VideoBitRate);
    Q_DECLARE_METADATA(VideoCodec);

    Q_DECLARE_METADATA(PosterUrl);

    // Movie
    Q_DECLARE_METADATA(ChapterNumber);
    Q_DECLARE_METADATA(Director);
    Q_DECLARE_METADATA(LeadPerformer);
    Q_DECLARE_METADATA(Writer);

    // Photos
    Q_DECLARE_METADATA(CameraManufacturer);
    Q_DECLARE_METADATA(CameraModel);
    Q_DECLARE_METADATA(Event);
    Q_DECLARE_METADATA(Subject);
    Q_DECLARE_METADATA(Orientation);
    Q_DECLARE_METADATA(ExposureTime);
    Q_DECLARE_METADATA(FNumber);
    Q_DECLARE_METADATA(ExposureProgram);
    Q_DECLARE_METADATA(ISOSpeedRatings);
    Q_DECLARE_METADATA(ExposureBiasValue);
    Q_DECLARE_METADATA(DateTimeOriginal);
    Q_DECLARE_METADATA(DateTimeDigitized);
    Q_DECLARE_METADATA(SubjectDistance);
    Q_DECLARE_METADATA(MeteringMode);
    Q_DECLARE_METADATA(LightSource);
    Q_DECLARE_METADATA(Flash);
    Q_DECLARE_METADATA(FocalLength);
    Q_DECLARE_METADATA(ExposureMode);
    Q_DECLARE_METADATA(WhiteBalance);
    Q_DECLARE_METADATA(DigitalZoomRatio);
    Q_DECLARE_METADATA(FocalLengthIn35mmFilm);
    Q_DECLARE_METADATA(SceneCaptureType);
    Q_DECLARE_METADATA(GainControl);
    Q_DECLARE_METADATA(Contrast);
    Q_DECLARE_METADATA(Saturation);
    Q_DECLARE_METADATA(Sharpness);
    Q_DECLARE_METADATA(DeviceSettingDescription);

    // Location
    Q_DECLARE_METADATA(GPSLatitude);
    Q_DECLARE_METADATA(GPSLongitude);
    Q_DECLARE_METADATA(GPSAltitude);
    Q_DECLARE_METADATA(GPSTimeStamp);
    Q_DECLARE_METADATA(GPSSatellites);
    Q_DECLARE_METADATA(GPSStatus);
    Q_DECLARE_METADATA(GPSDOP);
    Q_DECLARE_METADATA(GPSSpeed);
    Q_DECLARE_METADATA(GPSTrack);
    Q_DECLARE_METADATA(GPSTrackRef);
    Q_DECLARE_METADATA(GPSImgDirection);
    Q_DECLARE_METADATA(GPSImgDirectionRef);
    Q_DECLARE_METADATA(GPSMapDatum);
    Q_DECLARE_METADATA(GPSProcessingMethod);
    Q_DECLARE_METADATA(GPSAreaInformation);

    Q_DECLARE_METADATA(PosterImage);
    Q_DECLARE_METADATA(CoverArtImage);
    Q_DECLARE_METADATA(ThumbnailImage);
#endif
}

#undef Q_DECLARE_METADATA

QT_END_NAMESPACE

QT_END_HEADER

#endif // QMEDIAMETADATA_H