LiVES  3.0.2
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_GLOBAL_INLINE weed_timecode_t q_gint64 (weed_timecode_t in, double fps)
 
LIVES_GLOBAL_INLINE weed_timecode_t q_gint64_floor (weed_timecode_t in, double fps)
 
LIVES_GLOBAL_INLINE weed_timecode_t q_dbl (double in, double fps)
 
LIVES_GLOBAL_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)
 
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

◆ auto_resample_resize()

boolean auto_resample_resize ( int  width,
int  height,
double  fps,
int  fps_num,
int  fps_denom,
int  arate,
int  asigned,
boolean  swap_endian 
)

◆ count_resampled_frames()

LIVES_GLOBAL_INLINE int count_resampled_frames ( int  in_frames,
double  orig_fps,
double  resampled_fps 
)

◆ create_new_pb_speed()

void create_new_pb_speed ( short  type)

window change speed from Tools menu

◆ create_resaudw()

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

resample audio window

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

◆ deorder_frames()

int deorder_frames ( int  old_frames,
boolean  leave_bak 
)

leave_bak is a special mode for the clipboard

◆ on_change_speed_activate()

void on_change_speed_activate ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)

◆ on_change_speed_ok_clicked()

void on_change_speed_ok_clicked ( LiVESButton *  button,
livespointer  user_data 
)

◆ on_resample_audio_activate()

void on_resample_audio_activate ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)

◆ on_resample_vid_ok()

void on_resample_vid_ok ( LiVESButton *  button,
LiVESEntry *  entry 
)

◆ on_resample_video_activate()

void on_resample_video_activate ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)

◆ on_resaudio_ok_clicked()

void on_resaudio_ok_clicked ( LiVESButton *  button,
LiVESEntry *  entry 
)

◆ on_resaudw_asamps_changed()

void on_resaudw_asamps_changed ( LiVESWidget *  irrelevant,
livespointer  rubbish 
)

◆ q_dbl()

LIVES_GLOBAL_INLINE weed_timecode_t q_dbl ( double  in,
double  fps 
)

◆ q_gint64()

LIVES_GLOBAL_INLINE weed_timecode_t q_gint64 ( weed_timecode_t  in,
double  fps 
)

◆ q_gint64_floor()

LIVES_GLOBAL_INLINE weed_timecode_t q_gint64_floor ( weed_timecode_t  in,
double  fps 
)

◆ quantise_events()

weed_plant_t* quantise_events ( weed_plant_t *  in_list,
double  qfps,
boolean  allow_gap 
)

quantise frame events for a single clip

◆ reorder_frames()

int reorder_frames ( int  rwidth,
int  rheight 
)

◆ resample_clipboard()

boolean resample_clipboard ( double  new_fps)

call this to resample clipboard video