[vlc-devel] How to draw a line in subpicture_t region

Rémi Denis-Courmont remi at remlab.net
Tue Aug 28 04:24:02 CEST 2012


   Hello,

On Monday 27 August 2012, Peter Tap wrote:
> Now, picture_t structure has four planes. I am guessing the first three
> planes are for R, G, and B, and the fourth plane is alpha.
> 
> for(int i=0;i<100;i++) {  *(pPic->p[0].p_pixels + (i * p[0].i_pitch) + i) =
> 0xAA; 
> 
>   *(pPic->p[1].p_pixels + (i * p[1].i_pitch) + i) = 0xBB; 
> 
>   *(pPic->p[2].p_pixels + (i * p[2].i_pitch) + i) = 0xCC; 
> 
>   *(pPic->p[3].p_pixels + (i * p[3].i_pitch) + i) = 0x00; // No
> transparency for alpha channel
> 
> }
> 
> Is this thought process correct? Am I missing something?

RGBA and RV32 are made of one plane of 32-bits pixels, not four planes of 8-
bits components. You will never find color planes in RGB space.

-- 
Rémi Denis-Courmont
http://www.remlab.info



More information about the vlc-devel mailing list