summaryrefslogtreecommitdiff
path: root/gtk2_ardour/transcode_ffmpeg.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-07-14 16:34:49 +0200
committerPaul Davis <paul@linuxaudiosystems.com>2013-08-08 15:23:10 -0400
commitfdab1c963948bb041e6fdb0203b1fb353e4118b4 (patch)
treef48fb1619238a3f80c9eec4ee7a24c76a0204c55 /gtk2_ardour/transcode_ffmpeg.h
parentd95c2aaaa79c9ec173419742d77793c7bab5cd44 (diff)
move ff* structs & typedef into dedicated namespace
(further avoid conflicts with plugins)
Diffstat (limited to 'gtk2_ardour/transcode_ffmpeg.h')
-rw-r--r--gtk2_ardour/transcode_ffmpeg.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/gtk2_ardour/transcode_ffmpeg.h b/gtk2_ardour/transcode_ffmpeg.h
index d1f445bf48..61267ac853 100644
--- a/gtk2_ardour/transcode_ffmpeg.h
+++ b/gtk2_ardour/transcode_ffmpeg.h
@@ -24,14 +24,6 @@
#include "ardour/types.h"
#include "system_exec.h"
-/* TODO: use a namespace here ? */
-struct FFAudioStream {
- std::string name;
- std::string stream_id;
- uint32_t channels;
-};
-typedef std::vector<FFAudioStream> AudioStreams;
-typedef std::map<std::string,std::string> FFSettings;
/** @class TranscodeFfmpeg
* @brief wrapper around ffmpeg and ffprobe command-line utils
@@ -46,6 +38,15 @@ class TranscodeFfmpeg : public sigc::trackable
{
public:
+ struct FFAudioStream {
+ std::string name;
+ std::string stream_id;
+ uint32_t channels;
+ };
+ typedef std::vector<FFAudioStream> FFAudioStreams;
+ typedef std::map<std::string,std::string> FFSettings;
+
+
/** instantiate a new transcoder. If a file-name is given, the file's
* attributes (fps, duration, geometry etc) are read.
*
@@ -110,7 +111,7 @@ class TranscodeFfmpeg : public sigc::trackable
ARDOUR::framecnt_t get_duration() { return m_duration; }
std::string get_codec() { return m_codec; }
- AudioStreams get_audio() { return m_audio; }
+ FFAudioStreams get_audio() { return m_audio; }
/** override file duration used with the \ref Progress signal.
* @param d duration in video-frames = length_in_seconds * get_fps()
@@ -145,7 +146,7 @@ class TranscodeFfmpeg : public sigc::trackable
bool ffexecok;
bool probeok;
- AudioStreams m_audio;
+ FFAudioStreams m_audio;
char *format_metadata (std::string, std::string);
void ffmpegparse_v (std::string d, size_t s);