Display YUV image

hi all

for displaying the image on the overlay, we require the pixels, data ,
pitches and line-size information

what’s the role of those pitches and line size for displaying the image…

and for accessing the pixel information on the overlay we are using the
in that we need to give the length, how can we calculate that value for
displaying the image…

thanks in advance