<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div><div>Hi <font face="Arial" size="2">Rémi,</font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><font face="Arial" size="2">Thank you very much for your help. No wonder "i_planes" value was coming out to be just one.</font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;">I had created a region of width=100 and height=100. However,<font face="Arial" size="2"> while debugging, I noticed
that, for the first plane, i_lines was 114 and i_pitch was 448. I was thinking i_lines should have been 100 and i_pitch should have been 400. Where is the extra margin coming from?</font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><font face="Arial" size="2">Appreciate your help.</font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><font face="Arial" size="2">Regards,</font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><font face="Arial"
size="2">Peter<br></font></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: Arial; background-color: transparent; font-style: normal;"><font face="Arial" size="2"><br></font></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Rémi Denis-Courmont <remi@remlab.net><br> <b><span style="font-weight: bold;">To:</span></b> vlc-devel@videolan.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, August 27, 2012 7:24 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vlc-devel] How to draw a line in subpicture_t region<br> </font> </div>
<br> Hello,<br><br>On Monday 27 August 2012, Peter Tap wrote:<br>> Now, picture_t structure has four planes. I am guessing the first three<br>> planes are for R, G, and B, and the fourth plane is alpha.<br>> <br>> for(int i=0;i<100;i++) { *(pPic->p[0].p_pixels + (i * p[0].i_pitch) + i) =<br>> 0xAA; <br>> <br>> *(pPic->p[1].p_pixels + (i * p[1].i_pitch) + i) = 0xBB; <br>> <br>> *(pPic->p[2].p_pixels + (i * p[2].i_pitch) + i) = 0xCC; <br>> <br>> *(pPic->p[3].p_pixels + (i * p[3].i_pitch) + i) = 0x00; // No<br>> transparency for alpha channel<br>> <br>> }<br>> <br>> Is this thought process correct? Am I missing something?<br><br>RGBA and RV32 are made of one plane of 32-bits pixels, not four planes of 8-<br>bits components. You will never find color planes in RGB space.<br><br>-- <br>Rémi Denis-Courmont<br><a href="http://www.remlab.info/"
target="_blank">http://www.remlab.info</a><br>_______________________________________________<br>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br><br><br> </div> </div> </div></body></html>