1 /* 2 * Copyright (c) 2025 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 #ifndef OHOS_CAMERA_DPS_MEDIA_MANAGER_INTERFACE_H 16 #define OHOS_CAMERA_DPS_MEDIA_MANAGER_INTERFACE_H 17 18 #include "refbase.h" 19 #include "surface.h" 20 #include "media_format_info.h" 21 #include <memory> 22 23 namespace OHOS { 24 class IPCFileDescriptor; 25 namespace CameraStandard { 26 namespace DeferredProcessing { 27 class MediaManagerIntf : public RefBase { 28 public: 29 virtual ~MediaManagerIntf() = default; 30 virtual int32_t MpegAcquire(const std::string& requestId, const sptr<IPCFileDescriptor>& inputFd) = 0; 31 virtual int32_t MpegUnInit(const int32_t result) = 0; 32 virtual sptr<IPCFileDescriptor> MpegGetResultFd() = 0; 33 virtual void MpegAddUserMeta(std::unique_ptr<MediaUserInfo> userInfo) = 0; 34 virtual uint64_t MpegGetProcessTimeStamp() = 0; 35 virtual sptr<Surface> MpegGetSurface() = 0; 36 virtual sptr<Surface> MpegGetMakerSurface() = 0; 37 virtual void MpegSetMarkSize(int32_t size) = 0; 38 virtual int32_t MpegRelease() = 0; 39 }; 40 } // namespace DeferredProcessing 41 } // namespace CameraStandard 42 } // namespace OHOS 43 #endif // OHOS_CAMERA_DPS_MEDIA_MANAGER_INTERFACE_H