r807: Minor fix...
[cinelerra_cv/mob.git] / cinelerra / picture.h
blob221706f64bd324a8c3d3183ba8167ea64fd62cfd
1 #ifndef PICTURE_H
2 #define PICTURE_H
5 // Container for picture controls
7 #include "arraylist.h"
8 #include "bcwindowbase.inc"
9 #include "defaults.inc"
10 #include "mwindow.inc"
12 class PictureItem
14 public:
15 PictureItem();
16 ~PictureItem();
18 void copy_from(PictureItem *src);
19 char* get_default_string(char *string);
20 char name[BCTEXTLEN];
21 int device_id;
22 int min;
23 int max;
24 int default_;
25 int step;
26 int type;
27 int value;
31 class PictureConfig
33 public:
34 PictureConfig(MWindow *mwindow);
35 ~PictureConfig();
36 void copy_settings(PictureConfig *picture);
37 void copy_usage(PictureConfig *picture);
38 void load_defaults();
39 void save_defaults();
40 void set_item(int device_id, int value);
42 int brightness;
43 int hue;\
44 int color;
45 int contrast;
46 int whiteness;
48 // Flags for picture settings the device uses
49 int use_brightness;
50 int use_contrast;
51 int use_color;
52 int use_hue;
53 int use_whiteness;
55 // For the latest APIs the controls are defined by the driver
56 // Search for existing driver with name. If none exists, create it.
57 PictureItem* new_item(const char *name);
58 PictureItem* get_item(const char *name, int id);
59 ArrayList<PictureItem*> controls;
60 // To get defaults
61 MWindow *mwindow;
65 #endif