Re: [GnomeMeeting-list] Urgent:Multi-camera



Le mar, 16/03/2004 à 12:13 +0800, yumi maiko a écrit :

> Hi all,
>     Could anyone tell me that why the video_buffer
> size is height * width * 3 , 3 times the frame size?

RGB, you need 1 byte per color.

>     Also, why the amount write to and read from
> video_buffer is this size too, as specified from
> "video_channel->read (video_buffer, height*width*3)"
> and "video_channel->write (video_buffer,
> height*width*3)" in videograbber.cpp?
>     I made two new buffers temp_buffer1 and
> temp_buffer2 to store the data come from two cameras.
> And then,I use the function from openmcu
> VideoBuffer::Write(BYTE *data,PINDEX amount,PINDEX
> posn) and 
> VideoBuffer::Read(BYTE *data,PINDEX amount) to
> integrate the two camera images into the original
> video_buffer for gnomemeeting to display.
> Below is the code I wrote:
> 
> videoBuffer.CombineImage ((BYTE *) video_buffer,(BYTE
> *)temp_buffer1,                                   
>                           (BYTE *) temp_buffer2,
> height * width );
> 
> void VideoBuffer::CombineImage(BYTE * result_buffer,
> BYTE * input_buffer1, BYTE * input_buffer2, PINDEX
> amount){
>   Write(input_buffer1, amount, 0);
>   Write(input_buffer2, amount, 1);
>   Read(result_buffer,amount);
> }
> 
> After I compile it and then run gnomemeeting, the
> screen is divided into 4,with green image,and then
> hang up.I tried for different PINDEX amount for the
> buffer to read from and write to,some hangs up and
> some shows nothing. Could anyone help me?
> Thanks alot!
> 
> Regards,
> wah
>   
> 
> _________________________________________________________
> 必殺技、飲歌、小星星...
> 浪漫鈴聲  情心連繫
> http://us.rd.yahoo.com/evt=22281/*http://ringtone.yahoo.com.hk/
> _______________________________________________
> GnomeMeeting-list mailing list
> GnomeMeeting-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnomemeeting-list

-- 
 _      Damien Sandras
(o-     
//\     It-Optics s.a.
v_/_    GnomeMeeting: http://www.gnomemeeting.org/
        FOSDEM 2004:  http://www.fosdem.org
        H.323 phone:  callto:ils.seconix.com/dsandras seconix com

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



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