projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
terminate keyframe string in edl output
[goodguy/history.git]
/
cinelerra-5.1
/
plugins
/
holo
/
holo.C
diff --git
a/cinelerra-5.1/plugins/holo/holo.C
b/cinelerra-5.1/plugins/holo/holo.C
index 7a111923429c3ecf56869818786bc0c49323da2b..083e5174f2cad959f5b088a1295de5569c0bcb28 100644
(file)
--- a/
cinelerra-5.1/plugins/holo/holo.C
+++ b/
cinelerra-5.1/plugins/holo/holo.C
@@
-60,27
+60,20
@@
HoloMain::HoloMain(PluginServer *server)
effecttv = 0;
bgimage = 0;
do_reconfigure = 1;
effecttv = 0;
bgimage = 0;
do_reconfigure = 1;
- yuv = new YUV;
-
}
HoloMain::~HoloMain()
{
}
HoloMain::~HoloMain()
{
-
-
-
- if(effecttv)
- {
+ if(effecttv) {
delete holo_server;
delete effecttv;
}
if(bgimage)
delete bgimage;
delete holo_server;
delete effecttv;
}
if(bgimage)
delete bgimage;
- delete yuv;
}
}
-const char* HoloMain::plugin_title() { return _("HolographicTV"); }
+const char* HoloMain::plugin_title() { return
N
_("HolographicTV"); }
int HoloMain::is_realtime() { return 1; }
NEW_WINDOW_MACRO(HoloMain, HoloWindow)
int HoloMain::is_realtime() { return 1; }
NEW_WINDOW_MACRO(HoloMain, HoloWindow)
@@
-361,7
+354,7
@@
if(sizeof(type) == 2) \
int r = (int)src[0] >> 8; \
int g = (int)src[1] >> 8; \
int b = (int)src[2] >> 8; \
int r = (int)src[0] >> 8; \
int g = (int)src[1] >> 8; \
int b = (int)src[2] >> 8; \
-
plugin->yuv->
yuv_to_rgb_8(r, g, b); \
+
YUV::yuv.
yuv_to_rgb_8(r, g, b); \
dest = (r << 16) | (g << 8) | b; \
} \
else \
dest = (r << 16) | (g << 8) | b; \
} \
else \
@@
-378,7
+371,7
@@
else \
int r = (int)src[0]; \
int g = (int)src[1]; \
int b = (int)src[2]; \
int r = (int)src[0]; \
int g = (int)src[1]; \
int b = (int)src[2]; \
-
plugin->yuv->
yuv_to_rgb_8(r, g, b); \
+
YUV::yuv.
yuv_to_rgb_8(r, g, b); \
dest = (r << 16) | (g << 8) | b; \
} \
else \
dest = (r << 16) | (g << 8) | b; \
} \
else \
@@
-435,7
+428,7
@@
else \
if(g > 255) g = 255; \
if(b > 255) b = 255; \
\
if(g > 255) g = 255; \
if(b > 255) b = 255; \
\
- if(is_yuv)
plugin->yuv->
rgb_to_yuv_8(r, g, b); \
+ if(is_yuv)
YUV::yuv.
rgb_to_yuv_8(r, g, b); \
if(sizeof(type) == 4) \
{ \
dest[0] = (type)r / 0xff; \
if(sizeof(type) == 4) \
{ \
dest[0] = (type)r / 0xff; \
@@
-502,7
+495,7
@@
else \
if(g > 255) g = 255; \
if(b > 255) b = 255; \
\
if(g > 255) g = 255; \
if(b > 255) b = 255; \
\
- if(is_yuv)
plugin->yuv->
rgb_to_yuv_8(r, g, b); \
+ if(is_yuv)
YUV::yuv.
rgb_to_yuv_8(r, g, b); \
if(sizeof(type) == 4) \
{ \
dest[0] = (type)r / 0xff; \
if(sizeof(type) == 4) \
{ \
dest[0] = (type)r / 0xff; \