- /** true if the last frame we processed was skipped (because it was already done) */
- bool _just_skipped;
- /** Index of the last frame to be processed */
- int _last_frame;
+
+ /** Number of video frames received so far */
+ SourceFrame _video_frames_in;
+ /** Number of video frames written for the DCP so far */
+ int _video_frames_out;
+
+#if HAVE_SWRESAMPLE
+ SwrContext* _swr_context;
+#endif
+
+ bool _have_a_real_frame;
+ bool _terminate_encoder;
+ std::list<boost::shared_ptr<DCPVideoFrame> > _encode_queue;
+ std::list<boost::thread *> _worker_threads;
+ mutable boost::mutex _worker_mutex;
+ boost::condition _worker_condition;
+
+ boost::shared_ptr<Writer> _writer;