| 1 |
/* These are unfortunately global variables used by various modules. |
| 2 |
|
| 3 |
It would be nice to clean up this code and get rid of all of these. |
| 4 |
*/ |
| 5 |
#include <stdio.h> |
| 6 |
#include <time.h> |
| 7 |
#include "pm_c_util.h" |
| 8 |
|
| 9 |
extern FILE * ifp; |
| 10 |
extern int flip; |
| 11 |
extern int data_offset; |
| 12 |
extern int raw_width; |
| 13 |
extern int raw_height; |
| 14 |
extern int height; |
| 15 |
extern int width; |
| 16 |
extern char * meta_data; |
| 17 |
extern int meta_offset; |
| 18 |
extern int meta_length; |
| 19 |
extern char make[64]; |
| 20 |
extern char model[70]; |
| 21 |
extern char model2[64]; |
| 22 |
extern time_t timestamp; |
| 23 |
extern int is_foveon; |
| 24 |
extern int is_dng; |
| 25 |
extern int is_canon; |
| 26 |
extern int maximum; |
| 27 |
extern int clip_max; |
| 28 |
extern short order; |
| 29 |
extern int zero_after_ff; |
| 30 |
extern int shrink; |
| 31 |
extern int iwidth; |
| 32 |
extern unsigned int filters; |
| 33 |
extern int black; |
| 34 |
extern unsigned short white[8][8]; |
| 35 |
extern int top_margin; |
| 36 |
extern int left_margin; |
| 37 |
extern int fuji_width; |
| 38 |
extern int tiff_samples; |
| 39 |
extern int tiff_data_compression; |
| 40 |
extern int kodak_data_compression; |
| 41 |
extern int fuji_secondary; |
| 42 |
extern int use_coeff; |
| 43 |
extern int use_gamma; |
| 44 |
extern int xmag; |
| 45 |
extern int ymag; |
| 46 |
extern float cam_mul[4]; |
| 47 |
#define camera_red cam_mul[0] |
| 48 |
#define camera_blue cam_mul[2] |
| 49 |
extern float pre_mul[4]; |
| 50 |
extern int colors; |
| 51 |
extern unsigned short curve[0x1000]; |
| 52 |
extern float coeff[3][4]; |
| 53 |
extern int use_secondary; |
| 54 |
extern bool verbose; |