-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraw.h
39 lines (31 loc) · 1.15 KB
/
raw.h
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
37
38
39
#ifndef RAW_H
#define RAW_H
#include "camera.h"
//-------------------------------------------------------------------
#define RAW_PREFIX_IMG 0
#define RAW_PREFIX_CRW 1
#define RAW_PREFIX_SND 2
#define RAW_EXT_JPG 0
#define RAW_EXT_CRW 1
#define RAW_EXT_CR2 2
#define RAW_EXT_THM 3
#define RAW_EXT_WAV 4
//-------------------------------------------------------------------
#define RAW_ROWLEN ((CAM_RAW_ROWPIX*CAM_SENSOR_BITS_PER_PIXEL)/8)
//-------------------------------------------------------------------
extern int raw_savefile();
extern void raw_postprocess();
extern void raw_prepare_develop(const char* filename);
extern void load_bad_pixels_list(const char* filename);
unsigned short get_raw_pixel(unsigned int x,unsigned int y);
#if DNG_SUPPORT
void load_bad_pixels_list_b(char* filename);
void unload_bad_pixels_list_b(void);
void patch_bad_pixels_b(void);
void unpatch_bad_pixels_b(void);
int badpixel_list_loaded_b(void);
char* get_raw_image_addr(void);
void create_badpixel_bin();
#endif
//-------------------------------------------------------------------
#endif