diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-02 09:47:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-02 09:47:11 +0100 |
| commit | bc9458cbe39a24d22c199c82efab524208dc347d (patch) | |
| tree | b982ff454bfcacc1d5bd3048c10e053ae724feb0 /src/lib/encoder.h | |
| parent | a6c2aa6cad5872d27654553d447cb34185317974 (diff) | |
Clarify that Encoder really just manages video encoding.
Diffstat (limited to 'src/lib/encoder.h')
| -rw-r--r-- | src/lib/encoder.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/lib/encoder.h b/src/lib/encoder.h index 4502b7151..51df0176b 100644 --- a/src/lib/encoder.h +++ b/src/lib/encoder.h @@ -52,31 +52,28 @@ class ServerFinder; class PlayerVideo; /** @class Encoder - * @brief Encoder to J2K and WAV for DCP. + * @brief Class to manage encoding to JPEG2000. * - * Video is supplied to process_video as RGB frames, and audio - * is supplied as uncompressed PCM in blocks of various sizes. + * This class keeps a queue of frames to be encoded and distributes + * the work around threads and encoding servers. */ class Encoder : public boost::noncopyable, public ExceptionStore { public: - Encoder (boost::shared_ptr<const Film> f, boost::weak_ptr<Job>); + Encoder (boost::shared_ptr<const Film> f, boost::weak_ptr<Job>, boost::shared_ptr<Writer>); virtual ~Encoder (); /** Called to indicate that a processing run is about to begin */ - void process_begin (); + void begin (); /** Call with a frame of video. * @param f Video frame. */ - void process_video (boost::shared_ptr<PlayerVideo> f); - - /** Call with some audio data */ - void process_audio (boost::shared_ptr<const AudioBuffers>); + void enqueue (boost::shared_ptr<PlayerVideo> f); /** Called when a processing run has finished */ - void process_end (); + void end (); float current_encoding_rate () const; int video_frames_out () const; |
