Giampaolo Bellini wrote:
>
> Hi all...
>
> In my application, I'm moving from a CCD camera (connected to a
> framegrabber) to a usb Creative Webcam... I'm in trouble converting
> the
>
> VIDEO_PALETTE_YUV420P buffer into VIDEO_PALETTE_RGB32 ; is there a
> function one can call to perform such conversion ?
>
>
> thanks in advance,
>
>
> Gimpaolo
Short answer: yes, but not in V4L. Get ffmpeg (
http://ffmpeg.sourceforge.net ) and use img_convert.
Longer answer: there are a number of technicalities when calling that
function; they are probably OT (are they really?) for this list, but I
would be glad to help by direct E-mail if they are. Opinions?
But they require knowing one thing: in V4l, what *exactly* is
VIDEO_PALETTE_RGB32? I never used it much, since YUV420P is *the* format
when using ffmpeg; from the few notes I took down, seems it is actually
B-G-R-X in byte order, with X all 8 bits zero. Can someone confirm?
--
Michel Bardiaux
Peaktime Belgium S.A. Bd. du Souverain, 191 B-1160 Bruxelles
Tel : +32 2 790.29.41