• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 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 #include "adapter/ohos/osal/pixel_map_ohos.h"
16 
17 namespace OHOS::Ace {
GetWidth() const18 int32_t PixelMapOhos::GetWidth() const
19 {
20     return 0;
21 }
GetHeight() const22 int32_t PixelMapOhos::GetHeight() const
23 {
24     return 0;
25 }
GetPixelsVec(std::vector<uint8_t> & data) const26 bool PixelMapOhos::GetPixelsVec(std::vector<uint8_t>& data) const
27 {
28     return false;
29 }
GetPixels() const30 const uint8_t* PixelMapOhos::GetPixels() const
31 {
32     return nullptr;
33 }
GetPixelFormat() const34 PixelFormat PixelMapOhos::GetPixelFormat() const
35 {
36     return PixelFormat::UNKNOWN;
37 }
GetAlphaType() const38 AlphaType PixelMapOhos::GetAlphaType() const
39 {
40     return AlphaType::IMAGE_ALPHA_TYPE_UNKNOWN;
41 }
GetRowStride() const42 int32_t PixelMapOhos::GetRowStride() const
43 {
44     return 0;
45 }
GetRowBytes() const46 int32_t PixelMapOhos::GetRowBytes() const
47 {
48     return 0;
49 }
GetByteCount() const50 int32_t PixelMapOhos::GetByteCount() const
51 {
52     return 0;
53 }
GetAllocatorType() const54 AllocatorType PixelMapOhos::GetAllocatorType() const
55 {
56     return AllocatorType::DEFAULT;
57 }
IsHdr() const58 bool PixelMapOhos::IsHdr() const
59 {
60     return false;
61 }
GetPixelManager() const62 void* PixelMapOhos::GetPixelManager() const
63 {
64     return nullptr;
65 }
GetRawPixelMapPtr() const66 void* PixelMapOhos::GetRawPixelMapPtr() const
67 {
68     return nullptr;
69 }
GetId()70 std::string PixelMapOhos::GetId()
71 {
72     return "";
73 }
GetModifyId()74 std::string PixelMapOhos::GetModifyId()
75 {
76     return "";
77 }
GetPixelMapSharedPtr()78 std::shared_ptr<Media::PixelMap> PixelMapOhos::GetPixelMapSharedPtr()
79 {
80     return nullptr;
81 }
GetWritablePixels() const82 void* PixelMapOhos::GetWritablePixels() const
83 {
84     return nullptr;
85 }
Scale(float xAxis,float yAxis)86 void PixelMapOhos::Scale(float xAxis, float yAxis)
87 {
88 }
Scale(float xAxis,float yAxis,const AceAntiAliasingOption & option)89 void PixelMapOhos::Scale(float xAxis, float yAxis, const AceAntiAliasingOption &option)
90 {
91 }
SavePixelMapToFile(const std::string & dst) const92 void PixelMapOhos::SavePixelMapToFile(const std::string& dst) const
93 {
94 }
GetCropPixelMap(const Rect & srcRect)95 RefPtr<PixelMap> PixelMapOhos::GetCropPixelMap(const Rect& srcRect)\
96 {
97     return nullptr;
98 }
EncodeTlv(std::vector<uint8_t> & buff)99 bool PixelMapOhos::EncodeTlv(std::vector<uint8_t>& buff)
100 {
101     return false;
102 }
WritePixels(const WritePixelsOptions & opts)103 uint32_t PixelMapOhos::WritePixels(const WritePixelsOptions& opts)
104 {
105     return 0;
106 }
GetInnerColorGamut() const107 uint32_t PixelMapOhos::GetInnerColorGamut() const
108 {
109     return 0;
110 }
SetMemoryName(std::string pixelMapName) const111 void PixelMapOhos::SetMemoryName(std::string pixelMapName) const
112 {
113 }
114 } // namespace OHOS::Ace
115