LiVES  3.0.2
Macros | Functions
saveplay.c File Reference
#include "../libweed/weed.h"
#include "../libweed/weed-host.h"
#include "../libweed/weed-palettes.h"
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "main.h"
#include "callbacks.h"
#include "support.h"
#include "resample.h"
#include "effects.h"
#include "audio.h"
#include "htmsocket.h"
#include "cvirtual.h"
#include "interface.h"

Macros

#define AUDIO_FRAMES_TO_READ   100
 
#define SECOND_STOP_TIME   0.1
 
#define STOP_GIVE_UP_TIME   1.0
 

Functions

boolean save_clip_values (int which)
 
boolean read_file_details (const char *file_name, boolean is_audio)
 
const char * get_deinterlace_string (void)
 
ulong deduce_file (const char *file_name, double start, int end)
 
ulong open_file (const char *file_name)
 
ulong open_file_sel (const char *file_name, double start, int frames)
 
boolean get_handle_from_info_file (int index)
 
void save_frame (LiVESMenuItem *menuitem, livespointer user_data)
 
void save_file (int clip, int start, int end, const char *filename)
 
void play_file (void)
 
int close_temp_handle (int clipno, int new_clip)
 
boolean get_temp_handle (int index, boolean create)
 
void create_cfile (void)
 
LIVES_GLOBAL_INLINE char * get_untitled_name (int number)
 
boolean get_new_handle (int index, const char *name)
 
boolean add_file_info (const char *check_handle, boolean aud_only)
 
boolean save_file_comments (int fileno)
 
void wait_for_stop (const char *stop_command)
 
boolean save_frame_inner (int clip, int frame, const char *file_name, int width, int height, boolean from_osc)
 
void backup_file (int clip, int start, int end, const char *file_name)
 
boolean write_headers (lives_clip_t *file)
 
boolean read_headers (const char *file_name)
 
void open_set_file (int clipnum)
 
ulong restore_file (const char *file_name)
 
int save_event_frames (void)
 
void add_to_ascrap_mb (uint64_t bytes)
 
boolean open_scrap_file (void)
 
boolean open_ascrap_file (void)
 
boolean load_from_scrap_file (weed_plant_t *layer, int frame)
 
boolean check_for_disk_space (void)
 
int save_to_scrap_file (weed_plant_t *layer)
 
void close_scrap_file (boolean remove)
 
void close_ascrap_file (boolean remove)
 
void recover_layout_map (int numclips)
 
boolean reload_clip (int fileno, int maxframe)
 
void add_to_recovery_file (const char *handle)
 
boolean rewrite_recovery_file (void)
 
boolean check_for_recovery_files (boolean auto_recover)
 

Macro Definition Documentation

◆ AUDIO_FRAMES_TO_READ

#define AUDIO_FRAMES_TO_READ   100

◆ SECOND_STOP_TIME

#define SECOND_STOP_TIME   0.1

◆ STOP_GIVE_UP_TIME

#define STOP_GIVE_UP_TIME   1.0

Function Documentation

◆ add_file_info()

boolean add_file_info ( const char *  check_handle,
boolean  aud_only 
)

◆ add_to_ascrap_mb()

void add_to_ascrap_mb ( uint64_t  bytes)

◆ add_to_recovery_file()

void add_to_recovery_file ( const char *  handle)

◆ backup_file()

void backup_file ( int  clip,
int  start,
int  end,
const char *  file_name 
)

◆ check_for_disk_space()

boolean check_for_disk_space ( void  )

◆ check_for_recovery_files()

boolean check_for_recovery_files ( boolean  auto_recover)

◆ close_ascrap_file()

void close_ascrap_file ( boolean  remove)

◆ close_scrap_file()

void close_scrap_file ( boolean  remove)

◆ close_temp_handle()

int close_temp_handle ( int  clipno,
int  new_clip 
)

◆ create_cfile()

void create_cfile ( void  )

◆ deduce_file()

ulong deduce_file ( const char *  file_name,
double  start,
int  end 
)

◆ get_deinterlace_string()

const char* get_deinterlace_string ( void  )

◆ get_handle_from_info_file()

boolean get_handle_from_info_file ( int  index)

◆ get_new_handle()

boolean get_new_handle ( int  index,
const char *  name 
)

◆ get_temp_handle()

boolean get_temp_handle ( int  index,
boolean  create 
)

◆ get_untitled_name()

LIVES_GLOBAL_INLINE char* get_untitled_name ( int  number)

◆ load_from_scrap_file()

boolean load_from_scrap_file ( weed_plant_t *  layer,
int  frame 
)

◆ open_ascrap_file()

boolean open_ascrap_file ( void  )

◆ open_file()

ulong open_file ( const char *  file_name)

◆ open_file_sel()

ulong open_file_sel ( const char *  file_name,
double  start,
int  frames 
)

◆ open_scrap_file()

boolean open_scrap_file ( void  )

◆ open_set_file()

void open_set_file ( int  clipnum)

◆ play_file()

void play_file ( void  )

◆ read_file_details()

boolean read_file_details ( const char *  file_name,
boolean  is_audio 
)

◆ read_headers()

boolean read_headers ( const char *  file_name)

◆ recover_layout_map()

void recover_layout_map ( int  numclips)

◆ reload_clip()

boolean reload_clip ( int  fileno,
int  maxframe 
)

◆ restore_file()

ulong restore_file ( const char *  file_name)

◆ rewrite_recovery_file()

boolean rewrite_recovery_file ( void  )

◆ save_clip_values()

boolean save_clip_values ( int  which)

◆ save_event_frames()

int save_event_frames ( void  )

◆ save_file()

void save_file ( int  clip,
int  start,
int  end,
const char *  filename 
)

◆ save_file_comments()

boolean save_file_comments ( int  fileno)

◆ save_frame()

void save_frame ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)

◆ save_frame_inner()

boolean save_frame_inner ( int  clip,
int  frame,
const char *  file_name,
int  width,
int  height,
boolean  from_osc 
)

◆ save_to_scrap_file()

int save_to_scrap_file ( weed_plant_t *  layer)

◆ wait_for_stop()

void wait_for_stop ( const char *  stop_command)

◆ write_headers()

boolean write_headers ( lives_clip_t file)