1/* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16export const initCamera:(surfaceId: string, focusMode: number, cameraDeviceIndex: number) => number; 17export const startPhotoOrVideo: (modeFlag: string, videoId: string, photoId: string) => number; 18export const videoOutputStart: () => number; 19export const setZoomRatio: (a: number) => number; 20export const takePicture: () => number; 21export const takePictureWithSettings: (setting: Capture_Setting) => number; 22export const hasFlash: (a: number) => number; 23export const isVideoStabilizationModeSupported: (a: number) => number; 24export const isExposureModeSupported:(a: number) => number; 25export const isMeteringPoint: (a: number, b: number) => number; 26export const isExposureBiasRange: (a: number) => number; 27export const isFocusModeSupported: (a: number) => number; 28export const isFocusPoint: (a: number, b: number) => number; 29export const getVideoFrameWidth: () => number; 30export const getVideoFrameHeight: () => number; 31export const getVideoFrameRate: () => number; 32export const videoOutputStopAndRelease: () => number; 33export const releaseCamera: () => number; 34export const releaseSession: () => number; 35 36 37interface Capture_Setting { 38 quality: number; 39 rotation: number; 40 mirror: boolean; 41 latitude: number; 42 longitude: number; 43 altitude: number; 44}