X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Frescale.h;fp=cinelerra-5.1%2Fcinelerra%2Frescale.h;h=046a9c7d8cc8af99925b0b21d5cc1777922be453;hb=29cc4023b50d6f7f9ab518978d8c9e839832b900;hp=0000000000000000000000000000000000000000;hpb=d15e0002dd6aa24de8e899b3551d247ac2128811;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/rescale.h b/cinelerra-5.1/cinelerra/rescale.h new file mode 100644 index 00000000..046a9c7d --- /dev/null +++ b/cinelerra-5.1/cinelerra/rescale.h @@ -0,0 +1,21 @@ +#ifndef __RESCALE_H__ +#define __RESCALE_H__ +#include "indexable.inc" + +class Rescale { +public: + enum { none, scaled, cropped, filled, horiz_edge, vert_edge, n_scale_types }; + static const char *scale_types[]; + + Rescale(int w, int h, double aspect); + Rescale(Indexable *in); + ~Rescale(); + + int w, h; + double aspect; + + void rescale(Rescale &out, int type, + float &src_w,float &src_h, float &dst_w,float &dst_h); +}; + +#endif