Sampson CC Tech

Department of Information Technology and Security

Image Processing with OpenGL and Shaders

Blog: 
Basically, this article is telling you what their about. Using OpenGL shaders to perform image processing on your CPUs. Which is very cool! They use a device called the V4L2 interface.Using horsepower from the graphics card to do some of the image processing reduces the load on the CPU and may result in better throughput.The Glugalm program, which was developed, and the pieces behind it, named George Koharchick. The Glutcam program takes data from a V4L2 device and feeds it into OpenGL for processing and display. The V4L2 API controls the imaging device. V4L2 allows the application to open the device, query its capabilities, set capture parameters and negotiate the output format and method. Two of those things are especially important to us: the output mechanism and output format. The output mechanism moves video data from the imaging device into your application-less trivial than it sounds, because the driver has the data in kernel space and your application is in user space. the “read” interface, which is the normal read() function reading from a device, and the “streaming” interface.The speed is important, the streaming interface is preferred, and the read interface is slower, because it needs to copy all the data fromthe kernel space into the user space.The drawback to the streaming interface is complexity: you have to manage a set of buffers instead of just reading from the same buffer each time via the read function. But, the complexity is so very worth it!! I think you'll enjoy reading this article- its got chalk-full of information about the OpenGL Imaging Processing. Cool invention and cool guy!!!