#include "filexml.h"
#include "guicast.h"
#include "language.h"
-#include "cicolors.h"
+#include "bccolors.h"
#include "pluginvclient.h"
#include "vframe.h"
}
-const char* YUVEffect::plugin_title() { return _("YUV"); }
+const char* YUVEffect::plugin_title() { return N_("YUV"); }
int YUVEffect::is_realtime() { return 1; }
}
-static YUV yuv_static;
-
#define YUV_MACRO(type, temp_type, max, components, use_yuv) \
{ \
for(int i = 0; i < input->get_h(); i++) \
temp_type y, u, v, r, g, b; \
if(sizeof(type) == 4) \
{ \
- yuv_static.rgb_to_yuv_f(in_row[0], in_row[1], in_row[2], y, u, v); \
+ YUV::yuv.rgb_to_yuv_f(in_row[0], in_row[1], in_row[2], y, u, v); \
} \
else \
if(sizeof(type) == 2) \
{ \
- yuv_static.rgb_to_yuv_16(in_row[0], in_row[1], in_row[2], y, u, v); \
+ YUV::yuv.rgb_to_yuv_16(in_row[0], in_row[1], in_row[2], y, u, v); \
} \
else \
{ \
- yuv_static.rgb_to_yuv_8(in_row[0], in_row[1], in_row[2], y, u, v); \
+ YUV::yuv.rgb_to_yuv_8(in_row[0], in_row[1], in_row[2], y, u, v); \
} \
\
if(sizeof(type) < 4) \
y = temp_type((float)y * y_scale + round); \
u = temp_type((float)(u - (max / 2 + 1)) * u_scale + round) + (max / 2 + 1); \
v = temp_type((float)(v - (max / 2 + 1)) * v_scale + round) + (max / 2 + 1); \
+ \
+ CLAMP(y, 0, max); \
+ CLAMP(u, 0, max); \
+ CLAMP(v, 0, max); \
} \
else \
{ \
} \
\
if(sizeof(type) == 4) \
- yuv_static.yuv_to_rgb_f(r, g, b, y, u, v); \
+ YUV::yuv.yuv_to_rgb_f(r, g, b, y, u, v); \
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 \
- 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; \