Yes, in fact that's how I did it to begin with - but if you want the function to work on YV12 clips then each chunk has to have a horizontal resolution which is a multiple of 4. Doing all the resizing to 4x supersampling then sizing back down at the end gives you more flexibility.