projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Credit Andrew added returns + vulkan patch
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
automation.h
diff --git
a/cinelerra-5.1/cinelerra/automation.h
b/cinelerra-5.1/cinelerra/automation.h
index 615a9d55197f3b19cda11d376bb4803c4d6f1e28..cae68d54a5afa281d0fa0009d1a81e18594bfaec 100644
(file)
--- a/
cinelerra-5.1/cinelerra/automation.h
+++ b/
cinelerra-5.1/cinelerra/automation.h
@@
-2,6
+2,7
@@
/*
* CINELERRA
* Copyright (C) 2008-2013 Adam Williams <broadcast at earthling dot net>
/*
* CINELERRA
* Copyright (C) 2008-2013 Adam Williams <broadcast at earthling dot net>
+ * Copyright (C) 2003-2016 Cinelerra CV contributors
*
* 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
*
* 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
@@
-43,16
+44,16
@@
value = INFINITYGAIN; \
if (autogrouptype == AUTOGROUPTYPE_VIDEO_FADE) \
CLAMP(value, 0, 100); \
value = INFINITYGAIN; \
if (autogrouptype == AUTOGROUPTYPE_VIDEO_FADE) \
CLAMP(value, 0, 100); \
- if (autogrouptype == AUTOGROUPTYPE_ZOOM && value <
0)
\
- value =
0;
\
- else if (autogrouptype == AUTOGROUPTYPE_SPEED && value <
0.001
) \
- value =
0.001
;
+ if (autogrouptype == AUTOGROUPTYPE_ZOOM && value <
ZOOM_MIN)
\
+ value =
ZOOM_MIN;
\
+ else if (autogrouptype == AUTOGROUPTYPE_SPEED && value <
SPEED_MIN
) \
+ value =
SPEED_MIN
;
#define AUTOMATIONVIEWCLAMPS(value, autogrouptype) \
if (autogrouptype == AUTOGROUPTYPE_ZOOM && value < 0) \
value = 0; \
#define AUTOMATIONVIEWCLAMPS(value, autogrouptype) \
if (autogrouptype == AUTOGROUPTYPE_ZOOM && value < 0) \
value = 0; \
- else if (autogrouptype == AUTOGROUPTYPE_SPEED && value <
0
) \
- value =
0
;
+ else if (autogrouptype == AUTOGROUPTYPE_SPEED && value <
SPEED_MIN
) \
+ value =
SPEED_MIN
;
class Automation
class Automation