Home
last modified time | relevance | path

Searched refs:bitmapFormat (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/image/
H A Dimage_test.cpp303 bitmap.Build(10, 10, bitmapFormat);
321 bitmap.Build(15, 15, bitmapFormat);
339 bitmap.Build(10, 10, bitmapFormat);
356 bitmap.Build(15, 15, bitmapFormat);
400 bitmap.Build(15, 15, bitmapFormat);
418 bitmap.Build(15, 15, bitmapFormat);
483 bitmap.Build(15, 15, bitmapFormat);
515 bitmapFormat.colorType = COLORTYPE_RGBA_8888;
519 bitmapFormat.colorType = COLORTYPE_BGRA_8888;
522 bitmapFormat.colorType = COLORTYPE_N32;
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/bitmap/
H A Dbitmap_test.cpp68 EXPECT_TRUE(bitmap->Build(100, 200, bitmapFormat));
71 EXPECT_TRUE(bitmap->Build(100, 200, bitmapFormat));
74 EXPECT_TRUE(bitmap->Build(100, 200, bitmapFormat));
76 bitmapFormat.colorType = COLORTYPE_RGBA_8888;
77 EXPECT_TRUE(bitmap->Build(100, 200, bitmapFormat));
79 bitmapFormat.colorType = COLORTYPE_BGRA_8888;
80 EXPECT_TRUE(bitmap->Build(100, 200, bitmapFormat));
82 bitmapFormat.colorType = COLORTYPE_N32;
83 EXPECT_TRUE(bitmap->Build(100, 200, bitmapFormat));
99 EXPECT_TRUE(bitmap->Build(150, 99, bitmapFormat));
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_bitmap_test.cpp65 OH_Drawing_BitmapBuild(bitmap_, width, height, &bitmapFormat);
70 OH_Drawing_BitmapBuild(nullptr, width, height, &bitmapFormat);
89 OH_Drawing_BitmapBuild(bitmap_, width, height, &bitmapFormat);
105 OH_Drawing_BitmapBuild(bitmap_, width, height, &bitmapFormat);
124 OH_Drawing_BitmapBuild(bitmap_, width, height, &bitmapFormat);
171 OH_Drawing_BitmapBuild(bitmap_, width, height, &bitmapFormat);
193 OH_Drawing_BitmapBuild(bitmap_, width, height, &bitmapFormat);
244 OH_Drawing_BitmapFormat bitmapFormat = {formats[i], alphaFormats[2]}; variable
245 OH_Drawing_BitmapBuild(bitmap, width, height, &bitmapFormat);
284 OH_Drawing_BitmapFormat bitmapFormat = {formats[3], alphaFormats[i]}; variable
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
H A Dsurface_test.cpp79 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
80 bitmap.Build(10, 10, bitmapFormat);
145 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
146 bitmap.Build(10, 10, bitmapFormat);
177 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
178 bitmap.Build(10, 10, bitmapFormat);
210 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
211 bitmap.Build(10, 10, bitmapFormat);
229 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
230 bitmap.Build(10, 10, bitmapFormat);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_bitmap_test.cpp55 BitmapFormat bitmapFormat = { ColorType::COLORTYPE_BGRA_8888, variable
58 ASSERT_TRUE(skiaBitmap.Build(width, height, bitmapFormat, 0));
236 BitmapFormat bitmapFormat = { ColorType::COLORTYPE_BGRA_8888, variable
239 skiaBitmap.Build(width, height, bitmapFormat, 0);
323 BitmapFormat bitmapFormat = { ColorType::COLORTYPE_BGRA_8888, variable
325 skiaBitmap.Build(100, 50, bitmapFormat, 0); // 100:width, 50:height
341 BitmapFormat bitmapFormat = { ColorType::COLORTYPE_BGRA_8888, AlphaType::ALPHATYPE_PREMUL}; variable
343 bool build = skiaBitmap.Build(width, height, bitmapFormat, 0);
392 bool build = skiaBitmap.Build(width, height, bitmapFormat, 0);
412 skiaBitmap.Build(srcWidth, srcHight, bitmapFormat, 0);
[all …]
H A Dskia_image_test.cpp103 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
104 bitmap.Build(100, 100, bitmapFormat);
153 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
155 bitmapFormat, nullptr, nullptr, nullptr);
175 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
193 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
210 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
229 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
230 bitmap.Build(100, 100, bitmapFormat);
325 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
[all …]
H A Dskia_surface_test.cpp56 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
57 bitmap.Build(100, 100, bitmapFormat); // 100: width, height
67 bitmap2.Build(10, 10, bitmapFormat); // 10: width, height
133 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
134 bitmap.Build(10, 10, bitmapFormat); // 10: width, height
252 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
253 bitmap.Build(10, 10, bitmapFormat); // 10: width, height
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_image.cpp221 BitmapFormat bitmapFormat, const std::shared_ptr<ColorSpace>& colorSpace, in BuildFromTexture() argument
250 SkiaImageInfo::ConvertToSkColorType(bitmapFormat.colorType), in BuildFromTexture()
251 …SkiaImageInfo::ConvertToSkAlphaType(bitmapFormat.alphaType), skColorSpace, deleteFunc, cleanupHelp… in BuildFromTexture()
257 SkiaImageInfo::ConvertToSkColorType(bitmapFormat.colorType), in BuildFromTexture()
258 SkiaImageInfo::ConvertToSkAlphaType(bitmapFormat.alphaType), skColorSpace); in BuildFromTexture()
263 …nfo::ConvertToGrSurfaceOrigin(origin), SkiaImageInfo::ConvertToSkColorType(bitmapFormat.colorType), in BuildFromTexture()
264 SkiaImageInfo::ConvertToSkAlphaType(bitmapFormat.alphaType), skColorSpace); in BuildFromTexture()
269 … info.GetFormat(), info.GetWidth(), info.GetHeight(), static_cast<int>(bitmapFormat.colorType)); in BuildFromTexture()
276 BitmapFormat bitmapFormat, const std::shared_ptr<ColorSpace>& colorSpace) in BuildFromSurface() argument
299 …nfo::ConvertToGrSurfaceOrigin(origin), SkiaImageInfo::ConvertToSkColorType(bitmapFormat.colorType), in BuildFromSurface()
[all …]
H A Dskia_image.h60 BitmapFormat bitmapFormat, const std::shared_ptr<ColorSpace>& colorSpace) override;
67 BitmapFormat bitmapFormat, const std::shared_ptr<ColorSpace>& colorSpace,
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkbitmap_fuzzer/
H A Dbitmap_fuzzer.cpp51 OH_Drawing_BitmapFormat bitmapFormat { static_cast<OH_Drawing_ColorFormat>(enum_1 % PATH_FIX), in BitmapFuzzTest000() local
54 OH_Drawing_BitmapBuild(bitmap, width, height, &bitmapFormat); in BitmapFuzzTest000()
119 OH_Drawing_BitmapFormat bitmapFormat {COLOR_FORMAT_RGBA_8888, ALPHA_FORMAT_UNPREMUL}; in BitmapFuzzTest002() local
120 OH_Drawing_BitmapBuild(bitmap, width, height, &bitmapFormat); in BitmapFuzzTest002()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsmarshallinghelper_fuzzer/
H A Drsmarshallinghelper_fuzzer.cpp250 BitmapFormat bitmapFormat = { COLORTYPE_ARGB_4444, ALPHATYPE_OPAQUE }; in DoMarshallingHelper004() local
251 bool ret = bitmap.Build(width, height, bitmapFormat); in DoMarshallingHelper004()
297 BitmapFormat bitmapFormat = { COLORTYPE_ARGB_4444, ALPHATYPE_OPAQUE }; in DoMarshallingHelper006() local
298 bool ret = bitmap.Build(width, height, bitmapFormat); in DoMarshallingHelper006()
327 BitmapFormat bitmapFormat = { COLORTYPE_ARGB_4444, ALPHATYPE_OPAQUE }; in DoMarshallingHelper007() local
328 bool ret = bitmap.Build(width, height, bitmapFormat); in DoMarshallingHelper007()
358 BitmapFormat bitmapFormat = { COLORTYPE_ARGB_4444, ALPHATYPE_OPAQUE }; in DoMarshallingHelper008() local
359 bool ret = bitmap.Build(width, height, bitmapFormat); in DoMarshallingHelper008()
467 BitmapFormat bitmapFormat = { COLORTYPE_ARGB_4444, ALPHATYPE_OPAQUE }; in DoMarshallingHelper012() local
468 bool ret = bitmap.Build(width, height, bitmapFormat); in DoMarshallingHelper012()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/image_fuzzer/
H A Dimage_fuzzer.cpp41 BitmapFormat bitmapFormat = { COLORTYPE_ARGB_4444, ALPHATYPE_OPAQUE }; in BuildImageFuzzTest() local
42 bitmap.Build(width, height, bitmapFormat); in BuildImageFuzzTest()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/
H A Dimage.cpp97 BitmapFormat bitmapFormat, const std::shared_ptr<ColorSpace>& colorSpace) in BuildFromSurface() argument
99 return imageImplPtr->BuildFromSurface(gpuContext, surface, origin, bitmapFormat, colorSpace); in BuildFromSurface()
103 BitmapFormat bitmapFormat, const std::shared_ptr<ColorSpace>& colorSpace, in BuildFromTexture() argument
106 return imageImplPtr->BuildFromTexture(gpuContext, info, origin, bitmapFormat, in BuildFromTexture()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_ui_capture_task_parallel.cpp57 Drawing::TextureOrigin& textureOrigin, Drawing::BitmapFormat& bitmapFormat) in DrawCapturedImg() argument
66 textureOrigin, bitmapFormat, nullptr); in DrawCapturedImg()
337 Drawing::BitmapFormat bitmapFormat = in CreateSurfaceSyncCopyTask()
361 DrawCapturedImg(*tmpImg, *surface, backendTexture, textureOrigin, bitmapFormat); in CreateSurfaceSyncCopyTask()
368 textureOrigin, bitmapFormat, nullptr); in CreateSurfaceSyncCopyTask()
H A Drs_surface_capture_task_parallel.cpp51 Drawing::TextureOrigin& textureOrigin, Drawing::BitmapFormat& bitmapFormat) in DrawCapturedImg() argument
61 textureOrigin, bitmapFormat, colorSpace); in DrawCapturedImg()
440 Drawing::BitmapFormat bitmapFormat = in CreateSurfaceSyncCopyTask()
462 DrawCapturedImg(*tmpImg, *surface, backendTexture, textureOrigin, bitmapFormat); in CreateSurfaceSyncCopyTask()
469 textureOrigin, bitmapFormat, colorSpace); in CreateSurfaceSyncCopyTask()
H A Drs_base_render_engine.cpp220 auto bitmapFormat = RSBaseRenderUtil::GenerateDrawingBitmapFormat(buffer); in CreateEglImageFromBuffer() local
247 surfaceOrigin, bitmapFormat, drawingColorSpace)) { in CreateEglImageFromBuffer()
257 surfaceOrigin, bitmapFormat, drawingColorSpace)) { in CreateEglImageFromBuffer()
752 auto bitmapFormat = RSBaseRenderUtil::GenerateDrawingBitmapFormat(params.buffer); in DrawImage() local
765 surfaceOrigin, bitmapFormat, drawingColorSpace, in DrawImage()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/
H A Dbitmap_test.cpp61 OH_Drawing_BitmapFormat bitmapFormat { fCT, fAT }; in OnTestPerformance() local
62 OH_Drawing_BitmapBuild(cBitmap, width, height, &bitmapFormat); in OnTestPerformance()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Dimage_impl.h69 BitmapFormat bitmapFormat, const std::shared_ptr<ColorSpace>& colorSpace,
72 BitmapFormat bitmapFormat, const std::shared_ptr<ColorSpace>& colorSpace) = 0;
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/shadereffect_fuzzer/
H A Dshader_effect_fuzzer.cpp111 BitmapFormat bitmapFormat = { COLORTYPE_ARGB_4444, ALPHATYPE_OPAQUE }; in ShaderEffectFuzzTest003() local
112 bool ret = bitmap.Build(width, height, bitmapFormat); in ShaderEffectFuzzTest003()
241 BitmapFormat bitmapFormat = { COLORTYPE_ARGB_4444, ALPHATYPE_OPAQUE }; in ShaderEffectFuzzTest005() local
242 bool ret = bitmap.Build(width, height, bitmapFormat); in ShaderEffectFuzzTest005()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_draw_cmd.cpp317 Drawing::BitmapFormat bitmapFormat = { in GetDrawingImageFromSurfaceBuffer() local
331 surfaceOrigin, bitmapFormat, in GetDrawingImageFromSurfaceBuffer()
386 Drawing::BitmapFormat bitmapFormat = { colorType, Drawing::AlphaType::ALPHATYPE_PREMUL }; in MakeFromTextureForVK() local
388 Drawing::TextureOrigin::TOP_LEFT, bitmapFormat, colorSpace, in MakeFromTextureForVK()
990 …Drawing::BitmapFormat bitmapFormat = CreateBitmapFormat(surfaceBufferInfo_.surfaceBuffer_->GetForm… in DrawWithVulkan() local
994 Drawing::TextureOrigin::TOP_LEFT, bitmapFormat, nullptr, NativeBufferUtils::DeleteVkImage, in DrawWithVulkan()
1019 …Drawing::BitmapFormat bitmapFormat = CreateBitmapFormat(surfaceBufferInfo_.surfaceBuffer_->GetForm… in DrawWithGles() local
1026 externalTextureInfo.SetFormat(GetGLTextureFormatByBitmapFormat(bitmapFormat.colorType)); in DrawWithGles()
1038 surfaceOrigin, bitmapFormat, nullptr)) { in DrawWithGles()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/pointer_render/
H A Drs_pointer_render_manager.cpp403 … Drawing::BitmapFormat bitmapFormat = RSBaseRenderUtil::GenerateDrawingBitmapFormat(param.buffer); in GetIntersectImageFromVK() local
407 Drawing::TextureOrigin::TOP_LEFT, bitmapFormat, nullptr, in GetIntersectImageFromVK()
434 … Drawing::BitmapFormat bitmapFormat = RSBaseRenderUtil::GenerateDrawingBitmapFormat(param.buffer); in GetIntersectImageFromGL() local
452 Drawing::TextureOrigin::TOP_LEFT, bitmapFormat, nullptr)) { in GetIntersectImageFromGL()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/drawsurface_fuzzer/
H A Ddrawsurface_fuzzer.cpp50 BitmapFormat bitmapFormat = { COLORTYPE_ARGB_4444, ALPHATYPE_OPAQUE }; in SurfaceFuzzTest001() local
51 bool buildBitmap = bitmap.Build(width, height, bitmapFormat); in SurfaceFuzzTest001()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/
H A Dimage.h302 BitmapFormat bitmapFormat, const std::shared_ptr<ColorSpace>& colorSpace,
316 BitmapFormat bitmapFormat, const std::shared_ptr<ColorSpace>& colorSpace);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/bitmap_fuzzer/
H A Dbitmap_fuzzer.cpp44 BitmapFormat bitmapFormat = { COLORTYPE_ARGB_4444, ALPHATYPE_OPAQUE }; in BitmapFuzzTest001() local
45 bitmap.Build(width, height, bitmapFormat); in BitmapFuzzTest001()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/recording/
H A Drecording_canvas_test.cpp642 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
643 bitmap.Build(CANAS_WIDTH, CANAS_WIDTH, bitmapFormat);
684 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
685 bitmap.Build(CANAS_HEIGHT, CANAS_HEIGHT, bitmapFormat);
729 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
730 bitmap.Build(CANAS_HEIGHT, CANAS_HEIGHT, bitmapFormat);
775 BitmapFormat bitmapFormat { COLORTYPE_RGBA_8888, ALPHATYPE_OPAQUE }; variable
776 bitmap.Build(CANAS_WIDTH, CANAS_WIDTH, bitmapFormat);

12