1 /*
2  * Copyright (c) 2023-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 
16 #ifndef OHOS_CAMERASTANDARD_DEFERREDPROCESSING_IDEFERREDVIDEOPROCESSINGSESSION_H
17 #define OHOS_CAMERASTANDARD_DEFERREDPROCESSING_IDEFERREDVIDEOPROCESSINGSESSION_H
18 
19 #include <string_ex.h>
20 #include <cstdint>
21 #include <iremote_broker.h>
22 #include "ipc_file_descriptor.h"
23 
24 using OHOS::IPCFileDescriptor;
25 
26 namespace OHOS {
27 namespace CameraStandard {
28 namespace DeferredProcessing {
29 class IDeferredVideoProcessingSession : public IRemoteBroker {
30 public:
31     DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.CameraStandard.DeferredProcessing.IDeferredVideoProcessingSession");
32 
33     virtual int32_t BeginSynchronize() = 0;
34 
35     virtual int32_t EndSynchronize() = 0;
36 
37     virtual int32_t AddVideo(
38         const std::string& videoId,
39         const sptr<IPCFileDescriptor>& srcFd,
40         const sptr<IPCFileDescriptor>& dstFd) = 0;
41 
42     virtual int32_t RemoveVideo(
43         const std::string& videoId,
44         bool restorable) = 0;
45 
46     virtual int32_t RestoreVideo(
47         const std::string& videoId) = 0;
48 protected:
49     const int VECTOR_MAX_SIZE = 102400;
50     const int LIST_MAX_SIZE = 102400;
51     const int MAP_MAX_SIZE = 102400;
52 };
53 } // namespace DeferredProcessing
54 } // namespace CameraStandard
55 } // namespace OHOS
56 #endif // OHOS_CAMERASTANDARD_DEFERREDPROCESSING_IDEFERREDVIDEOPROCESSINGSESSION_H
57 
58