mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Extract thumbnails using ffmpeg. Behavior is controlled by three new preferences fields: - extract_video_thumbnails (bool): if true, thumbnails are calculated. - extract_video_thumbnail_position (int 0..100): position in video where thumbnail is fetched. - ffmpeg_executable (string): path of ffmpeg executable. If ffmpeg refuses to start, extract_video_thumbnails is set to false to avoid unnecessary churn. Video thumbnails are marked by an overlay. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
31 lines
691 B
C++
31 lines
691 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef PREFERENCES_DEFAULTS_H
|
|
#define PREFERENCES_DEFAULTS_H
|
|
|
|
#include "abstractpreferenceswidget.h"
|
|
#include "core/pref.h"
|
|
|
|
namespace Ui {
|
|
class PreferencesDefaults;
|
|
}
|
|
|
|
class PreferencesDefaults : public AbstractPreferencesWidget {
|
|
Q_OBJECT
|
|
public:
|
|
PreferencesDefaults();
|
|
virtual ~PreferencesDefaults();
|
|
virtual void refreshSettings();
|
|
virtual void syncSettings();
|
|
public slots:
|
|
void on_chooseFile_clicked();
|
|
void on_btnUseDefaultFile_toggled(bool toggled);
|
|
void on_localDefaultFile_toggled(bool toggled);
|
|
void on_ffmpegFile_clicked();
|
|
void on_extractVideoThumbnails_toggled(bool toggled);
|
|
|
|
private:
|
|
Ui::PreferencesDefaults *ui;
|
|
};
|
|
|
|
|
|
#endif
|