PDA

View Full Version : Crop vs. Resize


angelyote
3rd February 2003, 21:08
Is there a compelling reason to use the avisynth crop filter instead of cropping during the resize step of encode? (aside from the possibility that you aren't resizing)

I prefer using resize to crop because crop in 2.50beta requires the offsets to be even numbers and resize allows me to crop any offsets. This helps me get to perfect aspect ratio at most resolutions.

Dave

sh0dan
3rd February 2003, 21:23
Using crop separate is slightly faster, but otherwise there is little difference, except you can crop on with all numbers when resizing.

Asmodian
3rd February 2003, 21:30
I am not sure but you might want to check that odd crop values actually crop differently than even values, it is known odd values are not acceptable in yv12 color space (there is only color information for every other pixel of every other line) and the crop in earlier version of avisynth 2.5 rounded odd crop values rather then reporting an error, maybe the crop during resize does that still?
I also remember someone posting that the crop in resize was slightly slower than crop and then resize (which is not expected, but the difference is negligible).

EDIT: oops sh0dan was faster, sounds like cropping during the resize works on odd numbers, nice to know - must interpolate the color (makes sense, it is interpolating everything for the resize :))