I am playing with video encoding using LibAV and unable to understand the purpose of linesize.
For e.g., declaration of av_image_alloc function in LibAV takes linesizes as arguments:
int av_image_alloc ( uint8_t * pointers[4],
int linesizes[4],
int w,
int h,
enum AVPixelFormat pix_fmt,
int align
)
I am new to LibAV and video encoding. Feel free to provide any link which can also give me little background of video encoding.