projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add descratch plugin, single frame silence insert, docs
[goodguy/history.git]
/
cinelerra-5.1
/
plugins
/
interpolatevideo
/
interpolatevideo.C
diff --git
a/cinelerra-5.1/plugins/interpolatevideo/interpolatevideo.C
b/cinelerra-5.1/plugins/interpolatevideo/interpolatevideo.C
index 017be8d51811fbb0d1d229efded3c6dd124d4540..892298b8b58345fe4a366f8e214c7d899886a9ea 100644
(file)
--- a/
cinelerra-5.1/plugins/interpolatevideo/interpolatevideo.C
+++ b/
cinelerra-5.1/plugins/interpolatevideo/interpolatevideo.C
@@
-24,7
+24,7
@@
#include "interpolatevideo.h"
#include "interpolatewindow.h"
#include "language.h"
#include "interpolatevideo.h"
#include "interpolatewindow.h"
#include "language.h"
-#include "motionscan.h"
+#include "motionscan
-hv
.h"
#include "opticflow.h"
#include "transportque.inc"
#include <unistd.h>
#include "opticflow.h"
#include "transportque.inc"
#include <unistd.h>
@@
-326,6
+326,11
@@
void InterpolateVideo::create_macroblocks()
// Get macroblock size
x_macroblocks = frames[0]->get_w() / config.macroblock_size;
y_macroblocks = frames[0]->get_h() / config.macroblock_size;
// Get macroblock size
x_macroblocks = frames[0]->get_w() / config.macroblock_size;
y_macroblocks = frames[0]->get_h() / config.macroblock_size;
+// printf("InterpolateVideo::create_macroblocks %d %d %d %d\n",
+// __LINE__,
+// config.macroblock_size,
+// x_macroblocks,
+// y_macroblocks);
if(config.macroblock_size * x_macroblocks < frames[0]->get_w())
{
if(config.macroblock_size * x_macroblocks < frames[0]->get_w())
{
@@
-772,12
+777,8
@@
int InterpolateVideo::process_buffer(VFrame *frame,
{
for(int i = 0; i < 2; i++)
{
{
for(int i = 0; i < 2; i++)
{
- frames[i] = new VFrame(0,
- -1,
- frame->get_w(),
- frame->get_h(),
- frame->get_color_model(),
- -1);
+ frames[i] = new VFrame(frame->get_w(), frame->get_h(),
+ frame->get_color_model(), 0);
}
}
//printf("InterpolateVideo::process_buffer 1 %lld %lld\n", range_start, range_end);
}
}
//printf("InterpolateVideo::process_buffer 1 %lld %lld\n", range_start, range_end);
@@
-845,7
+846,7
@@
int InterpolateVideo::process_buffer(VFrame *frame,
NEW_WINDOW_MACRO(InterpolateVideo, InterpolateVideoWindow)
NEW_WINDOW_MACRO(InterpolateVideo, InterpolateVideoWindow)
-const char* InterpolateVideo::plugin_title() { return _("Interpolate Video"); }
+const char* InterpolateVideo::plugin_title() { return
N
_("Interpolate Video"); }
int InterpolateVideo::is_realtime() { return 1; }
int InterpolateVideo::load_configuration()
int InterpolateVideo::is_realtime() { return 1; }
int InterpolateVideo::load_configuration()