LiVES  2.0.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
cvirtual.h
Go to the documentation of this file.
1 // cvirtual.h
2 // LiVES
3 // (c) G. Finch 2008 - 2013 <salsaman@gmail.com>
4 // released under the GNU GPL 3 or later
5 // see file ../COPYING or www.gnu.org for licensing details
6 
7 
8 // functions for handling "virtual" clips (CLIP_TYPE_FILE)
9 
10 #ifndef HAS_LIVES_CVIRTUAL_H
11 #define HAS_LIVES_CVIRTUAL_H
12 
13 
14 void create_frame_index(int fileno, boolean init, int start_offset, int nframes);
15 boolean save_frame_index(int fileno);
16 boolean load_frame_index(int fileno) WARN_UNUSED;
17 boolean check_clip_integrity(int fileno, const lives_clip_data_t *cdata);
18 
19 boolean virtual_to_images(int sfileno, int sframe, int eframe, boolean update_progress) WARN_UNUSED;
20 void delete_frames_from_virtual (int sfileno, int start, int end);
21 void insert_images_in_virtual (int sfileno, int where, int frames);
22 void del_frame_index(file *sfile);
23 void clean_images_from_virtual (file *sfile, int oldframes);
24 int *frame_index_copy(int *findex, int nframes);
25 boolean check_if_non_virtual(int fileno, int start, int end);
26 
27 void restore_frame_index_back (int sfileno);
28 
29 boolean is_virtual_frame(int sfileno, int frame);
30 
31 int count_virtual_frames(int *findex, int start, int end);
32 
33 
34 #endif