Factor out key-value code.
[dcpomatic.git] / src / lib / j2k_wav_encoder.h
index 3f01ac48099a0bfceac5f58d4d88074c16f5835e..87068ad3df05c4e1592f2e352f0ee4b11b05a1d4 100644 (file)
@@ -38,6 +38,7 @@ class ServerDescription;
 class DCPVideoFrame;
 class Image;
 class Log;
+class Subtitle;
 
 /** @class J2KWAVEncoder
  *  @brief An encoder which writes JPEG2000 and WAV files.
@@ -49,14 +50,12 @@ public:
        ~J2KWAVEncoder ();
 
        void process_begin (int64_t audio_channel_layout, AVSampleFormat audio_sample_format);
-       void process_video (boost::shared_ptr<Image>, int);
+       void process_video (boost::shared_ptr<Image>, int, boost::shared_ptr<Subtitle>);
        void process_audio (uint8_t *, int);
        void process_end ();
 
 private:
 
-       int target_sample_rate () const;
-
        void write_audio (uint8_t* data, int size);
        void encoder_thread (ServerDescription *);
        void close_sound_files ();