aboutsummaryrefslogtreecommitdiff
path: root/scale.h
diff options
context:
space:
mode:
Diffstat (limited to 'scale.h')
-rw-r--r--scale.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/scale.h b/scale.h
new file mode 100644
index 0000000..c415124
--- /dev/null
+++ b/scale.h
@@ -0,0 +1,24 @@
+#ifndef __SCALE_H__
+#define __SCALE_H__
+
+#define SCREEN_WIDTH 320
+#define SCREEN_HEIGHT 240
+#define SCREEN_BPP 2
+#define SCREEN_PITCH (SCREEN_BPP * SCREEN_WIDTH)
+
+enum scale_size {
+ SCALE_SIZE_NONE,
+ SCALE_SIZE_ASPECT,
+ SCALE_SIZE_FULL,
+};
+
+enum scale_filter {
+ SCALE_FILTER_NEAREST,
+ SCALE_FILTER_SHARP,
+ SCALE_FILTER_SMOOTH,
+};
+
+void scale_update_scaler(void);
+void scale(unsigned w, unsigned h, size_t pitch, const void *src, void *dst);
+
+#endif