-
Notifications
You must be signed in to change notification settings - Fork 285
/
cut_movie.hpp
38 lines (28 loc) · 940 Bytes
/
cut_movie.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Created by Ryan Jay 30.10.16
* Covered by the GPL. v3 (see included LICENSE)
*/
#ifndef CUT_MOVIE_HPP
#define CUT_MOVIE_HPP
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <string>
using namespace std;
typedef struct {
int s;
int e;
float score;
float coverage;
string label;
} Cut;
typedef vector<vector<float> > ScoreList;
typedef vector<Cut> CutList;
void CutMovie( ScoreList score_list, string movie_file, vector<int> target_list,
string output_dir="", string temp_dir="/tmp", int total_targets = 6, int min_cut=5,
int max_gap=2, float threshold=0.5, float min_coverage=0.4, bool do_concat=true,
bool remove_original = true);
void TagTargets( ScoreList score_list, string movie_file, string output_dir, vector<string> labels,
int total_targets, int min_cut, int max_gap, float threshold, float min_coverage);
string PrettyTime(int seconds);
#endif