r870: Merge 2.1:
[cinelerra_cv.git] / cinelerra / filecr2.h
blob1fa727cdd473e19ad99095d55c2e27e8e291ae14
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 *asset, File *file);
23 ~FileCR2();
25 void reset();
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);
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