• 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 "pixel_map_preview.h"
17 
18 #include "base/image/pixel_map.h"
19 #include "base/log/log_wrapper.h"
20 #include "base/utils/utils.h"
21 
22 namespace OHOS::Ace {
CreatePixelMap(void * rawPtr)23 RefPtr<PixelMap> PixelMap::CreatePixelMap(void* rawPtr)
24 {
25     return nullptr;
26 }
27 
CreatePixelMapFromDataAbility(void * uniquePtr)28 RefPtr<PixelMap> PixelMap::CreatePixelMapFromDataAbility(void* uniquePtr)
29 {
30     return nullptr;
31 }
32 
ConvertSkImageToPixmap(const uint32_t * colors,uint32_t colorLength,int32_t width,int32_t height)33 RefPtr<PixelMap> PixelMap::ConvertSkImageToPixmap(
34     const uint32_t* colors, uint32_t colorLength, int32_t width, int32_t height)
35 {
36     return nullptr;
37 }
38 
GetWidth() const39 int32_t PixelMapPreview::GetWidth() const
40 {
41     return -1;
42 }
43 
GetHeight() const44 int32_t PixelMapPreview::GetHeight() const
45 {
46     return -1;
47 }
48 
GetPixels() const49 const uint8_t* PixelMapPreview::GetPixels() const
50 {
51     return nullptr;
52 }
53 
GetPixelFormat() const54 PixelFormat PixelMapPreview::GetPixelFormat() const
55 {
56     return PixelFormat::UNKNOWN;
57 }
58 
GetAlphaType() const59 AlphaType PixelMapPreview::GetAlphaType() const
60 {
61     return AlphaType::IMAGE_ALPHA_TYPE_UNKNOWN;
62 }
63 
GetRowBytes() const64 int32_t PixelMapPreview::GetRowBytes() const
65 {
66     return 0;
67 }
68 
GetByteCount() const69 int32_t PixelMapPreview::GetByteCount() const
70 {
71     return 0;
72 }
73 
GetPixelManager() const74 void* PixelMapPreview::GetPixelManager() const
75 {
76     return nullptr;
77 }
78 
GetRawPixelMapPtr() const79 void* PixelMapPreview::GetRawPixelMapPtr() const
80 {
81     return nullptr;
82 }
83 
GetId()84 std::string PixelMapPreview::GetId()
85 {
86     return "";
87 }
88 
GetModifyId()89 std::string PixelMapPreview::GetModifyId()
90 {
91     return "";
92 }
93 } // namespace OHOS::Ace
94