-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvideoFunction.h
More file actions
104 lines (96 loc) · 2.28 KB
/
videoFunction.h
File metadata and controls
104 lines (96 loc) · 2.28 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#ifndef FUNCTION_HEADER
#define FUNCTION_HEADER
#include "video.h"
// Reverse video functions
void reverseVideoSpeed(
Video & video,
int64_t startFrame,
int64_t endFrame);
void reverseVideoMemory(Video & video);
void reverseVideoVanilla(Video & video);
void reverseVideo(
Video & video,
const std::string & optimisationFlag);
// All functions use a reference to Video because the Video object is required,
// cannot be null, and must be directly modified.
// Swap channel functions
void swapChannelSpeed(
Video & video,
int64_t startFrame,
int64_t endFrame,
const int channel1,
const int channel2);
void swapChannelMemory(
Video & video,
const int channel1,
const int channel2);
void swapChannelVanilla(
Video & video,
const int channel1,
const int channel2);
void swapChannel(
Video & video,
const std::string & optimisationFlag,
const int & channel1,
const int & channel2);
// Clip channel functions
void clipChannelSpeed(
Video & video,
int64_t startFrame,
int64_t endFrame,
const int & channel,
const int & minScale,
const int & maxScale);
void clipChannelMemory(
Video & video,
const int & channel,
const int & minScale,
const int & maxScale);
void clipChannelVanilla(
Video & video,
const int & channel,
const int & minScale,
const int & maxScale);
void clipChannel(
Video & video,
const std::string & optimisationFlag,
const int & channel,
const int & minScale,
const int & maxScale);
// Scale channel functions
void scaleChannelSpeed(
Video & video,
int64_t startFrame,
int64_t endFrame,
const int & channel,
const float & scale);
void scaleChannelMemory(
Video & video,
const int & channel,
const float & scale);
void scaleChannelVanilla(
Video & video,
const int & channel,
const float & scale);
void scaleChannel(
Video & video,
const std::string & optimisationFlag,
const int & channel,
const float & scale);
// Invert channel functions
void InvertChannelSpeed(
Video & video,
int64_t startFrame,
int64_t endFrame,
const int & channel);
void InvertChannelMemory(
Video & video,
const int & channel);
void InvertChannelVanilla(
Video & video,
const int & channel);
void InvertChannel(
Video & video,
const std::string & optimisationFlag,
const int & channel);
#endif // FUNCTION_HEADER