VideoInfo provides basic information about the clip your filter recieves.
bool HasVideo()
This will return true if there is any video in the given clip.
bool HasAudio()
This will return true if there is any audio in the given clip.
bool IsRGB()
This will return true if the colorspace is RGB (in any way). For now only RGB24 and RGB32 returns true, but future formats could also apply.
bool IsRGB24()
bool IsRGB32()
bool IsYUV()
This will return true if the colorspace is YUV. For now YV12 and YUY2 returns true.
bool IsYUY2()
bool IsYV12()
Note that I420 is also reported as YV12, because planes are automatically swapped.
bool IsPlanar()
This will return true if the video is planar. For now only YV12 returns true, but future formats might also do so. See PlanarImageFormat.
bool IsFieldBased()
This will return true if the video has been through a
SeparateFields
, and the video has not been weaved yet.
Otherwise it will return false.
bool IsParityKnown()
bool IsBFF()
bool IsTFF()
bool IsColorSpace(int c_space)
This function will check if the colorspace (VideoInfo.pixel_type) is the same as given c_space.
bool IsSameColorspace(const VideoInfo& vi2)
This function will compare two VideoInfos, and check if the colorspace is the same. Note: It does not check imagesize or similar properties.
bool Is(int property)
For future use. Currently works as IsColorSpace
Threre are some other useful information in VideoInfo structure (width, height, fps_numerator, fps_denominator, num_frames, various audio properties). See 'avisynth.h' header file.
$Date: 2006/11/09 19:20:33 $
Original version of this document http://www.avisynth.org/VideoInfo