[Libav-user] Getting pixel value at each x, y position of a given frame
NDJORE BORIS
ndjoreboris at gmail.com
Fri Apr 5 14:07:45 EEST 2019
Hello,
Can someone help me to find the value of each pixel on a given frame,
please.
I use frame.data[] and frame.linesize[].
Then I do this :
for(int i = 0; i< height; i++)
{
for(int j=0 ;j<width; j++)
{
xy = height*stride + width
int pix_i,j = frame.data[xy][frame.linesize[xy]].
}
}
where width and height are the dimension of the frame.
I don't know if what I do is right
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20190405/3b48c622/attachment.html>
More information about the Libav-user
mailing list