LiVES  1.6.4-svn
 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 - 2012 <salsaman@xs4all.nl,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(gint fileno, gboolean init, gint start_offset, gint nframes);
15 gboolean save_frame_index(gint fileno);
16 gboolean load_frame_index(gint fileno) WARN_UNUSED;
17 gboolean check_clip_integrity(file *sfile, 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 (gint sfileno, gint start, gint end);
21 void insert_images_in_virtual (gint sfileno, gint where, gint frames);
22 void del_frame_index(file *sfile);
23 void clean_images_from_virtual (file *sfile, gint oldframes);
24 int *frame_index_copy(int *findex, gint nframes);
25 gboolean check_if_non_virtual(gint fileno, gint start, gint end);
26 
27 void restore_frame_index_back (gint sfileno);
28 
29 gboolean is_virtual_frame(int sfileno, int frame);
30 
31 gint count_virtual_frames(int *findex, int start, int end);
32 
33 
34 #endif