Windows Mobile Camera Native API

Windows Mobile Camera Native API

Since I bought a Cingular 8125 (Dopod 838 in China) on Taobao last time, I have always wanted to try some functions that cannot be played on the emulator, and the camera is one of them. There are 3 samples in the SDK, two of which are based on native code, and one is managed code. The initial platform of Managed code is classic, and I didn't install the classic SDK, only a professional one, so I used the two native code examples.

Camera Capture Graph is based on the DirectShow framework, which can provide users with great controllability and flexibility. For details, please refer to the ICaptureGraphBuilder2 Interface on MSDN and the use of DirectShow in Windows Mobile 5 to control the camera-turn these two articles. The program running interface is shown in Figure 1 below:

Figure 1: Camera Capture Graph running interface

The interface is relatively simple. My feeling is that the running speed is much faster than the latter Camera Capture, but the resolution of the captured image is relatively low and cannot be set by yourself.

Let’s talk about Camera Capture. It calls SHCameraCapture, which was introduced in windows mobile SDK 5.0. You can refer to the article SHCameraCapture on MSDN and the article on CSDN to call the SHCameraCapture interface on mobile to take pictures . SHCameraCapture can call up the camera to take photos and videos, and set the path for storing pictures or video files. The program running interface is shown in Figure 2 below:

Figure 2: Camera Capture running interface

    This feature is much richer than Camera Capture Graph, providing options for mode, image quality, and Video type, etc. After selecting start, we can see the traditional camera interface, as shown in Figure 3 below:

Figure 3: Camera interface on Windows Mobile

    The photos or videos taken with it are stored in the two directories "My Pictures" and "My Videos" of the device by default. The effect of the photos is shown in Figure 4 below:

Figure 4: Photo effect of Camera Capture

The effect of the video screen is average, maybe it is related to my 1.3 million pixel camera.

    Today, with the Camera Sample on the WM6.0 SDK, I tried to play the camera on the 8125. It feels quite interesting. Let’s play with others next time.

Reference: https://cloud.tencent.com/developer/article/1018255 Windows Mobile Camera Native API-Cloud + Community-Tencent Cloud