1 #ifndef RAW_H
2 #define RAW_H
3
4
5
6
7
8
9
10 #define RAW_PREFIX_IMG 0
11 #define RAW_PREFIX_CRW 1
12 #define RAW_PREFIX_SND 2
13
14 #define RAW_EXT_JPG 0
15 #define RAW_EXT_CRW 1
16 #define RAW_EXT_CR2 2
17 #define RAW_EXT_THM 3
18 #define RAW_EXT_WAV 4
19
20
21 extern void raw_process(void);
22 extern void raw_prepare_develop(const char* filename, int prompt);
23 extern int make_pixel_list(char * ptr, int size);
24 extern unsigned short get_raw_pixel(unsigned int x,unsigned int y);
25 extern void set_raw_pixel(unsigned int x,unsigned int y, unsigned short v);
26 extern char* get_raw_image_addr(void);
27 extern void patch_bad_pixel(unsigned int x,unsigned int y);
28 extern int raw_createfile(void);
29 extern void raw_closefile(int fd);
30 extern void raw_get_path(char *path);
31
32
33 #endif