blob: fe02d9265342ba966a1e3b4b386ff188bb74e1e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef __SCALE_H__
#define __SCALE_H__
#ifdef FUNKEY_S
#define SCREEN_WIDTH 240
#else
#define SCREEN_WIDTH 320
#endif
#if SCREEN_WIDTH == 240
#define HUD_LEN 31
#else
#define HUD_LEN 41
#endif
#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,
SCALE_SIZE_CROP,
};
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
|