Hi all, many of the formats I decode have padded lines of data, reflected by the fact that AVFrame->linesize[] are longer than the width of the frame.
With my human head on, I can easily establish how much padding there is (if any), for example if the Y channel of a YUV422 image that's 1920px wide is 1952, then there are clearly 32 bytes of padding per line in Y channel. However, I don't know the pixel format until run time- there must be a way of either directly finding out the padding amount for each channel for a given AVFrame, or, failing that, knowing how many bits per pixel per plane are used by a format. But i've not managed to find a function or example to help. Does anyone know of one? thanks JOn _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
