projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bsd compatibility mods
[goodguy/history.git]
/
cinelerra-5.1
/
plugins
/
yuvshift
/
yuvshift.C
diff --git
a/cinelerra-5.1/plugins/yuvshift/yuvshift.C
b/cinelerra-5.1/plugins/yuvshift/yuvshift.C
index c13381b07159ebe5a9c1265f17f5d82b584461e0..7298efcb763402cb5c1571c9976bf311b803c995 100644
(file)
--- a/
cinelerra-5.1/plugins/yuvshift/yuvshift.C
+++ b/
cinelerra-5.1/plugins/yuvshift/yuvshift.C
@@
-25,7
+25,7
@@
#include "filexml.h"
#include "guicast.h"
#include "language.h"
#include "filexml.h"
#include "guicast.h"
#include "language.h"
-#include "
ci
colors.h"
+#include "
bc
colors.h"
#include "pluginvclient.h"
#include "vframe.h"
#include "pluginvclient.h"
#include "vframe.h"
@@
-208,7
+208,7
@@
YUVShiftEffect::~YUVShiftEffect()
delete temp_frame;
}
delete temp_frame;
}
-const char* YUVShiftEffect::plugin_title() { return _("YUVShift"); }
+const char* YUVShiftEffect::plugin_title() { return
N
_("YUVShift"); }
int YUVShiftEffect::is_realtime() { return 1; }
int YUVShiftEffect::is_realtime() { return 1; }
@@
-269,8
+269,6
@@
void YUVShiftEffect::read_data(KeyFrame *keyframe)
}
}
-static YUV yuv_static;
-
#define YUV_MACRO(type, temp_type, components) \
{ \
for(int i = 0; i < h; i++) { \
#define YUV_MACRO(type, temp_type, components) \
{ \
for(int i = 0; i < h; i++) { \
@@
-310,11
+308,11
@@
static YUV yuv_static;
temp_type u = up ? up[1] : 0x80; \
temp_type v = vp ? vp[2] : 0x80; \
if( sizeof(type) == 4 ) \
temp_type u = up ? up[1] : 0x80; \
temp_type v = vp ? vp[2] : 0x80; \
if( sizeof(type) == 4 ) \
-
yuv_static
.yuv_to_rgb_f(r, g, b, y/255., (u-128.)/255., (v-128.)/255.); \
+
YUV::yuv
.yuv_to_rgb_f(r, g, b, y/255., (u-128.)/255., (v-128.)/255.); \
else if( sizeof(type) == 2 ) \
else if( sizeof(type) == 2 ) \
-
yuv_static
.yuv_to_rgb_16(r, g, b, y, u, v); \
+
YUV::yuv
.yuv_to_rgb_16(r, g, b, y, u, v); \
else \
else \
-
yuv_static
.yuv_to_rgb_8(r, g, b, y, u, v); \
+
YUV::yuv
.yuv_to_rgb_8(r, g, b, y, u, v); \
out_row[0] = r; \
out_row[1] = g; \
out_row[2] = b; \
out_row[0] = r; \
out_row[1] = g; \
out_row[2] = b; \
@@
-345,7
+343,7
@@
int YUVShiftEffect::process_realtime(VFrame *input, VFrame *output)
delete temp_frame; temp_frame = 0;
}
if( !temp_frame )
delete temp_frame; temp_frame = 0;
}
if( !temp_frame )
- temp_frame = new VFrame(w, h, color_model);
+ temp_frame = new VFrame(w, h, color_model
, 0
);
frame = temp_frame;
if( color_model != input->get_color_model() )
BC_CModels::transfer(frame->get_rows(), input->get_rows(),
frame = temp_frame;
if( color_model != input->get_color_model() )
BC_CModels::transfer(frame->get_rows(), input->get_rows(),