X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fplugins%2Fquark%2Fquark.h;fp=cinelerra-5.0%2Fplugins%2Fquark%2Fquark.h;h=0000000000000000000000000000000000000000;hb=2f150ba7e76149aee34233ff4c007e57a30da5dd;hp=7efbe3ea6455ac9e648d47f1f95779e4c9a2cb1d;hpb=3c8ddbb0c9c24084b516e15cdf3e7271e81ae13c;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/plugins/quark/quark.h b/cinelerra-5.0/plugins/quark/quark.h deleted file mode 100644 index 7efbe3ea..00000000 --- a/cinelerra-5.0/plugins/quark/quark.h +++ /dev/null @@ -1,149 +0,0 @@ - -/* - * 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 QUARK_H -#define QUARK_H - -class QuarkMain; -#define MAXSHARPNESS 100 - -#include "bchash.h" -#include "mutex.h" -#include "pluginvclient.h" -#include "sharpenwindow.h" - -#include - - - -class QuarkEngine : public Thread -{ -public: - QuarkEngine(QuarkMain *plugin); - ~QuarkEngine(); - - int start_process_frame(VFrame *output, VFrame *input, int row1, int row2); - int wait_process_frame(); - void run(); - - void filter(int components, - int wordsize, - int vmax, - int w, - unsigned char *src, - unsigned char *dst, - int *neg0, - int *neg1, - int *neg2); - void filter(int components, - int wordsize, - int vmax, - int w, - u_int16_t *src, - u_int16_t *dst, - int *neg0, - int *neg1, - int *neg2); - - - void filter_888(int w, - unsigned char *src, - unsigned char *dst, - int *neg0, - int *neg1, - int *neg2); - void filter_8888(int w, - unsigned char *src, - unsigned char *dst, - int *neg0, - int *neg1, - int *neg2); - void filter_161616(int w, - u_int16_t *src, - u_int16_t *dst, - int *neg0, - int *neg1, - int *neg2); - void filter_16161616(int w, - u_int16_t *src, - u_int16_t *dst, - int *neg0, - int *neg1, - int *neg2); - - void sharpen_888(); - void sharpen_161616(); - void sharpen_8888(); - void sharpen_16161616(); - - int filter(int w, - unsigned char *src, - unsigned char *dst, - int *neg0, - int *neg1, - int *neg2); - - QuarkMain *plugin; - int field; - VFrame *output, *input; - int last_frame; - Mutex input_lock, output_lock; - unsigned char *src_rows[4], *dst_row; - int *neg_rows[4]; - int row1, row2; -}; - -class QuarkMain : public PluginVClient -{ -public: - QuarkMain(PluginServer *server); - ~QuarkMain(); - -// required for all realtime plugins - int process_realtime(VFrame *input_ptr, VFrame *output_ptr); - int is_realtime(); - char* plugin_title(); - int show_gui(); - void raise_window(); - int set_string(); - void load_configuration(); - void save_data(KeyFrame *keyframe); - void read_data(KeyFrame *keyframe); - -// parameters needed for sharpness - float sharpness; // Range from 0 to 100 - float last_sharpness; - int interlace; - int horizontal; - int row_step; - int luminance; - -// a thread for the GUI - QuarkThread *thread; - int pos_lut[0x10000], neg_lut[0x10000]; - -private: - int get_luts(int *pos_lut, int *neg_lut, int color_model); - QuarkEngine **engine; - int total_engines; -}; - -#endif