/src/ffmpegthumbs/ffmpegthumbnailer/videoframe.h
Line | Count | Source |
1 | | /* |
2 | | SPDX-FileCopyrightText: 2010 Dirk Vanden Boer <dirk.vdb@gmail.com> |
3 | | |
4 | | SPDX-License-Identifier: GPL-2.0-or-later |
5 | | */ |
6 | | |
7 | | #ifndef VIDEOFRAME_H |
8 | | #define VIDEOFRAME_H |
9 | | |
10 | | #include <inttypes.h> |
11 | | #include <vector> |
12 | | #include <QtGlobal> |
13 | | |
14 | | namespace ffmpegthumbnailer |
15 | | { |
16 | | |
17 | | struct VideoFrame { |
18 | | VideoFrame() |
19 | 0 | : width(0), height(0), lineSize(0) {} |
20 | | |
21 | | VideoFrame(int width, int height, int lineSize) |
22 | 0 | : width(width), height(height), lineSize(lineSize) {} |
23 | | |
24 | | quint32 width; |
25 | | quint32 height; |
26 | | quint32 lineSize; |
27 | | |
28 | | std::vector<quint8> frameData; |
29 | | }; |
30 | | |
31 | | } |
32 | | |
33 | | #endif |