Thread: Avisynth+
View Single Post
Old 3rd January 2018, 23:02   #3844  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,547
Quote:
Originally Posted by davidhorman View Post
But it will be consistent for a particular clip? So if I call NewVideoFrame(vi), get the pitch, and immediately discard the frame, is it safe to assume the pitch will be the same for all future frames created?

I'm trying to be extremely efficient with something.
In vapoursynth it's guaranteed that the stride/pitch is the same. For all frames if they have the same type.

I checked the Avisynth source and the stride will always be the same there too. For NewVideoFrame, not for frames returned from GetFrame obviously.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline