7 #ifndef __DECPLUGIN_H__
8 #define __DECPLUGIN_H__
16 #include <sys/types.h>
19 #ifdef HAVE_SYSTEM_WEED
20 #include <weed/weed-palettes.h>
22 #include "../../../libweed/weed-palettes.h"
25 #if defined (IS_DARWIN) || defined (__FreeBSD__)
48 #define LIVES_SEEK_FAST (1<<0)
51 #define LIVES_SEEK_NEEDS_CALCULATION (1<<1)
52 #define LIVES_SEEK_QUALITY_LOSS (1<<2)
59 char container_name[512];
83 float video_start_time;
103 char audio_name[512];
107 #define SYNC_HINT_AUDIO_TRIM_START (1<<0)
108 #define SYNC_HINT_AUDIO_PAD_START (1<<1)
109 #define SYNC_HINT_AUDIO_TRIM_END (1<<2)
110 #define SYNC_HINT_AUDIO_PAD_END (1<<3)
112 #define SYNC_HINT_VIDEO_PAD_START (1<<4)
113 #define SYNC_HINT_VIDEO_PAD_END (1<<5)
159 #define get_le16int(p) (*(p+1)<<8 | *(p))
160 #define get_le32int(p) ((get_le16int(p+2)<<16) | get_le16int(p))
161 #define get_le64int(p) (int64_t)(((uint64_t)(get_le32int(p+4))<<32) | (uint64_t)(get_le32int(p)))
164 #define MK_FOURCC(a, b, c, d) ((a<<24)|(b<<16)|(c<<8)|d)
167 #define ABS(a) ((a)>=0.?(a):-(a))
170 double get_fps(
const char *uri);
186 #endif // #ifndef __DECPLUGIN_H__
boolean rip_audio_sequential(const lives_clip_data_t *, const char *fname)
double get_fps(const char *uri)
int boolean
Definition: videoplugin.h:50
Definition: decplugin.h:173
boolean get_frame(const lives_clip_data_t *, int64_t frame, int *rowstrides, int height, void **pixel_data)
frame starts at 0
boolean set_palette(int palette)
host sets the palette used
const char * version(void)
void rip_audio_cleanup(const lives_clip_data_t *)
lives_interlace_t
Definition: main.h:474
LiVESMediaType
Definition: decplugin.h:172
Definition: decplugin.h:175
Definition: decplugin.h:174
Definition: plugins.h:205
void clip_data_free(lives_clip_data_t *)
free clip data - this should be called for each instance before unloading the module ...
const char * module_check_init(void)
host calls at startup
lives_clip_data_t * get_clip_data(const char *URI, lives_clip_data_t *)
int64_t rip_audio(const lives_clip_data_t *, const char *fname, int64_t stframe, int64_t nframes, unsigned char **abuff)
Definition: decplugin.h:176
void module_unload(void)
this is called when module is unloaded