On the Series 60 Platform, the ccamera class encapsulates camera-related APIs. To use these APIsProgramRequiredA derived class of mcameraobserver (or mcameraobserver2. The relationship between the mcameraobserver class and the ccamera class is the embodiment of the Observer Design Pattern in the Symbian system. Image acquisition can be achieved through the following three methods:
(1) Use ccamera camera captureimage () to start static image capture. After the call is complete, mcameraobserver implements imageready () is called asynchronously. You can access the captured image in this function. This method is generally used to implement the camera function of a mobile phone.
(2) Use ccamera camera startvideocapture () to start video capture. After the video buffer is filled with preset video frames, mcameraobserver implements framebufferready () is called asynchronously. You can access the video buffer in this function. This method is generally used to enable the camera function of a mobile phone.
(3) Use ccamera javasstartviewfinderbitmapsl () to start the transmission of view finder data. After the call is complete, mcameraobserver implements viewfinderframeready () is periodically called. You can access the view finder frame you just obtained in this function ). This method is generally used to enable the viewfinder function during mobile phone photography or video recording.