• 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 "image_source_preview.h"
17 
18 #include "frameworks/base/image/image_source.h"
19 namespace OHOS::Ace {
Create(int32_t)20 RefPtr<ImageSource> ImageSource::Create(int32_t /* fd */)
21 {
22     return nullptr;
23 }
24 
Create(const uint8_t * data,uint32_t size)25 RefPtr<ImageSource> ImageSource::Create(const uint8_t* data, uint32_t size)
26 {
27     return nullptr;
28 }
29 
GetProperty(const std::string &)30 std::string ImageSourcePreview::GetProperty(const std::string& /* key */)
31 {
32     return "";
33 }
34 
CreatePixelMap(const Size & size)35 RefPtr<PixelMap> ImageSourcePreview::CreatePixelMap(const Size& size)
36 {
37     return nullptr;
38 }
39 
CreatePixelMap(uint32_t index,const Size & size)40 RefPtr<PixelMap> ImageSourcePreview::CreatePixelMap(uint32_t index, const Size& size)
41 {
42     return nullptr;
43 }
44 
GetImageSize()45 ImageSource::Size ImageSourcePreview::GetImageSize()
46 {
47     return {};
48 }
49 } // namespace OHOS::Ace
50