8 // This uses a program from a guy called Coffin to do the decoding.
9 // Changes to the dcraw.c file were commented with // Cinelerra
11 // The expected behavior for the dcraw function:
13 // When the file is recognized, return 0.
14 // When the file is unknown, return 1.
20 extern char dcraw_info
[1024];
21 extern float **dcraw_data
;
22 extern int dcraw_alpha
;
23 int dcraw_main (int argc
, char **argv
);
26 class FileCR2
: public FileBase
29 FileCR2(Asset
*asset
, File
*file
);
33 static int check_sig(Asset
*asset
);
35 // Open file and set asset properties but don't decode.
36 int open_file(int rd
, int wr
);
38 // Open file and decode.
39 int read_frame(VFrame
*frame
);
40 // Get best colormodel for decoding.
41 int colormodel_supported(int colormodel
);
44 void format_to_asset();