10#ifndef HAS_LIVES_RESAMPLE_H
11#define HAS_LIVES_RESAMPLE_H
13#define RESIZE_ALL_NEEDS_CONVERT 0
14#define LETTERBOX_NEEDS_COMPOSITE 1
15#define LETTERBOX_NEEDS_CONVERT 1
18typedef struct __resaudw {
48off_t
quant_abytes(
double seek,
int arate,
int achans,
int asampsize);
50#define SKJUMP_THRESH_RATIO 1.025
51#define SKJUMP_THRESH_SECS 0.25
73 int fps_denom,
int arate,
int asigned,
boolean swap_endian);
_resaudw * create_resaudw(short type, render_details *, LiVESWidget *top_vbox)
resample audio window
void on_change_speed_activate(LiVESMenuItem *, livespointer)
int reorder_frames(int rwidth, int rheight)
void on_change_speed_ok_clicked(LiVESButton *, livespointer)
ticks_t q_dbl(double in, double fps)
double quant_aseek(double seek, int arate)
convert seek time (secs) to an (almost) integer number of samples
int count_resampled_frames(int in_frames, double orig_fps, double resampled_fps)
weed_plant_t * quantise_events(weed_plant_t *in_list, double new_fps, boolean allow_gap) WARN_UNUSED
quantise frame events for a single clip
size_t quant_asamps(double seek, int arate)
convert seek time to an integer number of samples
off_t quant_abytes(double seek, int arate, int achans, int asampsize)
boolean auto_resample_resize(int width, int height, double fps, int fps_num, int fps_denom, int arate, int asigned, boolean swap_endian)
ticks_t q_gint64_floor(ticks_t in, double fps)
int deorder_frames(int old_framecount, boolean leave_bak)
leave_bak is a special mode for the clipboard
boolean resample_clipboard(double new_fps)
call this to resample clipboard video
void reorder_leave_back_set(boolean val)
ticks_t q_gint64(ticks_t in, double fps)
LiVESWidget * aud_checkbutton
LiVESWidget * minute_spinbutton
LiVESWidget * hour_spinbutton
LiVESWidget * entry_asamps
LiVESWidget * second_spinbutton
LiVESWidget * rb_littleend
LiVESWidget * fps_spinbutton
LiVESWidget * rb_unsigned
LiVESWidget * unlim_radiobutton
LiVESWidget * entry_arate
LiVESWidget * entry_achans