- Encoder (boost::shared_ptr<const Film> f, boost::weak_ptr<Job>);
- virtual ~Encoder ();
-
- /** Called to indicate that a processing run is about to begin */
- void process_begin ();
-
- /** Call with a frame of video.
- * @param f Video frame.
- */
- void process_video (boost::shared_ptr<PlayerVideoFrame> f);
-
- /** Call with some audio data */
- void process_audio (boost::shared_ptr<const AudioBuffers>);
-
- /** Called when a processing run has finished */
- void process_end ();
-
- float current_encoding_rate () const;
- int video_frames_out () const;
-
-private:
-
- void frame_done ();
-
- void encoder_thread (boost::optional<ServerDescription>);
- void terminate_threads ();
- void add_worker_threads (ServerDescription);
- void server_found (ServerDescription);
-
- /** Film that we are encoding */
- boost::shared_ptr<const Film> _film;
- boost::weak_ptr<Job> _job;