Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / filecr2.h
blob94455407b2ebefa958572b4e607bb89e79c379dd
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.
19 class FileCR2 : public FileBase
21 public:
22 FileCR2(Asset_GC asset, File *file);
23 ~FileCR2();
25 void reset();
26 static int check_sig(Asset_GC asset);
28 // Open file and set asset properties but don't decode.
29 int open_file(int rd, int wr);
30 int close_file();
31 // Open file and decode.
32 int read_frame(VFrame *frame);
33 // Get best colormodel for decoding.
34 int colormodel_supported(int colormodel);
36 private:
37 void format_to_asset();
41 #endif
43 // Local Variables:
44 // mode: C++
45 // c-file-style: "linux"
46 // End: