• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 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 #include "ohos_adapter/bridge/ark_decoder_format_adapter_impl.h"
17 
18 namespace OHOS::ArkWeb {
19 
ArkDecoderFormatAdapterImpl(std::shared_ptr<OHOS::NWeb::DecoderFormatAdapter> ref)20 ArkDecoderFormatAdapterImpl::ArkDecoderFormatAdapterImpl(std::shared_ptr<OHOS::NWeb::DecoderFormatAdapter> ref)
21     : real_(ref)
22 {}
23 
GetWidth()24 int32_t ArkDecoderFormatAdapterImpl::GetWidth()
25 {
26     return real_->GetWidth();
27 }
28 
GetHeight()29 int32_t ArkDecoderFormatAdapterImpl::GetHeight()
30 {
31     return real_->GetHeight();
32 }
33 
GetFrameRate()34 double ArkDecoderFormatAdapterImpl::GetFrameRate()
35 {
36     return real_->GetFrameRate();
37 }
38 
SetWidth(int32_t width)39 void ArkDecoderFormatAdapterImpl::SetWidth(int32_t width)
40 {
41     return real_->SetWidth(width);
42 }
43 
SetHeight(int32_t height)44 void ArkDecoderFormatAdapterImpl::SetHeight(int32_t height)
45 {
46     return real_->SetHeight(height);
47 }
48 
SetFrameRate(double frameRate)49 void ArkDecoderFormatAdapterImpl::SetFrameRate(double frameRate)
50 {
51     return real_->SetFrameRate(frameRate);
52 }
53 
54 } // namespace OHOS::ArkWeb
55