LiVES 1.3.11-svn
src/resample.h
Go to the documentation of this file.
00001 // resample.h
00002 // LiVES
00003 // (c) G. Finch 2004 - 2009 <salsaman@xs4all.nl>
00004 // released under the GNU GPL 3 or later
00005 // see file ../COPYING or www.gnu.org for licensing details
00006 
00007 
00008 // functions/structs for reordering, resampling video and audio
00009 
00010 #ifndef __HAS_RESAMPLE_H
00011 #define __HAS_RESAMPLE_H
00012 
00013 #include "../libweed/weed.h"
00014 
00016 typedef struct __resaudw {
00017   GtkWidget *dialog;
00018   GtkWidget *entry_arate;
00019   GtkWidget *entry_achans;
00020   GtkWidget *entry_asamps;
00021   GtkWidget *rb_signed;
00022   GtkWidget *rb_unsigned;
00023   GtkWidget *rb_bigend;
00024   GtkWidget *rb_littleend;
00025   GtkWidget *unlim_radiobutton;
00026   GtkWidget *hour_spinbutton;
00027   GtkWidget *minute_spinbutton;
00028   GtkWidget *second_spinbutton;
00029   GtkWidget *fps_spinbutton;
00030   GtkWidget *aud_checkbutton;
00031   GtkWidget *aud_hbox;
00032 } _resaudw;
00033 
00034 
00035 _resaudw *resaudw;
00036 
00037 LIVES_INLINE weed_timecode_t q_gint64(weed_timecode_t in, double fps);
00038 LIVES_INLINE weed_timecode_t q_gint64_floor(weed_timecode_t in, double fps);
00039 LIVES_INLINE weed_timecode_t q_dbl (gdouble in, gdouble fps);
00040 
00041 
00042 weed_plant_t *quantise_events (weed_plant_t *in_list, gdouble new_fps, gboolean allow_gap); 
00043 
00045 gint count_resampled_frames (gint in_frames, gdouble orig_fps, gdouble resampled_fps);
00046 
00048 
00049 // GUI functions
00051 void create_new_pb_speed (gshort type);
00052 
00057 _resaudw* create_resaudw (gshort type, render_details *rdet, GtkWidget *top_vbox);
00058 
00059 void on_change_speed_activate (GtkMenuItem *, gpointer);
00060 void on_change_speed_ok_clicked (GtkButton *, gpointer);
00061 
00062 gboolean auto_resample_resize (gint width,gint height,gdouble fps,gint fps_num,gint fps_denom, gint arate, gint asigned);
00063 gint reorder_frames(void);
00064 gint deorder_frames(gint old_framecount, gboolean leave_bak); 
00065 
00066 gboolean resample_clipboard(gdouble new_fps); 
00067 
00068 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines