new VideoFrame()
A video frame. At present, you can't construct video frames directly. This
may change at a future point in time.
All video frames accessed from AviSynth are actually either a
AviSynth.InterleavedVideoFrame
(for RGB24/RGB32/YUY2) or a
AviSynth.PlanarVideoFrame
(for YV12).
- Source:
Members
-
<readonly> interleaved :boolean
-
Indicates whether the frame data is interleaved (RGB, YUY2).
Type:
- boolean
- Source:
-
<readonly> planar :boolean
-
Indicates whether the frame data is planar (YV12).
Type:
- boolean
- Source:
Methods
-
getContext(type) → {AviSynth.RenderingContext}
-
Gets a rendering context, allowing you to draw directly onto the frame.
Parameters:
Name Type Description type
string the type of rendering context, currently this must be the string "simple"
indicating that a AviSynth.SimpleRenderingContext should be returned."2d"
to get an HTML5 canvas style context is planned,"webgl"
would sure be cool but don't count on it.- Source:
Returns:
a rendering context to render on the frame, ornull
if the requested context is not available -
release()
-
Release the frame, indicating that the frame data is no longer useful. This will allow AviSynth to "reclaim" the frame.
- Source: