[Libav-user] Copying pixels directly from AVFrame->data, possible alignment error.

Jesper Taxbøl jesper at taxboel.dk
Thu Jun 9 20:32:57 CEST 2016


Sorry about the toppost . Im afraid my phone and me had a slight accident.

What I was trying to add was how I index the the source pixels, hoping it
can shed light on the offset error im experiencing.

uint64_t src_i = (xx+(yy*src_camera_width))*3;
r = f->pAVFrame->data[0][src_i+0];
g = f->pAVFrame->data[0][src_i+1];
b = f->pAVFrame->data[0][src_i+2];

Kind regards

Jesper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160609/65691b09/attachment.html>


More information about the Libav-user mailing list