File indexing completed on 2025-01-05 03:56:23

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2006-04-21
0007  * Description : video information container
0008  *
0009  * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_VIDEO_INFO_CONTAINER_H
0016 #define DIGIKAM_VIDEO_INFO_CONTAINER_H
0017 
0018 // Qt includes
0019 
0020 #include <QString>
0021 #include <QDateTime>
0022 #include <QDebug>
0023 
0024 // Local includes
0025 
0026 #include "digikam_export.h"
0027 
0028 namespace Digikam
0029 {
0030 
0031 class DIGIKAM_EXPORT VideoInfoContainer
0032 {
0033 
0034 public:
0035 
0036     explicit VideoInfoContainer();
0037     ~VideoInfoContainer();
0038 
0039     bool isEmpty()                                  const;
0040     bool isNull()                                   const;
0041 
0042     bool operator==(const VideoInfoContainer& t)    const;
0043 
0044 public:
0045 
0046     QString aspectRatio;
0047     QString duration;
0048     QString frameRate;
0049     QString videoCodec;
0050     QString audioBitRate;
0051     QString audioChannelType;
0052     QString audioCodec;
0053 };
0054 
0055 DIGIKAM_EXPORT QDataStream& operator<<(QDataStream& ds, const VideoInfoContainer& info);
0056 DIGIKAM_EXPORT QDataStream& operator>>(QDataStream& ds, VideoInfoContainer& info);
0057 
0058 //! qDebug() stream operator. Writes property @a t to the debug output in a nicely formatted way.
0059 DIGIKAM_EXPORT QDebug operator<<(QDebug dbg, const VideoInfoContainer& t);
0060 
0061 } // namespace Digikam
0062 
0063 #endif // DIGIKAM_VIDEO_INFO_CONTAINER_H