ardour
utils_videotl.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010-2013 Paul Davis
3  Author: Robin Gareus <robin@gareus.org>
4 
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.
9 
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.
14 
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.
18 
19 */
24 #ifndef __gtk_ardour_video_utils_h__
25 #define __gtk_ardour_video_utils_h__
26 
27 #include <string>
28 #include <gtkmm.h>
29 
31 #include "ardour/types.h"
32 #include "ardour/template_utils.h"
33 #include "ardour_dialog.h"
34 
35 namespace VideoUtils {
36 
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);
42 
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);
48 
49 bool video_query_info (
50  std::string video_server_url,
51  std::string filepath,
52  double &video_file_fps,
53  long long int &video_duration,
54  double &video_start_offset,
55  double &video_aspect_ratio
56  );
57 };
58 
59 extern "C" {
60  char *a3_curl_http_get (const char *u, int *status);
61 }
62 
63 #endif /* __gtk_ardour_video_utils_h__ */
std::string video_get_docroot(ARDOUR::RCConfiguration *config)
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)
void video_draw_cross(Glib::RefPtr< Gdk::Pixbuf > img)
std::string video_dest_file(const std::string, const std::string)
std::string strip_file_extension(const std::string infile)
void ParseCSV(const std::string &csv, std::vector< std::vector< std::string > > &lines)
std::string video_map_path(std::string server_docroot, std::string filepath)
bool confirm_video_outfn(std::string, std::string docroot="")
std::string video_dest_dir(const std::string, const std::string)
std::string video_get_server_url(ARDOUR::RCConfiguration *config)
char * a3_curl_http_get(const char *u, int *status)
std::string get_file_extension(const std::string infile)