#include "filexml.h"
#include "guicast.h"
#include "language.h"
-#include "cicolors.h"
+#include "bccolors.h"
#include "pluginvclient.h"
#include "swapframes.h"
#include "vframe.h"
delete buffer;
}
-const char* SwapFrames::plugin_title() { return _("Swap Frames"); }
+const char* SwapFrames::plugin_title() { return N_("Swap Frames"); }
int SwapFrames::is_realtime() { return 1; }
NEW_WINDOW_MACRO(SwapFrames, SwapFramesWindow)
void SwapFrames::save_data(KeyFrame *keyframe)
{
FileXML output;
- output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
+ output.set_shared_output(keyframe->xbuf);
output.tag.set_title("SWAPFRAMES");
output.tag.set_property("ON", config.on);
output.tag.set_property("SWAP_EVEN", config.swap_even);
void SwapFrames::read_data(KeyFrame *keyframe)
{
FileXML input;
- input.set_shared_input(keyframe->get_data(), strlen(keyframe->get_data()));
+ input.set_shared_input(keyframe->xbuf);
while(!input.read_tag())
{
if(input.tag.title_is("SWAPFRAMES"))
if(new_position > prev_frame + 1)
{
//printf("SwapFrames::process_buffer %d\n", __LINE__);
- if(!buffer) buffer = new VFrame(0,
- -1,
- frame->get_w(),
- frame->get_h(),
- frame->get_color_model(),
- -1);
+ if(!buffer)
+ buffer = new VFrame(frame->get_w(), frame->get_h(),
+ frame->get_color_model(), 0);
buffer_position = new_position - 1;
read_frame(buffer,
0,
return 0;
}
-int SwapFrames::handle_opengl()
-{
- return 0;
-}
-