Share via


Setting the Color Format for Video Capture (Windows Embedded CE 6.0)

1/6/2010

The color format of a capture stream is a combination of resolution, color space, and frame rate. As part of the stream initialization process, your application must negotiate a color format with the camera driver. You can determine which color formats a driver supports by calling the IAMStreamConfig interface and enumerating its capabilities.

Capabilities are get and set on a pin-by-pin basis. This means that if you are capturing data from several output pins, you have the ability to set different color formats for each pin if you need to.

In the ideal case, the camera driver will support the color format that your application is looking for and you can then set this format by calling the IAMStreamConfig::SetFormat method. It is possible that the driver might not support the exact combination of parameters to match your application's desired color format. To handle cases like this, you should implement a fallback mechanism in your application to set and work with the color format that most closely matches your application's needs.

See Also

Concepts

Video Capture Tasks
Setting the Capture Frame Rate