[vlc-devel] Re: Problem with an access_demux module

Laurent Aimar fenrir at via.ecp.fr
Wed Jun 7 14:00:31 CEST 2006


On Wed, Jun 07, 2006, Christophe Démaret wrote:
> Now i have another issue with a similar plug-in.
> I'm trying to read RAW RGB 24 bits from a buffer.
> it looks like rawvideo.c wants the dimensions, this seems logical :)

>     es_format_Init( &p_sys->fmt, VIDEO_ES, VLC_FOURCC('R','V','2','4') );
> 
>     p_sys->es = es_out_Add( p_demux->out, &p_sys->fmt );
> /*    msg_Dbg( p_demux, "es_out_Add done, ex = %x (%d)", p_sys->es, 
> p_sys->es);*/
> 
>     /* basic infos about the stream */
>     p_sys->fmt.video.i_width = FPGA_WIDTH;
>     p_sys->fmt.video.i_height = FPGA_HEIGHT;
>     p_sys->fmt.video.i_bits_per_pixel = 24;
>     msg_Dbg( p_demux, "screen width: %i, height: %i, depth: %i",
>              p_sys->fmt.video.i_width, p_sys->fmt.video.i_height,
>              p_sys->fmt.video.i_bits_per_pixel );
> 
>     /* RGB stuff to give the component order*/
>     p_sys->fmt.video.i_rmask = 0x00ff0000;
>     p_sys->fmt.video.i_gmask = 0x0000ff00;
>     p_sys->fmt.video.i_bmask = 0x000000ff;

 Same thing again, all changes in sys->fmt after es_out_Add are ignored ...

-- 
fenrir

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list