Video blitting

Hi,
I am very new to SDL and need some advice. In my current project get 8 bit
black and white image data from my firewire camera at rates of about 15
frames /sec. Currently I have direct access to the buffer containing the
image data.

What is the right way to display these data on screen in a very fast manner.

Regards

Chris

C.K. wrote:

Hi,
I am very new to SDL and need some advice. In my current project get 8 bit
black and white image data from my firewire camera at rates of about 15
frames /sec. Currently I have direct access to the buffer containing the
image data.

What is the right way to display these data on screen in a very fast manner.

On which system is that ? A very fast and portable way would be using
OpenGL and 8 bit textures (and decode them using paletted textures or a
shader with a color lookup table). That way, you only transfer 8 bit
data over the bus, as opposed to 16 or 32bits (or whatever your display
runs at) data.

Stephane

Thanks,

but that sounds quite difficult. I am working under Windows. Installing
OpenGL on my developement system I am using (Watcom compiler) is not very
tempting . Is there any easy way to introduce 8 Bit image data into the
surface structure of SDL.

Regards

Chris> ----- Original Message -----

From: stephane.marchesin@wanadoo.fr (Stephane Marchesin)
Newsgroups: gmane.comp.lib.sdl
Sent: Tuesday, May 30, 2006 10:54 PM
Subject: Re: video blitting

C.K. wrote:

Hi,
I am very new to SDL and need some advice. In my current project get 8
bit
black and white image data from my firewire camera at rates of about 15
frames /sec. Currently I have direct access to the buffer containing the
image data.

What is the right way to display these data on screen in a very fast
manner.

On which system is that ? A very fast and portable way would be using
OpenGL and 8 bit textures (and decode them using paletted textures or a
shader with a color lookup table). That way, you only transfer 8 bit
data over the bus, as opposed to 16 or 32bits (or whatever your display
runs at) data.

Stephane

Phase GmbH wrote:

but that sounds quite difficult. I am working under Windows. Installing
OpenGL on my developement system I am using (Watcom compiler) is not very
tempting . Is there any easy way to introduce 8 Bit image data into the
surface structure of SDL.

I’d probably use an YUV overlay.–
Christian

Thanks,

but that sounds quite difficult. I am working under Windows. Installing
OpenGL on my developement system I am using (Watcom compiler) is not very
tempting . Is there any easy way to introduce 8 Bit image data into the
surface structure of SDL.

Sure, just use an 8-bit SDL surface, and set the palette.

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment