/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @file ioffline_stream_operator.h * * @brief Declares APIs for offline stream operations. * * @since 3.2 * @version 1.0 */ package ohos.hdi.camera.v1_0; import ohos.hdi.camera.v1_0.Types; interface IOfflineStreamOperator { /** * @brief Cancels a capture request. * * @param captureId Indicates the ID of the capture request to cancel. * * @return Returns NO_ERROR if the operation is successful; returns an error code defined * in {@link CamRetCode} otherwise. * * @since 3.2 * @version 1.0 */ CancelCapture([in] int captureId); /** * @brief Releases offline streams. * * @param streamIds Indicates the IDs of the offline streams to release. * * @return Returns NO_ERROR if the operation is successful; returns an error code defined * in {@link CamRetCode} otherwise. * * @since 3.2 * @version 1.0 */ ReleaseStreams([in] int[] streamIds); /** * @brief Releases all offline streams. * * * @return Returns NO_ERROR if the operation is successful; returns an error code defined * in {@link CamRetCode} otherwise. * * @since 3.2 * @version 1.0 */ Release(); }