4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "arraylist.h"
28 #include "maskauto.inc"
29 #include "maskautos.inc"
36 int operator==(MaskPoint& ptr);
37 MaskPoint& operator=(MaskPoint& ptr);
38 void copy_from(MaskPoint &ptr);
41 // Incoming acceleration
42 float control_x1, control_y1;
43 // Outgoing acceleration
44 float control_x2, control_y2;
50 SubMask(MaskAuto *keyframe, int no);
54 int operator==(SubMask& ptr);
55 int equivalent(SubMask& ptr);
56 void copy_from(SubMask& ptr);
57 void load(FileXML *file);
58 void copy(FileXML *file);
62 ArrayList<MaskPoint*> points;
66 class MaskAuto : public Auto
69 MaskAuto(EDL *edl, MaskAutos *autos);
72 int operator==(Auto &that);
73 int operator==(MaskAuto &that);
74 int identical(MaskAuto *src);
75 void load(FileXML *file);
76 void copy(int64_t start, int64_t end, FileXML *file, int default_auto);
77 void copy_from(Auto *src);
78 int interpolate_from(Auto *a1, Auto *a2, int64_t position, Auto *templ=0);
79 void copy_from(MaskAuto *src);
80 // Copy data but not position
81 void copy_data(MaskAuto *src);
82 void get_points(ArrayList<MaskPoint*> *points,
84 void set_points(ArrayList<MaskPoint*> *points,
87 // Copy parameters to this which differ between ref & src
88 void update_parameter(MaskAuto *ref, MaskAuto *src);
91 // Retrieve submask with clamping
92 SubMask* get_submask(int number);
93 // Translates all submasks
94 void translate_submasks(float translate_x, float translate_y);
96 void scale_submasks(int orig_scale, int new_scale);
99 ArrayList<SubMask*> masks;
100 // These are constant for the entire track
105 int apply_before_plugins;
106 int disable_opengl_masking;