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.
19 class FileCR2
: public FileBase
22 FileCR2(Asset
*asset
, File
*file
);
26 static int check_sig(Asset
*asset
);
28 // Open file and set asset properties but don't decode.
29 int open_file(int rd
, int wr
);
31 // Open file and decode.
32 int read_frame(VFrame
*frame
);
33 // Get best colormodel for decoding.
34 int colormodel_supported(int colormodel
);
37 void format_to_asset();