<p dir="ltr">uint64_t src_i = (xx+(yy*src_camera_width))*3;</p>
<p dir="ltr"> r = f->pAVFrame->data[0][src_i+0];</p>
<p dir="ltr"> g = f->pAVFrame->data[0][src_i+1];</p>
<p dir="ltr"> b = f->pAVFrame->data[0][src_i+2];</p>
<div class="gmail_quote">On 9 Jun 2016 3:02 pm, "Jesper Taxbøl" <<a href="mailto:jesper@taxboel.dk">jesper@taxboel.dk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am doing a pixel based transformation directly on an AVFrame->data[0] array, and I am experiencing the following artefact: <div><br></div><div><a href="http://i.imgur.com/vnABDjE.png" target="_blank">http://i.imgur.com/vnABDjE.png</a></div><div><br></div><div>The source frame I am working on is 3840x2160 pixels in AV_PIX_FMT_BGR24 format which should place all pixels in the first data array, in BGR order.<br></div><div><br></div><div>The bottom 1/3 part of the picture has a problem with the colors, and I suspect that the pAVFrame has an alignment problem and I just by chance hit some data that maps to pixels.</div><div><br></div><div>Any Idea what I am doing wrong?<br clear="all"><div><br></div><div>Kind regards</div><div><br></div><div>Jesper Taxbøl<br></div><div data-smartmail="gmail_signature"><br></div>
</div></div>
</blockquote></div>