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)
158 #define get_le16int(p) (*(p+1)<<8 | *(p))
159 #define get_le32int(p) ((get_le16int(p+2)<<16) | get_le16int(p))
160 #define get_le64int(p) (int64_t)(((uint64_t)(get_le32int(p+4))<<32) | (uint64_t)(get_le32int(p)))
163 #define MK_FOURCC(a, b, c, d) ((a<<24)|(b<<16)|(c<<8)|d)
166 #define ABS(a) ((a)>=0.?(a):-(a))
183 #endif // #ifndef __DECPLUGIN_H__
lives_interlace_t
Definition: decplugin.h:41
Definition: decplugin.h:170
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(lives_clip_data_t *)
Definition: decplugin.h:43
void rip_audio_cleanup(const lives_clip_data_t *)
lives_interlace_t
Definition: main.h:464
Definition: decplugin.h:44
int boolean
Definition: decplugin.h:35
LiVESMediaType
Definition: decplugin.h:169
Definition: decplugin.h:172
Definition: decplugin.h:171
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 ...
lives_clip_data_t * get_clip_data(const char *URI, lives_clip_data_t *)
Definition: decplugin.h:42
const char * version(void)
const char * module_check_init(void)
int64_t rip_audio(const lives_clip_data_t *, const char *fname, int64_t stframe, int64_t nframes, unsigned char **abuff)
Definition: decplugin.h:173