Home
last modified time | relevance | path

Searched refs:Bitmap (Results 1 - 25 of 156) sorted by relevance

1234567

/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/
H A Dbitmap.cpp23 Bitmap::Bitmap() in Bitmap() function in OHOS::Rosen::Drawing::Bitmap
27 Bitmap::~Bitmap() {} in ~Bitmap()
29 bool Bitmap::Build(int32_t width, int32_t height, const BitmapFormat& format, int32_t stride) in Build()
34 bool Bitmap::Build(const ImageInfo& imageInfo, int32_t stride) in Build()
39 int Bitmap::GetWidth() const in GetWidth()
44 int Bitmap::GetHeight() const in GetHeight()
49 int Bitmap::GetRowBytes() const in GetRowBytes()
54 ColorType Bitmap
[all...]
H A Dimage.cpp52 bool Image::BuildFromBitmap(const Bitmap& bitmap) in BuildFromBitmap()
75 bool Image::BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap) in BuildFromBitmap()
121 bool Image::AsLegacyBitmap(Bitmap& bitmap) const in AsLegacyBitmap()
161 bool Image::ReadPixels(Bitmap& bitmap, int x, int y) in ReadPixels()
182 bool Image::ScalePixels(const Bitmap& bitmap, const SamplingOptions& sampling, bool allowCachingHint) const in ScalePixels()
197 bool Image::GetROPixels(Bitmap& bitmap) const in GetROPixels()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/bitmap/
H A Dbitmap_test.cpp50 // The best way to create Bitmap. in HWTEST_F()
51 std::unique_ptr<Bitmap> bitmap = std::make_unique<Bitmap>(); in HWTEST_F()
64 // The best way to Build Bitmap. in HWTEST_F()
65 std::unique_ptr<Bitmap> bitmap = std::make_unique<Bitmap>(); in HWTEST_F()
95 // The best way to Build Bitmap. in HWTEST_F()
96 std::unique_ptr<Bitmap> bitmap = std::make_unique<Bitmap>(); in HWTEST_F()
117 // The best way to Build Bitmap in HWTEST_F()
[all...]
/foundation/arkui/ui_lite/frameworks/font/
H A Dui_font_cache.cpp29 allocator_.SetMinChunkSize(FONT_CACHE_MIN_SIZE + sizeof(Bitmap)); in UIFontCache()
42 void UIFontCache::UpdateLru(Bitmap* bitmap) in UpdateLru()
51 Bitmap* bitmap = nullptr; in GetSpace()
53 uint32_t allocSize = sizeof(Bitmap) + size; in GetSpace()
55 bitmap = reinterpret_cast<Bitmap*>(allocator_.Allocate(allocSize)); in GetSpace()
61 Bitmap* toFree = reinterpret_cast<struct Bitmap *>(reinterpret_cast<uint8_t *>(lruList_.prev) - in GetSpace()
62 offsetof(struct Bitmap, lruHead)); in GetSpace()
88 Bitmap* bitmap = reinterpret_cast<Bitmap*>(add in PutSpace()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_bitmap.cpp27 static Bitmap* CastToBitmap(OH_Drawing_Bitmap* cBitmap) in CastToBitmap()
29 return reinterpret_cast<Bitmap*>(cBitmap); in CastToBitmap()
34 return (OH_Drawing_Bitmap*)new Bitmap; in OH_Drawing_BitmapCreate()
55 Bitmap* bitmap = new Bitmap; in OH_Drawing_BitmapCreateFromPixels()
67 Bitmap* bitmap = CastToBitmap(cBitmap); in OH_Drawing_BitmapBuild()
80 Bitmap* bitmap = CastToBitmap(cBitmap); in OH_Drawing_BitmapGetWidth()
90 Bitmap* bitmap = CastToBitmap(cBitmap); in OH_Drawing_BitmapGetHeight()
100 Bitmap* bitmap = CastToBitmap(cBitmap); in OH_Drawing_BitmapGetColorFormat()
110 Bitmap* bitma in OH_Drawing_BitmapGetAlphaFormat()
[all...]
H A Ddrawing_image.cpp32 static Bitmap& CastToBitmap(OH_Drawing_Bitmap& cBitmap) in CastToBitmap()
34 return reinterpret_cast<Bitmap&>(cBitmap); in CastToBitmap()
/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/
H A Dbitmap_manager.h38 class Bitmap { class
40 Bitmap();
42 explicit Bitmap(uint32_t n);
44 Bitmap(const Bitmap &other);
46 ~Bitmap() = default;
76 void And(const Bitmap &other);
83 void Or(const Bitmap &other);
85 bool operator == (const Bitmap &other) const;
87 Bitmap
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbitmap_manager.cpp36 Bitmap::Bitmap() in Bitmap() function in OHOS::NetManagerStandard::Bitmap
41 Bitmap::Bitmap(uint32_t n) in Bitmap() function in OHOS::NetManagerStandard::Bitmap
47 Bitmap::Bitmap(const Bitmap &other) in Bitmap() function in OHOS::NetManagerStandard::Bitmap
52 void Bitmap::Clear() in Clear()
59 void Bitmap::Set(uint32_t n) in Set()
68 uint64_t Bitmap
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/
H A Dbitmap.h30 class DRAWING_API Bitmap { class
32 Bitmap();
33 virtual ~Bitmap();
38 * @brief Gets the width of Bitmap.
43 * @brief Gets the height of Bitmap.
55 bool ExtractSubset(Bitmap& dst, const Rect& subset) const;
58 * @brief Copies a Rect of pixels from Bitmap to dstPixels. Copy starts at (srcX, srcY),
59 * and does not exceed Bitmap (GetWidth(), GetHeight()).
69 * Returns false if abs(srcX) >= Bitmap GetWidth(), or if abs(srcY) >= Bitmap GetHeigh
[all...]
H A Dimage.h238 bool BuildFromBitmap(const Bitmap& bitmap);
270 * @brief Create Image from Bitmap. Image is uploaded to GPU back-end using context.
275 bool BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap);
340 * @brief Creates raster Bitmap with same pixels as Image.
342 bool AsLegacyBitmap(Bitmap& bitmap) const;
387 * @brief Copies a Rect of pixels from Image to Bitmap.
388 * @param bitmap Destination Bitmap.
391 * @return True of pixels are copied to Bitmap.
393 bool ReadPixels(Bitmap& bitmap, int x, int y);
407 bool ScalePixels(const Bitmap
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Dimage_impl.h61 virtual bool BuildFromBitmap(const Bitmap& bitmap) = 0;
63 virtual bool BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap) = 0;
76 virtual bool AsLegacyBitmap(Bitmap& bitmap) const = 0;
84 virtual bool ReadPixels(Bitmap& bitmap, int x, int y) = 0;
89 virtual bool ScalePixels(const Bitmap& bitmap, const SamplingOptions& sampling,
93 virtual bool GetROPixels(Bitmap& bitmap) const = 0;
H A Dbitmap_impl.h29 class Bitmap;
44 virtual bool ExtractSubset(Bitmap& dst, const Rect& subset) const = 0;
49 virtual void CopyPixels(Bitmap& dst, int srcLeft, int srcTop) const = 0;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_image.h56 bool BuildFromBitmap(const Bitmap& bitmap) override;
61 bool BuildFromBitmap(GPUContext& gpuContext, const Bitmap& bitmap) override;
74 bool AsLegacyBitmap(Bitmap& bitmap) const override;
82 bool ReadPixels(Bitmap& bitmap, int x, int y) override;
88 bool ScalePixels(const Bitmap& bitmap, const SamplingOptions& sampling,
92 bool GetROPixels(Bitmap& bitmap) const override;
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/round_corner_display/
H A Drs_round_corner_display.h148 Drawing::Bitmap bitmapTopPortrait_;
149 Drawing::Bitmap bitmapTopLadsOrit_;
150 Drawing::Bitmap bitmapTopHidden_;
151 Drawing::Bitmap bitmapBottomPortrait_;
189 static bool DecodeBitmap(std::shared_ptr<Drawing::Image> image, Drawing::Bitmap &bitmap);
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/bitmap_fuzzer/
H A Dbitmap_fuzzer.cpp41 Bitmap bitmap; in BitmapFuzzTest001()
59 Bitmap bitmap; in BitmapFuzzTest002()
71 Bitmap dst; in BitmapFuzzTest002()
91 Bitmap bitmap; in BitmapFuzzTest003()
121 Bitmap bitmap; in BitmapFuzzTest004()
146 Bitmap bitmap; in BitmapFuzzTest005()
147 Bitmap dst; in BitmapFuzzTest005()
168 Bitmap bitmap; in BitmapFuzzTest006()
193 Bitmap bitmap; in BitmapFuzzTest007()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_image_test.cpp54 Bitmap bitmap; in HWTEST_F()
102 Bitmap bitmap; in HWTEST_F()
130 std::unique_ptr<Bitmap> bitmap = std::make_unique<Bitmap>(); in HWTEST_F()
225 Bitmap bitmap; in HWTEST_F()
251 Bitmap bitmap; in HWTEST_F()
270 Bitmap bitmap; in HWTEST_F()
322 Bitmap bitmap; in HWTEST_F()
339 Bitmap bitmap2; in HWTEST_F()
343 Bitmap bitmap in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/test/frame_analyzer/unittest/
H A Dframe_painter_test.cpp65 Drawing::Bitmap bitmap; in HWTEST_F()
83 Drawing::Bitmap bitmap; in HWTEST_F()
101 Drawing::Bitmap bitmap; in HWTEST_F()
119 Drawing::Bitmap bitmap; in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
H A Dsurface_test.cpp64 Bitmap bitmap; in HWTEST_F()
78 Bitmap bitmap; in HWTEST_F()
144 Bitmap bitmap; in HWTEST_F()
176 Bitmap bitmap; in HWTEST_F()
209 Bitmap bitmap; in HWTEST_F()
228 Bitmap bitmap; in HWTEST_F()
/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/
H A Ddrawable_descriptor.h178 bool GetLayeredIconParm(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground,
179 std::shared_ptr<Rosen::Drawing::Bitmap>& background, std::shared_ptr<Rosen::Drawing::Bitmap>& mask);
181 void CompositeIconNotAdaptive(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground,
182 std::shared_ptr<Rosen::Drawing::Bitmap>& background, std::shared_ptr<Rosen::Drawing::Bitmap>& mask);
183 bool CompositeIconAdaptive(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground,
184 std::shared_ptr<Rosen::Drawing::Bitmap>& background, std::shared_ptr<Rosen::Drawing::Bitmap>& mask);
186 void TransformToPixelMap(const Rosen::Drawing::Bitmap
[all...]
H A Ddrawable_descriptor.cpp430 const std::shared_ptr<Rosen::Drawing::Bitmap>& bitMap, float width, float height, Rosen::Drawing::Canvas& canvas) in DrawOntoCanvas()
441 bool LayeredDrawableDescriptor::GetLayeredIconParm(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground, in GetLayeredIconParm()
442 std::shared_ptr<Rosen::Drawing::Bitmap>& background, std::shared_ptr<Rosen::Drawing::Bitmap>& mask) in GetLayeredIconParm()
466 const Rosen::Drawing::Bitmap& bitmap, const Rosen::Drawing::ImageInfo& imageInfo) in TransformToPixelMap()
475 layeredPixelMap_ = ImageConverter::BitmapToPixelMap(std::make_shared<Rosen::Drawing::Bitmap>(bitmap), opts); in TransformToPixelMap()
492 bool LayeredDrawableDescriptor::CompositeIconAdaptive(std::shared_ptr<Rosen::Drawing::Bitmap>& foreground, in CompositeIconAdaptive()
493 std::shared_ptr<Rosen::Drawing::Bitmap>& background, std::shared_ptr<Rosen::Drawing::Bitmap>& mask) in CompositeIconAdaptive()
503 Rosen::Drawing::Bitmap tempCach in CompositeIconAdaptive()
[all...]
H A Dimage_converter.h46 static std::shared_ptr<Rosen::Drawing::Bitmap> PixelMapToBitmap(
49 const std::shared_ptr<Rosen::Drawing::Bitmap>& bitMap, Media::InitializationOptions& opts);
H A Dimage_converter.cpp121 std::shared_ptr<Rosen::Drawing::Bitmap> ImageConverter::PixelMapToBitmap(
128 Rosen::Drawing::Bitmap bitmap;
134 return std::make_shared<Rosen::Drawing::Bitmap>(bitmap);
138 const std::shared_ptr<Rosen::Drawing::Bitmap>& bitMap, Media::InitializationOptions& opts)
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_base_render_util.h147 GraphicColorGamut dstGamut, Drawing::Bitmap& bitmap, const std::vector<GraphicHDRMetaData>& metaDatas = {});
182 static bool WriteCacheImageRenderNodeToPng(std::shared_ptr<Drawing::Bitmap> bitmap, std::string debugInfo);
190 Drawing::Bitmap& bitmap);
192 Drawing::Bitmap& bitmap, GraphicColorGamut srcGamut, GraphicColorGamut dstGamut,
194 static bool CreateBitmap(sptr<OHOS::SurfaceBuffer> buffer, Drawing::Bitmap& bitmap);
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/image_fuzzer/
H A Dimage_fuzzer.cpp50 Bitmap bitmap; in BuildImageFuzzTest()
74 Bitmap bitmap; in ImageFuzzTest001()
106 Bitmap bitmap; in ImageFuzzTest002()
190 Bitmap bitmap; in ImageFuzzTest005()
219 Bitmap bitmap; in ImageFuzzTest006()
347 Bitmap bitmap; in ImageFuzzTest010()
379 Bitmap bitmap; in ImageFuzzTest011()
402 Bitmap bitmap; in ImageFuzzTest012()
442 Bitmap bitmap; in ImageFuzzTest013()
480 Bitmap bitma in ImageFuzzTest014()
[all...]
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_netfirewall_test/
H A Dnetsys_netfirewall_test.cpp170 Bitmap a(1); in HWTEST_F()
171 Bitmap b(a); in HWTEST_F()
186 Bitmap val(10); in HWTEST_F()
187 Bitmap other(20); in HWTEST_F()

Completed in 17 milliseconds

1234567