r1006: configure: Use libx264_pic instead of libx264 if available.
[cinelerra_cv/mob.git] / cinelerra / cplayback.C
blobe3b67d13a8b9098a63bdba4f26cc645dab668042
1 #include "cplayback.h"
2 #include "ctracking.h"
3 #include "cwindow.h"
4 #include "cwindowgui.h"
5 #include "edl.h"
6 #include "edlsession.h"
7 #include "mwindow.h"
8 #include "mwindowgui.h"
9 #include "playtransport.h"
10 #include "trackcanvas.h"
11 #include "transportque.h"
13 // Playback engine for composite window
15 CPlayback::CPlayback(MWindow *mwindow, CWindow *cwindow, Canvas *output)
16  : PlaybackEngine(mwindow, output)
18         this->cwindow = cwindow;
21 int CPlayback::create_render_engine()
23         return PlaybackEngine::create_render_engine();
26 void CPlayback::init_cursor()
28         mwindow->gui->lock_window("CPlayback::init_cursor");
29         mwindow->gui->canvas->deactivate();
30         mwindow->gui->unlock_window();
31         cwindow->playback_cursor->start_playback(tracking_position);
34 void CPlayback::stop_cursor()
36         cwindow->playback_cursor->stop_playback();
40 int CPlayback::brender_available(long position)
42         return mwindow->brender_available(position);