std::string mrl_from_path(const std::string &path) { #if !defined(WIN32) return "file://" + to_percent(path); #else return "file:///" + to_percent(path); #endif }
bool transcode_stream::open( const std::string &mrl, const std::string &transcode, const std::string &mux, float rate) { close(); std::clog << "vlc::transcode_stream: " << transcode << std::endl; process.reset(new platform::process(transcode_function)); *process << font_size << ' ' << mrl << ' ' << to_percent(transcode) << ' ' << mux << std::endl; if (subtitle_file) *process << to_percent(subtitle_file) << std::endl; else *process << "(none)" << std::endl; *process << options.size(); for (auto &i : options) *process << ' ' << to_percent(i); *process << std::endl; info_offset = process->alloc_shared<shared_info>(); *process << info_offset << std::endl; *process << track_ids.audio << ' ' << track_ids.video << ' ' << track_ids.text << std::endl; *process << chapter << ' ' << position.count() << ' ' << rate << std::endl; last_info.reset(new shared_info()); update_info_timer.start(std::chrono::seconds(5)); std::istream::rdbuf(process->rdbuf()); return true; }
void CommandeGen::go_droite(int times, int percent) { m_status = turn_AT_Right(times,to_percent(percent)) ; }
void CommandeGen::reculer(int times,int percent) { m_status = go_back_AT(times,to_percent(percent)) ; }
void CommandeGen::trans_right(int times,int percent) { m_status = translate_right(times,to_percent(percent)) ; }
void CommandeGen::monter(int times,int percent) { m_status = rising_AT(times,to_percent(percent)) ; }
void CommandeGen::trans_left(int times,int percent) { m_status = translate_left(times,negate(to_percent(percent))) ; }
void CommandeGen::avancer(int times,int percent){ m_status = go_forward_AT(times,negate(to_percent(percent))) ; }
void CommandeGen::descendre(int times,int percent){ m_status = go_down_AT(times,negate(to_percent(percent))) ; }
/************************************************************************************** * Function with Negate * ************************************************************************************/ void CommandeGen::go_gauche(int times, int percent) { m_status = turn_AT_Left(times,negate(to_percent(percent))) ; }