LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
resample.c File Reference
#include "../libweed/weed.h"
#include "../libweed/weed-host.h"
#include "main.h"
#include "resample.h"
#include "support.h"
#include "callbacks.h"
#include "effects.h"
#include "audio.h"
#include "cvirtual.h"

Functions

LIVES_INLINE weed_timecode_t q_gint64 (weed_timecode_t in, double fps)
 
LIVES_INLINE weed_timecode_t q_gint64_floor (weed_timecode_t in, double fps)
 
LIVES_INLINE weed_timecode_t q_dbl (double in, double fps)
 
LIVES_INLINE int count_resampled_frames (int in_frames, double orig_fps, double resampled_fps)
 
boolean auto_resample_resize (int width, int height, double fps, int fps_num, int fps_denom, int arate, int asigned, boolean swap_endian)
 
WARN_UNUSED weed_plant_t * quantise_events (weed_plant_t *in_list, double qfps, boolean allow_gap)
 quantise frame events for a single clip More...
 
void on_resample_audio_activate (LiVESMenuItem *menuitem, livespointer user_data)
 
void on_resaudio_ok_clicked (LiVESButton *button, LiVESEntry *entry)
 
void on_resaudw_asamps_changed (LiVESWidget *irrelevant, livespointer rubbish)
 
void on_resample_video_activate (LiVESMenuItem *menuitem, livespointer user_data)
 
void on_resample_vid_ok (LiVESButton *button, LiVESEntry *entry)
 
_resaudwcreate_resaudw (short type, render_details *rdet, LiVESWidget *top_vbox)
 
void create_new_pb_speed (short type)
 window change speed from Tools menu More...
 
void on_change_speed_activate (LiVESMenuItem *menuitem, livespointer user_data)
 
void on_change_speed_ok_clicked (LiVESButton *button, livespointer user_data)
 
int reorder_frames (int rwidth, int rheight)
 
int deorder_frames (int old_frames, boolean leave_bak)
 leave_bak is a special mode for the clipboard More...
 
boolean resample_clipboard (double new_fps)
 call this to resample clipboard video More...
 

Function Documentation

boolean auto_resample_resize ( int  width,
int  height,
double  fps,
int  fps_num,
int  fps_denom,
int  arate,
int  asigned,
boolean  swap_endian 
)
LIVES_INLINE int count_resampled_frames ( int  in_frames,
double  orig_fps,
double  resampled_fps 
)
void create_new_pb_speed ( short  type)

window change speed from Tools menu

_resaudw* create_resaudw ( short  type,
render_details rdet,
LiVESWidget *  top_vbox 
)

resample audio window

type 1 : show current and new, type 2 : show new

int deorder_frames ( int  old_frames,
boolean  leave_bak 
)

leave_bak is a special mode for the clipboard

void on_change_speed_activate ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)
void on_change_speed_ok_clicked ( LiVESButton *  button,
livespointer  user_data 
)
void on_resample_audio_activate ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)
void on_resample_vid_ok ( LiVESButton *  button,
LiVESEntry *  entry 
)
void on_resample_video_activate ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)
void on_resaudio_ok_clicked ( LiVESButton *  button,
LiVESEntry *  entry 
)
void on_resaudw_asamps_changed ( LiVESWidget *  irrelevant,
livespointer  rubbish 
)
LIVES_INLINE weed_timecode_t q_dbl ( double  in,
double  fps 
)
LIVES_INLINE weed_timecode_t q_gint64 ( weed_timecode_t  in,
double  fps 
)
LIVES_INLINE weed_timecode_t q_gint64_floor ( weed_timecode_t  in,
double  fps 
)
WARN_UNUSED weed_plant_t* quantise_events ( weed_plant_t *  in_list,
double  qfps,
boolean  allow_gap 
)

quantise frame events for a single clip

int reorder_frames ( int  rwidth,
int  rheight 
)
boolean resample_clipboard ( double  new_fps)

call this to resample clipboard video