X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fplugins%2Fdenoiseseltempavg%2Fseltempavg.h;fp=cinelerra-5.0%2Fplugins%2Fdenoiseseltempavg%2Fseltempavg.h;h=0000000000000000000000000000000000000000;hb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;hp=24cee1e5f2e6bc98c2167c505f7c6fa6eccb482c;hpb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/plugins/denoiseseltempavg/seltempavg.h b/cinelerra-5.0/plugins/denoiseseltempavg/seltempavg.h deleted file mode 100644 index 24cee1e5..00000000 --- a/cinelerra-5.0/plugins/denoiseseltempavg/seltempavg.h +++ /dev/null @@ -1,112 +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 SELTEMPAVG_H -#define SELTEMPAVG_H - -class SelTempAvgMain; - -#include "bchash.inc" -#include "pluginvclient.h" -#include "seltempavgwindow.h" -#include "vframe.inc" - -class SelTempAvgConfig -{ -public: - SelTempAvgConfig(); - void copy_from(SelTempAvgConfig *src); - int equivalent(SelTempAvgConfig *src); - - int frames; - - float avg_threshold_RY, avg_threshold_GU, avg_threshold_BV; - float std_threshold_RY, std_threshold_GU, std_threshold_BV; - int mask_RY, mask_GU, mask_BV; - - int method; - enum - { - METHOD_NONE, - METHOD_SELTEMPAVG, - METHOD_AVERAGE, - METHOD_STDDEV - }; - - int offsetmode; - enum - { - OFFSETMODE_FIXED, - OFFSETMODE_RESTARTMARKERSYS - }; - - - int paranoid; - int nosubtract; - int offset_restartmarker_keyframe; - int offset_fixed_value; - float gain; - -}; - - -class SelTempAvgMain : public PluginVClient -{ -public: - SelTempAvgMain(PluginServer *server); - ~SelTempAvgMain(); - -// required for all realtime plugins - PLUGIN_CLASS_MEMBERS(SelTempAvgConfig) - void update_gui(); - int process_buffer(VFrame *frame, int64_t start_position, double frame_rate); - int is_realtime(); - void save_data(KeyFrame *keyframe); - void read_data(KeyFrame *keyframe); - int nextkeyframeisoffsetrestart(KeyFrame *keyframe); - void clear_accum(int w, int h, int color_model); - void subtract_accum(VFrame *frame); - void add_accum(VFrame *frame); - void transfer_accum(VFrame *frame); - - int64_t restartoffset; - int onakeyframe; - - char string[BCTEXTLEN]; - - VFrame **history; - -// Frame of history in requested framerate - int64_t *history_frame; - int *history_valid; - unsigned char *accumulation; - unsigned char *accumulation_sq; - unsigned char *accumulation_grey; - - int history_size; -// Starting frame of history in requested framerate - int64_t history_start; -// When subtraction is disabled, this detects no change for paranoid mode. - int64_t prev_frame; -}; - - -#endif