X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2F1080to480%2F1080to480.h;fp=cinelerra-5.1%2Fplugins%2F1080to480%2F1080to480.h;h=05a15a4bd515720e3d4b17eb06abcaa90cd7b415;hp=0000000000000000000000000000000000000000;hb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;hpb=52fcc46226f9df46f9ce9d0566dc568455a7db0b diff --git a/cinelerra-5.1/plugins/1080to480/1080to480.h b/cinelerra-5.1/plugins/1080to480/1080to480.h new file mode 100644 index 00000000..05a15a4b --- /dev/null +++ b/cinelerra-5.1/plugins/1080to480/1080to480.h @@ -0,0 +1,100 @@ + +/* + * CINELERRA + * Copyright (C) 2008 Adam Williams + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#ifndef _1080TO480_H +#define _1080TO480_H + + +#include "overlayframe.inc" +#include "pluginvclient.h" + +class _1080to480Main; +class _1080to480Option; + +class _1080to480Window : public PluginClientWindow +{ +public: + _1080to480Window(_1080to480Main *client); + ~_1080to480Window(); + + void create_objects(); + int set_first_field(int first_field, int send_event); + + _1080to480Main *client; + _1080to480Option *odd_first; + _1080to480Option *even_first; +}; + + +class _1080to480Option : public BC_Radial +{ +public: + _1080to480Option(_1080to480Main *client, + _1080to480Window *window, + int output, + int x, + int y, + char *text); + int handle_event(); + + _1080to480Main *client; + _1080to480Window *window; + int output; +}; + +class _1080to480Config +{ +public: + _1080to480Config(); + + int equivalent(_1080to480Config &that); + void copy_from(_1080to480Config &that); + void interpolate(_1080to480Config &prev, + _1080to480Config &next, + long prev_frame, + long next_frame, + long current_frame); + + int first_field; +}; + +class _1080to480Main : public PluginVClient +{ +public: + _1080to480Main(PluginServer *server); + ~_1080to480Main(); + PLUGIN_CLASS_MEMBERS(_1080to480Config) + + +// required for all realtime plugins + int process_realtime(VFrame *input, VFrame *output); + int is_realtime(); + void save_data(KeyFrame *keyframe); + void read_data(KeyFrame *keyframe); + void update_gui(); + + void reduce_field(VFrame *output, VFrame *input, int src_field, int dst_field); + + VFrame *temp; +}; + + +#endif