Re: From VIDEO_PALETTE_RGB24 to VIDEO_PALETTE_RGB32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Alexandre wrote:
Em Qua, 2003-08-27 às 16:17, Joëlle Nakhlé escreveu:


  just a little question about conversion of formats.  I'm using the
v4l API to develop an application.


  To do recording from my program, I need to set the format of
video_mmap to VIDEO_PALETTE_RGB24.  To display on screen though, the
format has to be VIDEO_PALETTE_RGB32.


  Is it possible to convert the first format into the second one? If
yes, how?


Just throw it on a sdl surface and let sdl do its magic :-) Are you
using 32 bits/channel for what? Is there any alpha information?

or if you don't want to use SDL, you can for example download MPlayer sources and use the contents of the postproc directory (the rgb24to32 function might interest you)

--
Jindrich Makovicka




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux