mardi 18 décembre 2018

Relation between lineSize, width, height in FFMPEG

I am confused between linesize, height, width in AVFrame.

As per my understanding, linesize is the strides, which ideally should be the width of the image, right ?

However, the value of width and linesize are not matching.

AVFrame pFrame; 
cout<<"PFrame Linesize :"<<pFrame->data.linesize[0]<<endl;
cout<<"PFrame Width :"<<pFrame->width<<endl;

Output :

PFrame Linesize : 64
PFrame width : 12

My frame is of dimension 12*12.

Aucun commentaire:

Enregistrer un commentaire