Thread: Avisynth+
View Single Post
Old 3rd January 2018, 22:19   #3842  |  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
Quick question: when creating a NewVideoFrame, is pitch guaranteed to always be rowsize rounded up to a 32-byte boundary?
Nope. If you end up running in vapoursynth's compatibility it can be 64 byte alignment too. Sometimes. There are also some cpu cache reasons to avoid row sizes that are a certain multiple. So a future implementation may pad the rowsize to avoid that.

Don't assume anything, it'll break future compatibility.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline