1/*
2 * Copyright (c) 2022 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
16/**
17 * @file ioffline_stream_operator.h
18 *
19 * @brief Declares APIs for offline stream operations.
20 *
21 * @since 3.2
22 * @version 1.0
23 */
24
25package ohos.hdi.camera.v1_0;
26
27import ohos.hdi.camera.v1_0.Types;
28
29interface IOfflineStreamOperator {
30    /**
31     * @brief Cancels a capture request.
32     *
33     * @param captureId Indicates the ID of the capture request to cancel.
34     *
35     * @return Returns <b>NO_ERROR</b> if the operation is successful; returns an error code defined
36     * in {@link CamRetCode} otherwise.
37     *
38     * @since 3.2
39     * @version 1.0
40     */
41    CancelCapture([in] int captureId);
42
43    /**
44     * @brief Releases offline streams.
45     *
46     * @param streamIds Indicates the IDs of the offline streams to release.
47     *
48     * @return Returns <b>NO_ERROR</b> if the operation is successful; returns an error code defined
49     * in {@link CamRetCode} otherwise.
50     *
51     * @since 3.2
52     * @version 1.0
53     */
54    ReleaseStreams([in] int[] streamIds);
55
56    /**
57     * @brief Releases all offline streams.
58     *
59     *
60     * @return Returns <b>NO_ERROR</b> if the operation is successful; returns an error code defined
61     * in {@link CamRetCode} otherwise.
62     *
63     * @since 3.2
64     * @version 1.0
65     */
66    Release();
67}
68