add grouping, default proxy vcodec h264.mp4, default titlebar alpha=1, green bar bug
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / rescale.h
1 #ifndef __RESCALE_H__
2 #define __RESCALE_H__
3 #include "indexable.inc"
4
5 class Rescale {
6 public:
7         enum { none, scaled, cropped, filled, horiz_edge, vert_edge, n_scale_types };
8         static const char *scale_types[];
9
10         Rescale(int w, int h, double aspect);
11         Rescale(Indexable *in);
12         ~Rescale();
13
14         int w, h;
15         double aspect;
16
17         void rescale(Rescale &out, int type,
18                 float &src_w,float &src_h, float &dst_w,float &dst_h);
19 };
20
21 #endif