#include "asset.h"
#include "audiodevice.h"
#include "bcsignals.h"
+#include "canvas.h"
#include "condition.h"
#include "edl.h"
#include "edlsession.h"
do_video = 0;
interrupted = 0;
this->preferences = new Preferences;
- this->command = new TransportCommand;
+ this->command = new TransportCommand(preferences);
this->preferences->copy_from(preferences);
edl = 0;
close_output();
if( playback_engine ) {
- double position = command->command == CURRENT_FRAME ? command->playbackstart :
+ double position = command->command == CURRENT_FRAME ||
+ command->command == LAST_FRAME ? command->playbackstart :
playback_engine->is_playing_back && !interrupted ?
( command->get_direction() == PLAY_FORWARD ?
command->end_position : command->start_position ) :
playback_engine->get_tracking_position() ;
- if( command->displacement ) {
- position -= 1./command->get_edl()->session->frame_rate;
- if( position < 0 ) position = 0;
- }
+ position -= command->displacement;
+ if( position < 0 ) position = 0;
playback_engine->is_playing_back = 0;
- playback_engine->tracking_position = position;
- playback_engine->stop_tracking();
+ playback_engine->stop_tracking(position);
}
render_active->unlock();
render_active->unlock();
}
+void RenderEngine::update_scope(VFrame *frame)
+{
+ if( !video || !output || !output->scope_on() ) return;
+ output->lock_canvas("RenderEngine::update_scope");
+ output->process_scope(video, frame);
+ output->unlock_canvas();
+}