[Libav-user] Copying pixels directly from AVFrame->data, possible alignment error.
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[src_i+0];
g = f->pAVFrame->data[src_i+1];
b = f->pAVFrame->data[src_i+2];
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user