digiKam
videoinfocontainer.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2006-04-21
7  * Description : video information container
8  *
9  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_VIDEO_INFO_CONTAINER_H
25 #define DIGIKAM_VIDEO_INFO_CONTAINER_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QDateTime>
31 #include <QDebug>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class DIGIKAM_EXPORT VideoInfoContainer
41 {
42 
43 public:
44 
45  explicit VideoInfoContainer();
47 
48  bool isEmpty() const;
49  bool isNull() const;
50 
51  bool operator==(const VideoInfoContainer& t) const;
52 
53 public:
54 
55  QString aspectRatio;
56  QString duration;
57  QString frameRate;
58  QString videoCodec;
59  QString audioBitRate;
61  QString audioCodec;
62 };
63 
64 DIGIKAM_EXPORT QDataStream& operator<<(QDataStream& ds, const VideoInfoContainer& info);
65 DIGIKAM_EXPORT QDataStream& operator>>(QDataStream& ds, VideoInfoContainer& info);
66 
68 DIGIKAM_EXPORT QDebug operator<<(QDebug dbg, const VideoInfoContainer& t);
69 
70 } // namespace Digikam
71 
72 #endif // DIGIKAM_VIDEO_INFO_CONTAINER_H
Definition: videoinfocontainer.h:41
QString audioBitRate
Definition: videoinfocontainer.h:59
QString audioCodec
Definition: videoinfocontainer.h:61
QString aspectRatio
Definition: videoinfocontainer.h:55
QString videoCodec
Definition: videoinfocontainer.h:58
QString audioChannelType
Definition: videoinfocontainer.h:60
QString duration
Definition: videoinfocontainer.h:56
QString frameRate
Definition: videoinfocontainer.h:57
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863
QDataStream & operator>>(QDataStream &ds, PhotoInfoContainer &info)
Definition: photoinfocontainer.cpp:117
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49