![]() |
digiKam
|
#include <vidslidesettings.h>
Public Types | |
enum | Selection { IMAGES = 0 , ALBUMS } |
enum | VidBitRate { VBR04 = 0 , VBR05 , VBR10 , VBR12 , VBR15 , VBR20 , VBR25 , VBR30 , VBR40 , VBR45 , VBR50 , VBR60 , VBR80 } |
enum | VidCodec { X264 = 0 , MPEG4 , MPEG2 , MJPEG , FLASH , WEBMVP8 , THEORA , WMV7 , WMV8 , WMV9 } |
enum | VidFormat { AVI = 0 , MKV , MP4 , MPG } |
enum | VidPlayer { NOPLAYER = 0 , INTERNAL , DESKTOP } |
enum | VidStd { PAL = 0 , NTSC } |
enum | VidType { QVGA = 0 , VCD1 , VCD2 , CVD1 , CVD2 , HVGA , SVCD1 , SDTV1 , SDTV2 , EDTV1 , SVCD2 , EGA , VGA , SDTV3 , EDTV2 , DVD1 , DVD2 , WVGA , SVGA , DVGA , XVGA , HDTV , WXGA1 , WXGA2 , SXGA , SXGAPLUS , WSXGA , HDPLUS , UXGA , WSXGAPLUS , BLUERAY , WUXGA , TXGA , QXGA , UWFHD , WQHD , WQXGA , QSXGA , QSXGAPLUS , WQXGAPLUS , WQSXGA , QUXGA , UHD4K , WQUXGA , HXGA , UHD5K , WHXGA , HSXGA , UHD6K , WHSXGA , HUXGA , UHD8K , WHUXGA , UW10K , UW16K } |
Public Member Functions | |
QStringList | defaultFFmpegSearchPaths () const |
void | readSettings (const KConfigGroup &group) |
int | videoBitRate () const |
Return the current video bit rate. | |
QString | videoCodec () const |
Return the current video ffmpeg codec name. | |
QString | videoFormat () const |
Return the current video format extension. | |
qreal | videoFrameRate () const |
Return the current video frame rate. | |
QSize | videoSize () const |
Return the current video size. | |
VidSlideSettings ()=default | |
void | writeSettings (KConfigGroup &group) |
~VidSlideSettings ()=default | |
Static Public Member Functions | |
static bool | isVideoTVFormat (VidType type) |
Return true if type is a video TV format. If false is returned type is computer graphics screen format. | |
static QMap< VidBitRate, QString > | videoBitRateNames () |
static QMap< VidCodec, QString > | videoCodecNames () |
static QMap< VidFormat, QString > | videoFormatNames () |
static QMap< VidPlayer, QString > | videoPlayerNames () |
static QSize | videoSizeFromType (VidType type) |
Return the current size from a type of video. | |
static QMap< VidStd, QString > | videoStdNames () |
static QMap< VidType, QString > | videoTypeNames () |
Public Attributes | |
int | abitRate = 64000 |
Encoded Audio stream bit rate in bit/s. | |
QString | audioTrack |
Soundtrack stream. | |
FileSaveConflictBox::ConflictRule | conflictRule = FileSaveConflictBox::OVERWRITE |
bool | equalize = false |
Equalize filter to applying while encoding video from frames. | |
QMap< QString, QString > | ffmpegCodecs |
Map of FFmpeg codec names and features. | |
QMap< QString, QString > | ffmpegFormats |
Map of FFmpeg format names and features. | |
QString | ffmpegPath |
Path to FFmpeg binary. | |
QString | filesList |
Path to list of frame files to encode. | |
DInfoInterface * | iface = nullptr |
Plugin host interface to handle item properties. | |
int | imgFrames = 125 |
Amount of frames by image to encode in video (ex: 125 frames = 5 s at 25 img/s). | |
QList< QUrl > | inputImages |
Images stream. | |
FrameOsdSettings | osdSettings |
On Screen Display parameters. | |
QString | outputDir = QStandardPaths::writableLocation(QStandardPaths::MoviesLocation) |
QString | outputFile |
Path to encoded video. | |
VidPlayer | outputPlayer = INTERNAL |
Open video stream in player at end. | |
QString | outputVideo |
Target video file encoded at end. | |
Selection | selMode = IMAGES |
Items selection mode. | |
QTime | soundtrackLength |
Duration of the soundtrack. | |
int | strength = 5 |
Equalization strength factor. | |
QString | tempDir |
To store temporary frames. | |
TransitionMngr::TransType | transition = TransitionMngr::None |
Transition type between images. | |
VidBitRate | vbitRate = VBR12 |
Encoded Video stream bit rate in bit/s. | |
VidCodec | vCodec = X264 |
Encoded video codec. | |
EffectMngr::EffectType | vEffect = EffectMngr::None |
Encoded video effect while displaying images. | |
VidFormat | vFormat = MP4 |
Encoded video container format. | |
VidStd | vStandard = PAL |
Encoded Video standard => frame rate in img/s. | |
VidType | vType = BLUERAY |
Encoded video type. | |
Video types (size of target screen) See https://en.wikipedia.org/wiki/List_of_common_resolutions#Digital_TV_standards https://en.wikipedia.org/wiki/Aspect_ratio_(image)
|
default |
|
default |
QStringList Digikam::VidSlideSettings::defaultFFmpegSearchPaths | ( | ) | const |
References Digikam::macOSBundlePrefix().
Referenced by readSettings().
|
static |
void Digikam::VidSlideSettings::readSettings | ( | const KConfigGroup & | group | ) |
Read and write settings in config file between sessions.
References abitRate, audioTrack, BLUERAY, conflictRule, defaultFFmpegSearchPaths(), equalize, ffmpegPath, IMAGES, imgFrames, INTERNAL, MP4, Digikam::EffectMngr::None, Digikam::TransitionMngr::None, outputDir, outputPlayer, Digikam::FileSaveConflictBox::OVERWRITE, PAL, selMode, strength, transition, vbitRate, VBR12, vCodec, vEffect, vFormat, vStandard, vType, and X264.
int Digikam::VidSlideSettings::videoBitRate | ( | ) | const |
|
static |
QString Digikam::VidSlideSettings::videoCodec | ( | ) | const |
|
static |
QString Digikam::VidSlideSettings::videoFormat | ( | ) | const |
Return the current video format extension.
References AVI, MKV, MPG, and vFormat.
Referenced by Digikam::VidSlideTask::run().
|
static |
qreal Digikam::VidSlideSettings::videoFrameRate | ( | ) | const |
Return the current video frame rate.
References NTSC, and vStandard.
Referenced by Digikam::FFmpegLauncher::encodeFrames().
|
static |
QSize Digikam::VidSlideSettings::videoSize | ( | ) | const |
Return the current video size.
References videoSizeFromType(), and vType.
Referenced by Digikam::VidSlideTask::run().
|
static |
Return the current size from a type of video.
References CVD1, CVD2, DVD1, DVD2, DVGA, EDTV1, EDTV2, EGA, HDPLUS, HDTV, HSXGA, HUXGA, HVGA, HXGA, QSXGA, QSXGAPLUS, QUXGA, QVGA, QXGA, SDTV1, SDTV2, SDTV3, SVCD1, SVCD2, SVGA, SXGA, SXGAPLUS, TXGA, UHD4K, UHD5K, UHD6K, UHD8K, UW10K, UW16K, UWFHD, UXGA, VCD1, VCD2, VGA, WHSXGA, WHUXGA, WHXGA, WQHD, WQSXGA, WQUXGA, WQXGA, WQXGAPLUS, WSXGA, WSXGAPLUS, WUXGA, WVGA, WXGA1, WXGA2, and XVGA.
Referenced by videoSize().
|
static |
|
static |
Helper methods to fill combobox from GUI.
References BLUERAY, CVD1, CVD2, DVD1, DVD2, DVGA, EDTV1, EDTV2, EGA, HDPLUS, HDTV, HSXGA, HUXGA, HVGA, HXGA, QSXGA, QSXGAPLUS, QUXGA, QVGA, QXGA, SDTV1, SDTV2, SDTV3, SVCD1, SVCD2, SVGA, SXGA, SXGAPLUS, TXGA, UHD4K, UHD5K, UHD6K, UHD8K, UW10K, UW16K, UWFHD, UXGA, VCD1, VCD2, VGA, WHSXGA, WHUXGA, WHXGA, WQHD, WQSXGA, WQUXGA, WQXGA, WQXGAPLUS, WSXGA, WSXGAPLUS, WUXGA, WVGA, WXGA1, WXGA2, and XVGA.
void Digikam::VidSlideSettings::writeSettings | ( | KConfigGroup & | group | ) |
References abitRate, audioTrack, conflictRule, equalize, ffmpegPath, imgFrames, outputDir, outputPlayer, selMode, strength, transition, vbitRate, vCodec, vEffect, vFormat, vStandard, and vType.
int Digikam::VidSlideSettings::abitRate = 64000 |
Encoded Audio stream bit rate in bit/s.
Referenced by readSettings(), and writeSettings().
QString Digikam::VidSlideSettings::audioTrack |
Soundtrack stream.
Referenced by Digikam::FFmpegLauncher::encodeFrames(), readSettings(), and writeSettings().
FileSaveConflictBox::ConflictRule Digikam::VidSlideSettings::conflictRule = FileSaveConflictBox::OVERWRITE |
Rule to follow if video file already exists.
Referenced by readSettings(), Digikam::VidSlideTask::run(), and writeSettings().
bool Digikam::VidSlideSettings::equalize = false |
Equalize filter to applying while encoding video from frames.
Referenced by Digikam::FFmpegLauncher::encodeFrames(), readSettings(), and writeSettings().
QMap<QString, QString> Digikam::VidSlideSettings::ffmpegCodecs |
Map of FFmpeg codec names and features.
QMap<QString, QString> Digikam::VidSlideSettings::ffmpegFormats |
Map of FFmpeg format names and features.
QString Digikam::VidSlideSettings::ffmpegPath |
Path to FFmpeg binary.
Referenced by Digikam::FFmpegLauncher::encodeFrames(), readSettings(), Digikam::FFmpegLauncher::soundTrackLength(), Digikam::FFmpegLauncher::supportedCodecs(), Digikam::FFmpegLauncher::supportedFormats(), and writeSettings().
QString Digikam::VidSlideSettings::filesList |
Path to list of frame files to encode.
Referenced by Digikam::FFmpegLauncher::encodeFrames(), and Digikam::VidSlideTask::run().
DInfoInterface* Digikam::VidSlideSettings::iface = nullptr |
Plugin host interface to handle item properties.
Referenced by Digikam::VidSlideTask::run().
int Digikam::VidSlideSettings::imgFrames = 125 |
Amount of frames by image to encode in video (ex: 125 frames = 5 s at 25 img/s).
Referenced by readSettings(), Digikam::VidSlideTask::run(), and writeSettings().
QList<QUrl> Digikam::VidSlideSettings::inputImages |
Images stream.
Referenced by Digikam::VidSlideTask::run().
FrameOsdSettings Digikam::VidSlideSettings::osdSettings |
On Screen Display parameters.
Referenced by Digikam::VidSlideTask::run().
QString Digikam::VidSlideSettings::outputDir = QStandardPaths::writableLocation(QStandardPaths::MoviesLocation) |
Encoded video stream directory.
Referenced by Digikam::FFmpegLauncher::encodeFrames(), Digikam::VidSlideThread::prepareFrames(), readSettings(), Digikam::VidSlideTask::run(), and writeSettings().
QString Digikam::VidSlideSettings::outputFile |
Path to encoded video.
Referenced by Digikam::FFmpegLauncher::encodeFrames(), and Digikam::VidSlideTask::run().
Open video stream in player at end.
Referenced by readSettings(), and writeSettings().
QString Digikam::VidSlideSettings::outputVideo |
Target video file encoded at end.
Items selection mode.
Referenced by readSettings(), and writeSettings().
QTime Digikam::VidSlideSettings::soundtrackLength |
Duration of the soundtrack.
int Digikam::VidSlideSettings::strength = 5 |
Equalization strength factor.
Referenced by Digikam::FFmpegLauncher::encodeFrames(), readSettings(), and writeSettings().
QString Digikam::VidSlideSettings::tempDir |
To store temporary frames.
Referenced by Digikam::VidSlideThread::prepareFrames(), Digikam::VidSlideTask::run(), and Digikam::VidSlideThread::~VidSlideThread().
TransitionMngr::TransType Digikam::VidSlideSettings::transition = TransitionMngr::None |
Transition type between images.
Referenced by readSettings(), Digikam::VidSlideTask::run(), and writeSettings().
VidBitRate Digikam::VidSlideSettings::vbitRate = VBR12 |
Encoded Video stream bit rate in bit/s.
Referenced by readSettings(), videoBitRate(), and writeSettings().
Encoded video codec.
Referenced by readSettings(), videoCodec(), and writeSettings().
EffectMngr::EffectType Digikam::VidSlideSettings::vEffect = EffectMngr::None |
Encoded video effect while displaying images.
Referenced by readSettings(), Digikam::VidSlideTask::run(), and writeSettings().
Encoded video container format.
Referenced by readSettings(), videoFormat(), and writeSettings().
Encoded Video standard => frame rate in img/s.
Referenced by readSettings(), videoFrameRate(), and writeSettings().
Encoded video type.
Referenced by readSettings(), videoSize(), and writeSettings().