mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-29 21:50:26 +00:00
52105e5217
This commit adds an entry to the dive media context menu which offers to write a subtitle file. This creates an .ass file for the selected videos. In an attempt to to clutter the screen too much, don't show irrelevant entries (zero temperature or NDL and show TTS only for dives with stops). VLC is able to show these subtitles directly, they can be integrated into the video file with ffmpeg. Signed-off-by: Robert C. Helling <helling@atdotde.de>
17 lines
367 B
C
17 lines
367 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef SAVE_PROFILE_DATA_H
|
|
#define SAVE_PROFILE_DATA_H
|
|
|
|
#include "dive.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int save_profiledata(const char *filename, bool selected_only);
|
|
void save_subtitles_buffer(struct membuffer *b, struct dive *dive, int offset, int length);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif // SAVE_PROFILE_DATA_H
|