00001 #ifndef FLIP_H 00002 #define FLIP_H 00003 00004 00005 class FlipMain; 00006 00007 #include "filexml.h" 00008 #include "flipwindow.h" 00009 #include "guicast.h" 00010 #include "pluginvclient.h" 00011 00012 class FlipConfig 00013 { 00014 public: 00015 FlipConfig(); 00016 void copy_from(FlipConfig &that); 00017 int equivalent(FlipConfig &that); 00018 void interpolate(FlipConfig &prev, 00019 FlipConfig &next, 00020 long prev_frame, 00021 long next_frame, 00022 long current_frame); 00023 int flip_horizontal; 00024 int flip_vertical; 00025 }; 00026 00027 class FlipMain : public PluginVClient 00028 { 00029 public: 00030 FlipMain(PluginServer *server); 00031 ~FlipMain(); 00032 00033 PLUGIN_CLASS_MEMBERS(FlipConfig, FlipThread); 00034 00035 // required for all realtime plugins 00036 int process_buffer(VFrame *frame, 00037 int64_t start_position, 00038 double frame_rate); 00039 int is_realtime(); 00040 void update_gui(); 00041 void save_data(KeyFrame *keyframe); 00042 void read_data(KeyFrame *keyframe); 00043 int load_defaults(); 00044 int save_defaults(); 00045 int handle_opengl(); 00046 }; 00047 00048 00049 #endif
1.5.5