• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "session/portrait_session.h"
17 #include "camera_util.h"
18 #include "hcapture_session_callback_stub.h"
19 #include "input/camera_input.h"
20 #include "camera_log.h"
21 #include "output/photo_output.h"
22 #include "output/preview_output.h"
23 #include "output/video_output.h"
24 
25 namespace OHOS {
26 namespace CameraStandard {
PortraitSession(sptr<ICaptureSession> & portraitSession)27 PortraitSession::PortraitSession(sptr<ICaptureSession> &portraitSession)
28 {
29     portraitSession_ = portraitSession;
30 }
31 
~PortraitSession()32 PortraitSession::~PortraitSession()
33 {
34 }
35 
getSupportedPortraitEffects()36 std::vector<PortraitEffect> PortraitSession::getSupportedPortraitEffects()
37 {
38     std::vector<PortraitEffect> supportedPortraitEffects(PortraitEffect::OFF_EFFECT);
39     return supportedPortraitEffects;
40 }
41 
getPortraitEffect()42 PortraitEffect PortraitSession::getPortraitEffect()
43 {
44     return PortraitEffect::OFF_EFFECT;
45 }
46 
setPortraitEffect(PortraitEffect effect)47 void PortraitSession::setPortraitEffect(PortraitEffect effect)
48 {
49     return;
50 }
51 } // CameraStandard
52 } // OHOS
53