Cross-Platform Camera API
- by Karim
Hi,
I'm now building a video transforming filter that have to transform video frames in real-time.
One of the key requirements of the filter is to have high performance to minimize the number of dropped frames during the transform.
Another requirement that is of lower priority but also nice to have is to make it cross-platform (both PC's and Mobile devices).
The application is built in C++.
Now my question is:
is there any API that is more portable and has a similar or better performance characteristics than DirectShow? as DirectShow's portability is only limited to Windows-based devices (PCs and Windows Mobile&CE platforms).
Also I've notices that for example using HTC's custom camera API has far better performance than what DirectShow offers. If you want to check this, try to build a filter in DirectShow that will multiply each color by 2 and render that in real-time from camera on the screen. Then do the same with HTC's API. There is almost 4-5x performance boost with vendor's specific API. So it'd be very nice if the library used the device-specific implementation of the driver, as performance is critical when doing this transforms on a mobile device (which is about ~500 MHz).