2 Copyright (C) 2010-2013 Paul Davis
3 Author: Robin Gareus <robin@gareus.org>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 /** @file utils_videotl.h
21 * @brief common functions used for video-file im/export
24 #ifndef __gtk_ardour_video_utils_h__
25 #define __gtk_ardour_video_utils_h__
30 #include "ardour/rc_configuration.h"
31 #include "ardour/types.h"
32 #include "ardour/template_utils.h"
33 #include "ardour_dialog.h"
35 namespace VideoUtils {
37 bool confirm_video_outfn (std::string, std::string docroot="");
38 std::string video_dest_dir (const std::string, const std::string);
39 std::string video_dest_file (const std::string, const std::string);
40 std::string strip_file_extension (const std::string infile);
41 std::string get_file_extension (const std::string infile);
43 void ParseCSV(const std::string &csv, std::vector<std::vector<std::string> > &lines);
44 std::string video_map_path (std::string server_docroot, std::string filepath);
45 void video_draw_cross (Glib::RefPtr<Gdk::Pixbuf> img);
46 std::string video_get_server_url (ARDOUR::RCConfiguration* config);
47 std::string video_get_docroot (ARDOUR::RCConfiguration* config);
49 bool video_query_info (
50 std::string video_server_url,
52 double &video_file_fps,
53 long long int &video_duration,
54 double &video_start_offset,
55 double &video_aspect_ratio
60 char *a3_curl_http_get (const char *u, int *status);
63 #endif /* __gtk_ardour_video_utils_h__ */