bd/dvd create reworks, Makefile updates
[goodguy/history.git] / cinelerra-5.1 / cinelerra / rescale.h
diff --git a/cinelerra-5.1/cinelerra/rescale.h b/cinelerra-5.1/cinelerra/rescale.h
new file mode 100644 (file)
index 0000000..046a9c7
--- /dev/null
@@ -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