Avoid to top-post. On date Thursday 2009-10-22 16:26:45 -0500, [email protected] encoded: > Thanks. Looking at the code for av_picture_crop, I see that only the top > and left bands are specified, but it uses the stride lengths from the > source picture for the destination picture. Assuming the width and height > of the destination picture have been set to reflect values further > decreased by bands on the right and bottom, then does av_picture_crop work > simply because the extra data is truncated?
Assuming I understood your question, yes. Note that AVPicture doesn't have any field with the h/w of the stored picture, it simply contains the buffer containing the data, even the PIX_FMT information is not stored there. So to crop right/bottom you simply have to tell your application that the w/h sizes of the picture have decreased, and interpret accordingly the data contained in the AVPicture. Check also the libavfilter/vf_crop.c code. Regards. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
