[Libav-user] How is cropping and scaling implemented

wm4 nfxjfg at googlemail.com
Sun Feb 1 15:53:26 CET 2015

On Sun, 1 Feb 2015 14:44:11 +0000
"Kristensen, Odd-Arild" <okristensen at albany.edu> wrote:

> Fair point, cropping should not modify the pixels. But at some point you would want to remove the pixels outside the selected region, or copy the pixels inside the region to the destination frame. I dont’t see either of these things happening in filter_frame() Am I looking in the wrong place?

Cropping can be implemented by changing the pixel data pointer to point
to the top left pixel. Nothing else needs to be done. Why are you even
asking? It's completely transparent to the user.

More information about the Libav-user mailing list