Le primidi 11 brumaire, an CCXIX, Robert Nagy a écrit : > Would you mind explaining the layout of an AVFrame and how it works with the > stride (linesize?).
A lot of codecs work with 8×8 or 16×16 pixels blocks. When the image size is not a multiple of 8 or 16, they add dummy pixels to round up. A lot of codecs implementations use specially optimized code that requires the pixels to be aligned in memory. For both reasons if your image width is, say, 500, with some decoders, the offset between line 0 and line 1 will not be 500 but 504 or 512. That is the line stride. > On Mon, Nov 1, 2010 at 8:40 AM, Tomas Härdin > <[email protected]>wrote: Please do not top-post on this list, on pain of being ignored. Search the web if you do not know what it means. Regards, -- Nicolas George
signature.asc
Description: Digital signature
_______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
