import { FlashMode, Scene } from '@normalized:N&&&harmonyCameraLib/src/main/ets/TypeDefine&1.2.1'; import camera from "@ohos:multimedia.camera"; export function convertSysFlashMode(z15) { if (z15 == FlashMode.AUTO) { return camera.FlashMode.FLASH_MODE_AUTO; } if (z15 == FlashMode.OPEN) { return camera.FlashMode.FLASH_MODE_OPEN; } if (z15 == FlashMode.CLOSE) { return camera.FlashMode.FLASH_MODE_CLOSE; } return camera.FlashMode.FLASH_MODE_ALWAYS_OPEN; } export function convertSceneType(y15) { if (y15 == Scene.PHOTO) { return camera.SceneMode.NORMAL_PHOTO; } return camera.SceneMode.NORMAL_VIDEO; } 