33 #ifndef __AVXSYNTH_C__
34 #define __AVXSYNTH_C__
40 # define EXTERN_C extern "C"
45 #define AVSC_USE_STDCALL 1
47 #ifndef AVSC_USE_STDCALL
48 # define AVSC_CC __cdecl
50 # define AVSC_CC __stdcall
53 #define AVSC_INLINE static __inline
55 #ifdef AVISYNTH_C_EXPORTS
56 # define AVSC_EXPORT EXTERN_C
57 # define AVSC_API(ret, name) EXTERN_C __declspec(dllexport) ret AVSC_CC name
59 # define AVSC_EXPORT EXTERN_C __declspec(dllexport)
60 # ifndef AVSC_NO_DECLSPEC
61 # define AVSC_API(ret, name) EXTERN_C __declspec(dllimport) ret AVSC_CC name
63 # define AVSC_API(ret, name) typedef ret (AVSC_CC *name##_func)
68 typedef long long int INT64;
79 #ifndef __AVXSYNTH_H__
146 #define AVS_FRAME_ALIGN 16
176 {
return (p->
width!=0); }
200 {
return ((p->
pixel_type & c_space) == c_space); }
203 {
return ((p->
pixel_type & property)==property ); }
288 unsigned x=numerator,
y=denominator;
290 unsigned t = x%
y; x =
y; y =
t;
419 #if defined __cplusplus
422 #endif // __cplusplus
426 #if defined __cplusplus
428 #endif // __cplusplus
430 #ifndef AVSC_NO_DECLSPEC
432 {avs_release_video_frame(f);}
434 {
return avs_copy_video_frame(f);}
485 #if defined __cplusplus
488 #endif // __cplusplus
491 #if defined __cplusplus
493 #endif // __cplusplus
524 #ifndef AVSC_NO_DECLSPEC
526 {
AVS_Value v; avs_set_to_clip(&v, v0);
return v; }
535 #if defined __cplusplus
538 #endif // __cplusplus
560 #if defined __cplusplus
562 #endif // __cplusplus
597 #if defined __cplusplus
600 #endif // __cplusplus
604 #if defined __cplusplus
606 #endif // __cplusplus
629 #if defined __cplusplus
632 #endif // __cplusplus
667 #if defined __cplusplus
669 #endif // __cplusplus
671 #ifndef AVSC_NO_DECLSPEC
683 #if defined __cplusplus
686 #endif // __cplusplus
704 #if defined __cplusplus
706 #endif // __cplusplus
714 #if defined __cplusplus
717 #endif // __cplusplus
723 #if defined __cplusplus
725 #endif // __cplusplus
727 #endif //__AVXSYNTH_C__
const char const char void * val
AVSC_INLINE int avs_is_rgb32(const AVS_VideoInfo *p)
BYTE int const BYTE int int row_size
AVSC_INLINE AVS_VideoFrame * avs_new_video_frame(AVS_ScriptEnvironment *env, const AVS_VideoInfo *vi)
AVSC_INLINE int avs_is_same_colorspace(AVS_VideoInfo *x, AVS_VideoInfo *y)
volatile long sequence_number
BYTE int const BYTE int src_pitch
AVS_VideoFrame *AVSC_CC * get_frame(AVS_FilterInfo *, int n)
AVSC_INLINE const AVS_Value * avs_as_array(AVS_Value v)
const char AVS_Value const char ** arg_names
AVSC_INLINE int avs_row_size(const AVS_VideoInfo *p)
AVSC_INLINE const char * avs_as_string(AVS_Value v)
AVSC_INLINE int avs_is_tff(const AVS_VideoInfo *p)
AVSC_INLINE int avs_bytes_per_audio_sample(const AVS_VideoInfo *p)
AVSC_INLINE int avs_get_height_p(const AVS_VideoFrame *p, int plane)
AVS_VideoFrame int int int int int int rel_offsetV
AVSC_INLINE AVS_VideoFrame * avs_copy_frame(AVS_VideoFrame *f)
AVSC_INLINE AVS_Value avs_new_value_error(const char *v0)
AVSC_INLINE int avs_get_row_size_p(const AVS_VideoFrame *p, int plane)
AVS_VideoFrame int int int int new_height
AVSC_INLINE INT64 avs_audio_samples_from_bytes(const AVS_VideoInfo *p, INT64 bytes)
AVSC_INLINE void avs_set_fps(AVS_VideoInfo *p, unsigned numerator, unsigned denominator)
AVSC_INLINE AVS_Value avs_new_value_int(int v0)
#define AVSC_API(ret, name)
AVSC_INLINE BYTE * avs_get_write_ptr(const AVS_VideoFrame *p)
AVSC_INLINE int avs_is_parity_known(const AVS_VideoInfo *p)
BYTE int const BYTE * srcp
typedef AVS_Value(AVSC_CC *AVS_ApplyFunc)(AVS_ScriptEnvironment *
AVSC_INLINE int avs_audio_channels(const AVS_VideoInfo *p)
AVSC_INLINE int avs_samples_per_second(const AVS_VideoInfo *p)
AVS_FilterInfo AVS_Value child
AVSC_INLINE int avs_is_property(const AVS_VideoInfo *p, int property)
AVSC_INLINE int avs_is_color_space(const AVS_VideoInfo *p, int c_space)
AVS_VideoFrame int int int int int rel_offsetU
AVSC_INLINE int avs_get_pitch(const AVS_VideoFrame *p)
AVS_ScriptEnvironment * env
AVSC_INLINE int avs_is_int(AVS_Value v)
AVSC_INLINE int avs_is_rgb(const AVS_VideoInfo *p)
AVSC_INLINE int avs_bytes_from_pixels(const AVS_VideoInfo *p, int pixels)
AVSC_INLINE AVS_Value avs_array_elt(AVS_Value v, int index)
AVSC_INLINE int avs_array_size(AVS_Value v)
AVSC_INLINE int avs_as_int(AVS_Value v)
AVSC_INLINE INT64 avs_bytes_from_audio_samples(const AVS_VideoInfo *p, INT64 samples)
AVSC_INLINE int avs_is_array(AVS_Value v)
AVSC_INLINE int avs_is_bool(AVS_Value v)
AVSC_INLINE int avs_get_height(const AVS_VideoFrame *p)
AVSC_INLINE const BYTE * avs_get_read_ptr(const AVS_VideoFrame *p)
AVSC_INLINE const BYTE * avs_get_read_ptr_p(const AVS_VideoFrame *p, int plane)
AVSC_INLINE int avs_is_float(AVS_Value v)
AVSC_INLINE AVS_Value avs_new_value_float(float v0)
AVSC_INLINE int avs_is_planar(const AVS_VideoInfo *p)
AVSC_EXPORT const char *AVSC_CC avisynth_c_plugin_init(AVS_ScriptEnvironment *env)
AVSC_INLINE int avs_bmp_size(const AVS_VideoInfo *vi)
AVSC_INLINE void avs_set_property(AVS_VideoInfo *p, int property)
AVS_Value void * user_data
AVSC_INLINE int avs_is_rgb24(const AVS_VideoInfo *p)
AVSC_INLINE int avs_has_video(const AVS_VideoInfo *p)
AVSC_INLINE int avs_defined(AVS_Value v)
AVSC_INLINE AVS_Value avs_new_value_bool(int v0)
AVSC_INLINE int avs_is_clip(AVS_Value v)
AVSC_INLINE AVS_Value avs_new_value_string(const char *v0)
AVSC_INLINE const char * avs_as_error(AVS_Value v)
AVSC_INLINE int avs_get_pitch_p(const AVS_VideoFrame *p, int plane)
AVSC_INLINE int avs_is_bff(const AVS_VideoInfo *p)
AVSC_INLINE BYTE * avs_get_write_ptr_p(const AVS_VideoFrame *p, int plane)
AVSC_INLINE double avs_as_float(AVS_Value v)
AVSC_INLINE int avs_get_row_size(const AVS_VideoFrame *p)
const AVS_VideoInfo int align
typedef void(RENAME(mix_any_func_type))
AVSC_INLINE int avs_is_error(AVS_Value v)
int(AVSC_CC *get_parity)(AVS_FilterInfo *
AVSC_INLINE int avs_is_field_based(const AVS_VideoInfo *p)
AVS_VideoFrame int rel_offset
BYTE int const BYTE int int int height
AVSC_INLINE AVS_Value avs_new_value_array(AVS_Value *v0, int size)
void(AVSC_CC * AVS_ShutdownFunc)(void *user_data, AVS_ScriptEnvironment *env)
AVSC_INLINE int avs_bytes_per_channel_sample(const AVS_VideoInfo *p)
AVSC_INLINE void avs_set_field_based(AVS_VideoInfo *p, int isfieldbased)
AVS_VideoFrame int int int new_row_size
void(AVSC_CC *free_filter)(AVS_FilterInfo *)
AVS_VideoFrameBuffer * vfb
AVS_ScriptEnvironment AVS_Clip *AVSC_INLINE int avs_as_bool(AVS_Value v)
AVSC_INLINE int avs_is_yuv(const AVS_VideoInfo *p)
AVSC_INLINE void avs_clear_property(AVS_VideoInfo *p, int property)
AVSC_INLINE AVS_VideoFrame * avs_new_frame(AVS_ScriptEnvironment *env, const AVS_VideoInfo *vi)
const char const char * params
struct AVS_ScriptEnvironment AVS_ScriptEnvironment
AVSC_INLINE void avs_release_frame(AVS_VideoFrame *f)
AVSC_INLINE int avs_is_writable(const AVS_VideoFrame *p)
AVSC_INLINE int avs_bits_per_pixel(const AVS_VideoInfo *p)
AVS_VideoFrame int int new_pitch
AVSC_INLINE AVS_Value avs_new_value_clip(AVS_Clip *v0)
AVSC_INLINE int avs_is_string(AVS_Value v)
AVSC_INLINE int avs_frames_from_audio_samples(const AVS_VideoInfo *p, INT64 samples)
AVSC_INLINE int avs_is_yv12(const AVS_VideoInfo *p)
AVSC_INLINE int avs_sample_type(const AVS_VideoInfo *p)
AVS_VideoFrame int int int int int int int new_pitchUV
static const AVS_Value avs_void
AVSC_INLINE INT64 avs_audio_samples_from_frames(const AVS_VideoInfo *p, INT64 frames)
AVSC_INLINE int avs_is_yuy2(const AVS_VideoInfo *p)
const char const char AVS_ApplyFunc apply
static int get_parity(uint8_t value)
Get parity bit of bit 2..7.
AVS_FilterInfo AVS_Value int store_child
AVSC_INLINE int avs_has_audio(const AVS_VideoInfo *p)
int audio_samples_per_second