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_IDEFERREDVIDEOPROCESSINGSESSIONCALLBACK_H 17 #define OHOS_CAMERASTANDARD_DEFERREDPROCESSING_IDEFERREDVIDEOPROCESSINGSESSIONCALLBACK_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 IDeferredVideoProcessingSessionCallback : public IRemoteBroker { 30 public: 31 DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.CameraStandard.DeferredProcessing.IDeferredVideoProcessingSessionCallback"); 32 33 virtual ErrCode OnProcessVideoDone( 34 const std::string& videoId, 35 const sptr<IPCFileDescriptor>& fd) = 0; 36 37 virtual ErrCode OnError( 38 const std::string& videoId, 39 int32_t errorCode) = 0; 40 41 virtual ErrCode OnStateChanged( 42 int32_t status) = 0; 43 protected: 44 const int VECTOR_MAX_SIZE = 102400; 45 const int LIST_MAX_SIZE = 102400; 46 const int MAP_MAX_SIZE = 102400; 47 }; 48 } // namespace DeferredProcessing 49 } // namespace CameraStandard 50 } // namespace OHOS 51 #endif // OHOS_CAMERASTANDARD_DEFERREDPROCESSING_IDEFERREDVIDEOPROCESSINGSESSIONCALLBACK_H 52 53