• 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 
GetFromDrawable(void * ptr)28 RefPtr<PixelMap> PixelMap::GetFromDrawable(void* ptr)
29 {
30     return nullptr;
31 }
32 
CreatePixelMapFromDataAbility(void * uniquePtr)33 RefPtr<PixelMap> PixelMap::CreatePixelMapFromDataAbility(void* uniquePtr)
34 {
35     return nullptr;
36 }
37 
ConvertSkImageToPixmap(const uint32_t * colors,uint32_t colorLength,int32_t width,int32_t height)38 RefPtr<PixelMap> PixelMap::ConvertSkImageToPixmap(
39     const uint32_t* colors, uint32_t colorLength, int32_t width, int32_t height)
40 {
41     return nullptr;
42 }
43 
GetWidth() const44 int32_t PixelMapPreview::GetWidth() const
45 {
46     return -1;
47 }
48 
GetHeight() const49 int32_t PixelMapPreview::GetHeight() const
50 {
51     return -1;
52 }
53 
GetPixels() const54 const uint8_t* PixelMapPreview::GetPixels() const
55 {
56     return nullptr;
57 }
58 
GetPixelFormat() const59 PixelFormat PixelMapPreview::GetPixelFormat() const
60 {
61     return PixelFormat::UNKNOWN;
62 }
63 
GetAlphaType() const64 AlphaType PixelMapPreview::GetAlphaType() const
65 {
66     return AlphaType::IMAGE_ALPHA_TYPE_UNKNOWN;
67 }
68 
GetRowStride() const69 int32_t PixelMapPreview::GetRowStride() const
70 {
71     return 0;
72 }
73 
GetRowBytes() const74 int32_t PixelMapPreview::GetRowBytes() const
75 {
76     return 0;
77 }
78 
GetByteCount() const79 int32_t PixelMapPreview::GetByteCount() const
80 {
81     return 0;
82 }
83 
GetPixelManager() const84 void* PixelMapPreview::GetPixelManager() const
85 {
86     return nullptr;
87 }
88 
GetRawPixelMapPtr() const89 void* PixelMapPreview::GetRawPixelMapPtr() const
90 {
91     return nullptr;
92 }
93 
GetId()94 std::string PixelMapPreview::GetId()
95 {
96     return "";
97 }
98 
GetModifyId()99 std::string PixelMapPreview::GetModifyId()
100 {
101     return "";
102 }
103 
Scale(float xAxis,float yAxis)104 void PixelMapPreview::Scale(float xAxis, float yAxis) {}
105 
Scale(float xAxis,float yAxis,const AceAntiAliasingOption & option)106 void PixelMapPreview::Scale(float xAxis, float yAxis, const AceAntiAliasingOption &option) {}
107 
108 } // namespace OHOS::Ace
109