Permalink
Find file
832f0b8 Nov 16, 2016
39 lines (28 sloc) 940 Bytes
/*
* 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