video processing
Author
Discussion

r1ot

Original Poster:

733 posts

240 months

Tuesday 6th November 2007
quotequote all
Didn't really know where to post this but here goes.

A few years ago in a bar in Singapore I was drinking Singapore Slings in a bar next to a window. 4 panes set into a frame watching the people walking by then it turned into a picture of a shark swimming about and I, well, I fell off my seat.

It turned out it was 4 lcd screens set into a frame and in a backroom there was a PC controlling them all. How could you set up 4 screens to run and then set it to run the image so it passes smoothly between the screens and not jump when it hits the gap between the screens? I wouldn't mind trying to recreate it.

cjs

11,739 posts

283 months

Tuesday 6th November 2007
quotequote all
What you were looking at is a Video Wall. This is where multiple screens are sync'd together to form one big screen or other patterns. They start at 2x2 and go up to...well I've seen 9x9 using CRT monitors. You need a processor to control the wall and these are pricey ......a few thousand ££. Do search for Video walls for more info.

dilbert

7,741 posts

263 months

Tuesday 6th November 2007
quotequote all
At a hardware level you would need a block of memory, and either a DVI framer of a RamDAC. The memory would divide into four blocks and with a RamDAC or a DVI framer for each. At the system level that could be as simple as four video cards, or perhaps just two if they're the new fangled Dual DVI jobs, which inherently have two framers.

Setup the memory such that each frame buffer (for a given pane) is split into two halves where the whole is suitable for containing a complete image for the display.

Your code at this level has to be fast enough that it can render half the image into the frame buffer in the time that it takes the ramdac to read the data out of the other half. It's important that you dont write the frame buffer faster or slower than the scan rate otherwise you'll get flicker.

That data is read from another buffer which is twice the size of the total of the four frame buffers. One half of the big buffer is offscren, the other half is rendered to the individual frame buffers, at a device driver level.

You update the offscreen buffer at te application level, and when you're done you raise a flag to say that you've finished drawing. You then wait until a flag signals that you can draw to the half of the buffer that was on screen, but will become offscreen. This allows the switch to occur at a synchronised point in the display frame. That's not critical, but it can make a difference to the viewer perception.

Drawing into the offscreen buffer is up to you, you can take as long or as short a time to do that as you want.

To get a simple slide it's probably going to be easier to manipulate the way the data is read from the buffer, than try to move the whole of the data around. Since that's happening at the driver level it's easier said than done. Other effects like alpha transparency can be manipulated on a global basis if they affect the whole of the image, but if you're going to composite an image then you render the image into the buffer using the alpha as a multiplier. Obviously the final image cant have an alpha, because an alpha determines the relationship between two images. The final image is only a single image.

Stretching and compressing are done in a mathematical process called convolution, where a single output pixel is calculated from a group input pixels where each is weighted and multiplied into the output pixel. The group of input pixels is established by a mapping of input to output. The mapping and the weights would normally be calculated to work together and get smooth stretches, although you can also get interesting and useful effects using separate mappings and weights.

For 3D rendering you can use a variety of off the shelf tools like OpenGL and DirectX, although I only really know anything about OpenGL. It's not complicated to use. You essentially just specify co-ordinates for triangles in 3D space, and ask for a texture image to be fitted to each triangle. Hardware then computes a flat image from the co-ordinate space, and that can easily and quickly be block transferred into your frame buffer.

Moving pictures from other sources will come as a stream of binary RGB data, and that can be transferred and or manipulated into the frame buffer.

It's a big subject, but I'm not entirely sure you would want to start just trying to do something like you have described. Probably the quickest and most effective "in" would be to get a half decent computer, some sort of programming language, and play with OpenGL or DirectX.

It's possible that if you're just looking for the "effect" you'll buy something off the shelf, but the hard part with this sort of stuff is specifying what you want. Sod's law says that what you want is not what you can get. You can either put up with what you get, or get your hands dirty!!!!

Edited by dilbert on Tuesday 6th November 17:07