<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">
> Maybe you could advice me how to do that without additional allocations.<br>
> JSAMPARRAY is a 3-dimensional array, top index is color component. Each<br>
> element is a JSAMPARRAY - 2-dimensional array of row pointers.<br>
> We are having p_pic->p[i].p_pixels, which is a plane array of pixels for<br>
> each color component.<br>
<br>
<br>
</div>Something like:<br>
<br>
p_row_pointers[i] = &p_pic->p[i].p_pixels[p_pic->p[i].i_pitch *<br>
<div class="im">p_jpeg.next_scanline * p_jpeg.comp_info[i].v_samp_factor /<br>
</div>p_jpeg.max_v_samp_factor];<br>
<br>
? </blockquote></div><div class="gmail_extra"><br></div>Not, it is not correct.</div><div class="gmail_extra">p_row_pointers[i] is JSAMPARRAY (aka unsigned char **), &p_pic->p[i].p_pixels[idx] is uint8_t * (aka unsigned char *).</div>
<div class="gmail_extra"><br>-- <br>Maxim Bublis
</div></div>