Lines Matching refs:mainDemo

598 …and releasing streams. The **mainDemo->InitSensors()** function is used to initialize the **Camera…
604 auto mainDemo = std::make_shared<CameraDemo>();
605 rc = mainDemo->InitSensors(); // Initialize the CameraHost.
607 CAMERA_LOGE("main test: mainDemo->InitSensors() error\n");
611 rc = mainDemo->InitCameraDevice(); // Initialize the CameraDevice.
613 CAMERA_LOGE("main test: mainDemo->InitCameraDevice() error\n");
617 rc = PreviewOn(0, mainDemo); // Configure and enable streams.
623 ManuList(mainDemo, argc, argv); // Print the menu to the console.
728 static RetCode PreviewOn(int mode, const std::shared_ptr<OhosCameraDemo>& mainDemo)
733 rc = mainDemo->StartPreviewStream(); // Configure the preview stream.
740 rc = mainDemo->StartCaptureStream(); // Configure the capture stream.
746 rc = mainDemo->StartVideoStream(); // Configure the video stream.
753 rc = mainDemo->CaptureON(STREAM_ID_PREVIEW, CAPTURE_ID_PREVIEW, CAPTURE_PREVIEW);
755 CAMERA_LOGE("main test: PreviewOn mainDemo->CaptureON() preview error");
883 static void ManuList(const std::shared_ptr<OhosCameraDemo>& mainDemo,
896 FlashLightTest(mainDemo); // Verify the flashlight capability.
900 OfflineTest(mainDemo); // Verify the offline capability.
904 CaptureTest(mainDemo); // Verify the capture capability.
909 mainDemo->SetAwbMode(OHOS_CAMERA_AWB_MODE_INCANDESCENT);
911 mainDemo->SetAwbMode(OHOS_CAMERA_AWB_MODE_OFF);
917 mainDemo->SetAeExpo();
921 mainDemo->SetMetadata();
925 VideoTest(mainDemo);
929 PreviewOff(mainDemo);
930 mainDemo->QuitDemo();