Ardour  9.0-pre0-582-g084a23a80d
utils_videotl.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
22 #pragma once
23 
24 #include <string>
25 
27 #include "ardour/types.h"
28 #include "ardour/template_utils.h"
29 #include "ardour_dialog.h"
30 
31 namespace VideoUtils {
32 
33 extern unsigned int harvid_version;
34 
35 bool confirm_video_outfn (Gtk::Window& parent, std::string, std::string docroot="");
36 std::string video_dest_dir (const std::string, const std::string);
37 std::string video_dest_file (const std::string, const std::string);
38 std::string strip_file_extension (const std::string infile);
39 std::string get_file_extension (const std::string infile);
40 
41 void ParseCSV(const std::string &csv, std::vector<std::vector<std::string> > &lines);
42 std::string video_map_path (std::string server_docroot, std::string filepath);
43 void video_draw_cross (Glib::RefPtr<Gdk::Pixbuf> img);
46 
48  std::string video_server_url,
49  std::string filepath,
50  double &video_file_fps,
51  long long int &video_duration,
52  double &video_start_offset,
53  double &video_aspect_ratio
54  );
55 };
56 
std::string video_get_server_url(ARDOUR::RCConfiguration *config)
std::string get_file_extension(const std::string infile)
std::string video_get_docroot(ARDOUR::RCConfiguration *config)
std::string video_map_path(std::string server_docroot, std::string filepath)
std::string strip_file_extension(const std::string infile)
bool video_query_info(std::string video_server_url, std::string filepath, double &video_file_fps, long long int &video_duration, double &video_start_offset, double &video_aspect_ratio)
std::string video_dest_file(const std::string, const std::string)
void ParseCSV(const std::string &csv, std::vector< std::vector< std::string > > &lines)
bool confirm_video_outfn(Gtk::Window &parent, std::string, std::string docroot="")
unsigned int harvid_version
void video_draw_cross(Glib::RefPtr< Gdk::Pixbuf > img)
std::string video_dest_dir(const std::string, const std::string)