1 /* 2 * Copyright (c) 2021-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 #ifndef OHOS_CAMERA_HCAPTURE_SESSION_STUB_H 17 #define OHOS_CAMERA_HCAPTURE_SESSION_STUB_H 18 19 #include "camera_photo_proxy.h" 20 #include "icamera_ipc_checker.h" 21 #include "icapture_session.h" 22 #include "iremote_stub.h" 23 #include "istream_capture.h" 24 #include "istream_depth_data.h" 25 #include "istream_metadata.h" 26 #include "istream_repeat.h" 27 namespace OHOS { 28 namespace CameraStandard { 29 class HCaptureSessionStub : public IRemoteStub<ICaptureSession>, public ICameraIpcChecker { 30 public: 31 int OnRemoteRequest(uint32_t code, MessageParcel& data, MessageParcel& reply, MessageOption& option) override; 32 33 private: 34 int32_t HandleCanAddInput(MessageParcel& data, MessageParcel& reply); 35 int32_t HandleAddInput(MessageParcel& data); 36 int32_t HandleAddOutput(MessageParcel& data); 37 int32_t HandleRemoveInput(MessageParcel& data); 38 int32_t HandleRemoveOutput(MessageParcel& data); 39 int32_t HandleSaveRestoreParam(MessageParcel& data); 40 int32_t HandleSetCallback(MessageParcel& data); 41 int32_t HandleGetSessionState(MessageParcel& reply); 42 int32_t HandleGetActiveColorSpace(MessageParcel& reply); 43 int32_t HandleSetColorSpace(MessageParcel& data); 44 int32_t HandleSetSmoothZoom(MessageParcel& data, MessageParcel& reply); 45 int32_t HandleSetFeatureMode(MessageParcel& data); 46 int32_t HandleEnableMovingPhoto(MessageParcel& data); 47 int32_t HandleStartMovingPhotoCapture(MessageParcel& data); 48 int32_t HandleCreateMediaLibrary(MessageParcel& data, MessageParcel &reply); 49 int32_t HandleCreateMediaLibraryForPicture(MessageParcel& data, MessageParcel &reply); 50 }; 51 } // namespace CameraStandard 52 } // namespace OHOS 53 #endif // OHOS_CAMERA_HCAPTURE_SESSION_STUB_H 54