digiKam
videothumbwriter.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 : 2016-04-21
7  * Description : video thumbnails extraction based on ffmpeg
8  *
9  * Copyright (C) 2010 by Dirk Vanden Boer <dirk dot vdb at gmail dot com>
10  * Copyright (C) 2016-2018 by Maik Qualmann <metzpinguin at gmail dot com>
11  * Copyright (C) 2016-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_VIDEO_THUMB_WRITER_H
26 #define DIGIKAM_VIDEO_THUMB_WRITER_H
27 
28 // Qt includes
29 
30 #include <QtGlobal>
31 #include <QImage>
32 #include <QVector>
33 
34 namespace Digikam
35 {
36 
38 {
39 public:
40 
41  VideoFrame();
42  VideoFrame(int width, int height, int lineSize);
43  ~VideoFrame();
44 
45 public:
46 
47  quint32 width;
48  quint32 height;
49  quint32 lineSize;
50  QVector<quint8> frameData;
51 };
52 
53 // -----------------------------------------------------------------
54 
56 {
57 public:
58 
59  explicit VideoThumbWriter();
61 
62  void writeFrame(VideoFrame& frame, QImage& image);
63 
64 private:
65 
66  // Disable
67  VideoThumbWriter(const VideoThumbWriter&) = delete;
68  VideoThumbWriter& operator=(const VideoThumbWriter&) = delete;
69 };
70 
71 } // namespace Digikam
72 
73 #endif // DIGIKAM_VIDEO_THUMB_WRITER_H
Definition: videothumbwriter.h:38
quint32 width
Definition: videothumbwriter.h:47
quint32 lineSize
Definition: videothumbwriter.h:49
~VideoFrame()
Definition: videothumbwriter.cpp:44
VideoFrame()
Definition: videothumbwriter.cpp:30
QVector< quint8 > frameData
Definition: videothumbwriter.h:50
quint32 height
Definition: videothumbwriter.h:48
Definition: videothumbwriter.h:56
~VideoThumbWriter()
Definition: videothumbwriter.cpp:54
VideoThumbWriter()
Definition: videothumbwriter.cpp:50
void writeFrame(VideoFrame &frame, QImage &image)
Definition: videothumbwriter.cpp:58
Definition: datefolderview.cpp:43