Typedefs | |
typedef AVS_Clip_ | AVS_Clip |
opaque declaration of a clip | |
Functions | |
AVS_C_API AVS_Clip * | avs_clip_new_from_script (const char *script, const AVS_Environment *p_env) |
Create a clip from a script. | |
AVS_C_API AVS_Clip * | avs_clip_new_from_file (const char *filename, const AVS_Environment *p_env) |
Create a clip from a file. | |
AVS_C_API AVS_Clip * | avs_clip_new_to_rgb32 (const AVS_Clip *p_clip) |
Convert a clip to a newly allocated RGB32 clip. | |
AVS_C_API AVS_Clip * | avs_clip_new_to_yv12 (const AVS_Clip *p_clip) |
Convert a clip to a newly allocated YV12 clip. | |
AVS_C_API void | avs_clip_delete (AVS_Clip *p_clip) |
Delete a clip. | |
AVS_C_API AVS_VideoInfo * | avs_clip_videoinfo_get (const AVS_Clip *p_clip) |
Retrieve the video informations of a clip. | |
AVS_C_API AVS_VideoFrame * | avs_clip_videoframe_get (const AVS_Clip *p_clip, long int n) |
Retrieve the video frame of a clip. |
An example of Avisynth script is:
GstreamerSource("file.mkv", 0, 0)
This script will load the file file.mkv in Avisynth using Gstreamer.
You can retrieve frame of a clip with the function avs_clip_videoframe_get(). It is in raw format (that is, it is not compressed).
You can retrieve the informations of a clip with the function avs_clip_videoinfo_get().
Once you have finished to use an AVS_Clip, free it with avs_clip_delete().
AVS_C_API void avs_clip_delete | ( | AVS_Clip * | p_clip | ) |
p_clip | The clip to delete. |
p_clip
.
AVS_C_API AVS_Clip* avs_clip_new_from_file | ( | const char * | filename, | |
const AVS_Environment * | p_env | |||
) |
filename | The string of the file that contains the script. | |
p_env | A pointer to an AVS_Environment pointer. |
p_env
. If an error occurred, the returned value is NULL
. Otherwise, it is a valid clip.
AVS_C_API AVS_Clip* avs_clip_new_from_script | ( | const char * | script, | |
const AVS_Environment * | p_env | |||
) |
script | The string that contains the script. | |
p_env | A pointer to an AVS_Environment pointer. |
p_env
. If an error occurred, the returned value is NULL
. Otherwise, it is a valid clip.
p_clip | The clip to convert to RGB32 colorspace. |
p_clip
to a newly allocated RGB32 clip. If p_clip
is already in RGB32, then NULL
is returned. If an error occurred, the returned value is NULL
.
p_clip | The clip to convert to YV12 colorspace. |
p_clip
to a newly allocated YV12 clip. If p_clip
is already in YV12, then NULL
is returned. If an error occurred, the returned value is NULL
.
AVS_C_API AVS_VideoFrame* avs_clip_videoframe_get | ( | const AVS_Clip * | p_clip, | |
long int | n | |||
) |
p_clip | The clip to retrieve informations from. | |
n | The frame number. |
n
of the clip p_clip
. If p_clip
is NULL
, the returned value is NULL
. The returned value must be free with avs_videoframe_delete().
AVS_C_API AVS_VideoInfo* avs_clip_videoinfo_get | ( | const AVS_Clip * | p_clip | ) |
p_clip | The clip to retrieve informations from. |
p_clip
. If p_clip
is NULL
, the returned value is NULL
. The returned value must be free with avs_videoinfo_delete().