-
Notifications
You must be signed in to change notification settings - Fork 0
/
perfpan_impl.h
49 lines (39 loc) · 1.46 KB
/
perfpan_impl.h
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
39
40
41
42
43
44
45
46
47
48
49
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __PERFPAN_IMPL_H__
#define __PERFPAN_IMPL_H__
#include "avisynth.h"
#include "stdio.h"
#include <mutex>
#include <unordered_map>
//****************************************************************************
class PerfPan_impl : public GenericVideoFilter {
bool has_at_least_v8;
double blank_threshold;
int reference_frame;
int max_search;
bool plot_scores;
const char *logfilename;
PClip perforation;
const char* hintfilename;
bool copy_on_limit;
FILE *logfile;
std::unordered_map<int, int> xhint;
std::unordered_map<int, int> yhint;
public:
PerfPan_impl(PClip _child, PClip _perforation, float _blank_threshold, int _reference_frame, int _max_search,
const char* _logfilename, bool _plot_scores, const char* hintfilename, bool _copy_on_limit, IScriptEnvironment* env);
~PerfPan_impl();
PVideoFrame __stdcall GetFrame(int n, IScriptEnvironment* env);
};
#endif