r802: Remove renderframfsclient and renderfarmfsserver .h and .C from Makefile.am...
[cinelerra_cv/mob.git] / cinelerra / filecr2.h
blobfe4fddd7f4fe00a0ec9d4cc6f63dfebbd2ec04db
1 #ifndef FILECR2_H
2 #define FILECR2_H
5 #include "filebase.h"
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:
12 // -i <path>
13 // When the file is recognized, return 0.
14 // When the file is unknown, return 1.
16 // <path>
17 // Decode the file.
18 extern "C"
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
28 public:
29 FileCR2(Asset *asset, File *file);
30 ~FileCR2();
32 void reset();
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);
37 int close_file();
38 // Open file and decode.
39 int read_frame(VFrame *frame);
40 // Get best colormodel for decoding.
41 int colormodel_supported(int colormodel);
43 private:
44 void format_to_asset();
48 #endif