X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmaskengine.h;h=782c3cc7f2322271a12f24a0b17451dd6cbda43c;hb=60f8df69db9ddd8148bfc41a17bb0955b52a45e6;hp=340d923c851db18f546feb9352ef2176e1e340ba;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/maskengine.h b/cinelerra-5.1/cinelerra/maskengine.h index 340d923c..782c3cc7 100644 --- a/cinelerra-5.1/cinelerra/maskengine.h +++ b/cinelerra-5.1/cinelerra/maskengine.h @@ -2,21 +2,21 @@ /* * 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 MASKENGINE_H @@ -58,29 +58,17 @@ public: ~MaskUnit(); void process_package(LoadPackage *package); - void draw_line_clamped(VFrame *frame, - int &x1, - int &y1, - int x2, - int y2, - unsigned char value); - void do_feather(VFrame *output, - VFrame *input, - double feather, - int start_y, - int end_y, - int start_x, - int end_x); - void blur_strip(double *val_p, - double *val_m, - double *dst, - double *src, - int size, - int max); - - double n_p[5], n_m[5]; - double d_p[5], d_m[5]; - double bd_p[5], bd_m[5]; + void draw_line_clamped(VFrame *frame, + int x1, int y1, int x2, int y2, unsigned char value); + void do_feather(VFrame *output, VFrame *input, + double feather, int start_y, int end_y, int start_x, int end_x); + void blur_strip(double *val_p, double *val_m, + double *dst, double *src, int size, int max); + + double n_p[5], n_m[5]; + double d_p[5], d_m[5]; + double bd_p[5], bd_m[5]; + MaskEngine *engine; VFrame *temp; }; @@ -93,13 +81,13 @@ public: ~MaskEngine(); - void do_mask(VFrame *output, + void do_mask(VFrame *output, // Position relative to project, compensated for playback direction int64_t start_position_project, - MaskAutos *keyframe_set, + MaskAutos *keyframe_set, MaskAuto *keyframe, MaskAuto *default_auto); - int points_equivalent(ArrayList *new_points, + int points_equivalent(ArrayList *new_points, ArrayList *points); void delete_packages();