digiKam
mjpegstreamsettings.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 : 2021-07-24
7  * Description : MJPEG stream settings container.
8  *
9  * Copyright (C) 2021-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2021 by Quoc Hưng Tran <quochungtran1999 at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) 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_MJPEG_STREAM_SETTINGS_H
25 #define DIGIKAM_MJPEG_STREAM_SETTINGS_H
26 
27 // Qt includes
28 
29 #include <QList>
30 #include <QString>
31 #include <QUrl>
32 #include <QFont>
33 
34 // Local includes
35 
36 #include "mjpegserver.h"
37 #include "dinfointerface.h"
38 #include "effectmngr.h"
39 #include "transitionmngr.h"
40 
41 class KConfigGroup;
42 
43 using namespace Digikam;
44 
46 {
47 
49 {
50 
51 public:
52 
53  explicit MjpegStreamSettings();
55 
59  void setCollectionMap(const MjpegServerMap& map);
60 
64  void readSettings(KConfigGroup& group);
65  void writeSettings(KConfigGroup& group);
66 
67 public:
68 
69  bool printTitle;
70  bool printTags;
72  bool printComment;
77  bool printName;
78  bool printDate;
79  bool printRating;
80  QFont osdFont;
81  int port;
82  bool loop;
83  int quality;
84  int delay;
86  int outSize;
87  int rate;
91 };
92 
93 } // namespace DigikamGenericMjpegStreamPlugin
94 
95 #endif // DIGIKAM_MJPEG_STREAM_SETTINGS_H
Definition: mjpegstreamsettings.h:49
int quality
Jpeg compression [1...100].
Definition: mjpegstreamsettings.h:83
int outSize
Output JPEG size ID.
Definition: mjpegstreamsettings.h:86
bool printCapIfNoTitle
Print image captions if no title available while streaming.
Definition: mjpegstreamsettings.h:71
QList< QUrl > inputImages
Ordered list of images to stream.
Definition: mjpegstreamsettings.h:85
bool printLensModel
Print camera Lens model while streaming.
Definition: mjpegstreamsettings.h:74
int delay
Delay in seconds between inages.
Definition: mjpegstreamsettings.h:84
bool printTags
Print tags title while streaming.
Definition: mjpegstreamsettings.h:70
bool printComment
Print picture comment while streaming.
Definition: mjpegstreamsettings.h:72
bool printApertureFocal
Print camera Aperture and Focal while streaming.
Definition: mjpegstreamsettings.h:76
bool loop
Image stream as loop.
Definition: mjpegstreamsettings.h:82
bool printName
Print picture file name while streaming.
Definition: mjpegstreamsettings.h:77
bool printTitle
Print image title while streaming.
Definition: mjpegstreamsettings.h:69
int port
IP port to use with MJPEG Server.
Definition: mjpegstreamsettings.h:81
DInfoInterface * iface
Plugin host interface to handle item properties.
Definition: mjpegstreamsettings.h:90
bool printDate
Print picture creation date while streaming.
Definition: mjpegstreamsettings.h:78
bool printExpoSensitivity
Print camera Exposure and Sensitivity while streaming.
Definition: mjpegstreamsettings.h:75
int rate
Number of frames by seconds.
Definition: mjpegstreamsettings.h:87
bool printMakeModel
Print camera Make and Model while streaming.
Definition: mjpegstreamsettings.h:73
EffectMngr::EffectType effect
Effect while displaying images.
Definition: mjpegstreamsettings.h:89
bool printRating
Print rating while streaming.
Definition: mjpegstreamsettings.h:79
QFont osdFont
Font for the display of osd text.
Definition: mjpegstreamsettings.h:80
TransitionMngr::TransType transition
Transition type between images.
Definition: mjpegstreamsettings.h:88
Definition: dinfointerface.h:56
EffectType
Definition: effectmngr.h:47
TransType
Definition: transitionmngr.h:44
Definition: mjpegframeosd.cpp:45
QMap< QString, QList< QUrl > > MjpegServerMap
A kind of map of albums with urls contents to share with MJPEG server.
Definition: mjpegserver.h:36
Definition: datefolderview.cpp:43