LiVES  1.6.4-svn
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
resample.h
Go to the documentation of this file.
1 // resample.h
2 // LiVES
3 // (c) G. Finch 2004 - 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/structs for reordering, resampling video and audio
9 
10 #ifndef HAS_LIVES_RESAMPLE_H
11 #define HAS_LIVES_RESAMPLE_H
12 
13 #if HAVE_SYSTEM_WEED
14 #include <weed/weed.h>
15 #else
16 #include "../libweed/weed.h"
17 #endif
18 
20 typedef struct __resaudw {
21  GtkWidget *dialog;
22  GtkWidget *entry_arate;
23  GtkWidget *entry_achans;
24  GtkWidget *entry_asamps;
25  GtkWidget *rb_signed;
26  GtkWidget *rb_unsigned;
27  GtkWidget *rb_bigend;
28  GtkWidget *rb_littleend;
29  GtkWidget *unlim_radiobutton;
30  GtkWidget *hour_spinbutton;
31  GtkWidget *minute_spinbutton;
32  GtkWidget *second_spinbutton;
33  GtkWidget *fps_spinbutton;
34  GtkWidget *aud_checkbutton;
35  GtkWidget *aud_hbox;
36 } _resaudw;
37 
38 
40 
41 weed_timecode_t q_gint64(weed_timecode_t in, double fps);
42 weed_timecode_t q_gint64_floor(weed_timecode_t in, double fps);
43 weed_timecode_t q_dbl (gdouble in, gdouble fps);
44 
45 
46 weed_plant_t *quantise_events (weed_plant_t *in_list, gdouble new_fps, gboolean allow_gap);
47 
49 gint count_resampled_frames (gint in_frames, gdouble orig_fps, gdouble resampled_fps);
50 
52 
53 // GUI functions
55 void create_new_pb_speed (gshort type);
56 
61 _resaudw* create_resaudw (gshort type, render_details *rdet, GtkWidget *top_vbox);
62 
63 void on_change_speed_activate (GtkMenuItem *, gpointer);
64 void on_change_speed_ok_clicked (GtkButton *, gpointer);
65 
66 gboolean auto_resample_resize (gint width, gint height, gdouble fps, gint fps_num,
67  gint fps_denom, gint arate, gint asigned, gboolean swap_endian);
68 gint reorder_frames(int rwidth, int rheight);
69 gint deorder_frames(gint old_framecount, gboolean leave_bak);
70 
71 gboolean resample_clipboard(gdouble new_fps);
72 
73 #endif