r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / filetiff.h
blob44aa85a9581ad5970dbbf5769c53cd2777e990ab
1 #ifndef FILETIFF_H
2 #define FILETIFF_H
4 #include <stdlib.h>
6 #include "file.inc"
7 #include "filelist.h"
8 #include "mutex.inc"
9 #include <tiffio.h>
10 #include "vframe.inc"
12 // This header file is representative of any single frame file format.
14 class FileTIFF : public FileList
16 public:
17 FileTIFF(Asset *asset, File *file);
18 ~FileTIFF();
20 static void get_parameters(BC_WindowBase *parent_window,
21 Asset *asset,
22 BC_WindowBase* &format_window,
23 int audio_options,
24 int video_options);
25 static int check_sig(Asset *asset);
26 int can_copy_from(Edit *edit, int64_t position);
27 int colormodel_supported(int colormodel);
28 int get_best_colormodel(Asset *asset, int driver);
29 int read_frame_header(char *path);
30 int read_frame(VFrame *output, VFrame *input);
31 int write_frame(VFrame *frame, VFrame *data, FrameWriterUnit *unit);
32 FrameWriterUnit* new_writer_unit(FrameWriter *writer);
34 Mutex *unit_lock;
38 // For each write frame call, since multiple write_frames are running concurrently.
39 class FileTIFFUnit : public FrameWriterUnit
41 public:
42 FileTIFFUnit(FileTIFF *file, FrameWriter *writer);
43 ~FileTIFFUnit();
45 int offset;
46 VFrame *data;
47 VFrame *temp;
48 FileTIFF *file;
54 class TIFFConfigVideo : public BC_Window
56 public:
57 TIFFConfigVideo(BC_WindowBase *parent_window, Asset *asset);
58 ~TIFFConfigVideo();
61 int create_objects();
62 int close_event();
63 static char* alpha_to_codec(int use_alpha);
64 static int codec_to_alpha(char *codec);
65 static void fix_codec(char *codec);
66 BC_WindowBase *parent_window;
67 Asset *asset;
71 class TIFFConfigAlpha : public BC_CheckBox
73 public:
74 TIFFConfigAlpha(TIFFConfigVideo *gui, int x, int y);
76 int handle_event();
78 TIFFConfigVideo *gui;
86 #endif