Home
last modified time | relevance | path

Searched refs:alphaType (Results 1 - 25 of 161) sorted by relevance

1234567

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dcolor_converter_test.cpp47 srcImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
51 dstImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_PREMUL; in HWTEST_F()
73 srcImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
77 dstImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_PREMUL; in HWTEST_F()
110 srcImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
114 dstImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_UNPREMUL; in HWTEST_F()
146 srcImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
150 dstImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
183 srcImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_UNPREMUL; in HWTEST_F()
187 dstImageInfo.alphaType in HWTEST_F()
[all...]
H A Dpixel_convert_test.cpp52 srcImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
56 dstImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_PREMUL; in HWTEST_F()
73 srcImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
77 dstImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_PREMUL; in HWTEST_F()
94 srcImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
98 dstImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_PREMUL; in HWTEST_F()
115 srcImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
119 dstImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_PREMUL; in HWTEST_F()
139 srcImageInfo.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
143 dstImageInfo.alphaType in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dimage_type_converter.cpp30 AlphaType alphaType; member
86 SkAlphaType ImageTypeConverter::ToSkAlphaType(const AlphaType alphaType) in ToSkAlphaType() argument
88 auto res = Find(g_alphaTypePairs, [alphaType](AlphaTypePair iter) { in ToSkAlphaType()
89 return (iter.alphaType == alphaType); in ToSkAlphaType()
107 return res.alphaType; in ToAlphaType()
118 const string ImageTypeConverter::ToName(const AlphaType alphaType) in ToName() argument
120 auto res = Find(g_alphaTypePairs, [alphaType](AlphaTypePair iter) { in ToName()
121 return (iter.alphaType == alphaType); in ToName()
[all...]
/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/
H A Dimage_converter.cpp47 SkAlphaType ImageConverter::AlphaTypeToSkAlphaType(Media::AlphaType alphaType) in AlphaTypeToSkAlphaType() argument
49 switch (alphaType) { in AlphaTypeToSkAlphaType()
68 SkAlphaType alphaType = ImageConverter::AlphaTypeToSkAlphaType(pixelMap->GetAlphaType()); in PixelMapToBitmap() local
69 auto imageInfo = SkImageInfo::Make(pixelMap->GetWidth(), pixelMap->GetHeight(), colorType, alphaType); in PixelMapToBitmap()
106 Rosen::Drawing::AlphaType ImageConverter::AlphaTypeToAlphaType(Media::AlphaType alphaType)
108 switch (alphaType) {
130 Rosen::Drawing::AlphaType alphaType = ImageConverter::AlphaTypeToAlphaType(pixelMap->GetAlphaType());
131 Rosen::Drawing::ImageInfo imageInfo(pixelMap->GetWidth(), pixelMap->GetHeight(), colorType, alphaType);
H A Dimage_converter.h38 static SkAlphaType AlphaTypeToSkAlphaType(Media::AlphaType alphaType);
45 static Rosen::Drawing::AlphaType AlphaTypeToAlphaType(Media::AlphaType alphaType);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/
H A Dimage_info.h35 ImageInfo(int width, int height, ColorType colorType, AlphaType alphaType, in ImageInfo() argument
37 : width_(width), height_(height), colorType_(colorType), alphaType_(alphaType), colorSpace_(colorSpace) {} in ImageInfo()
133 void SetAlphaType(AlphaType alphaType) in SetAlphaType() argument
135 alphaType_ = alphaType; in SetAlphaType()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/imageinfo_fuzzer/
H A Dimageinfo_fuzzer.cpp49 uint32_t alphaType = GetObject<uint32_t>(); in ImageInfoFuzzTest001() local
51 static_cast<AlphaType>(alphaType % ALPHATYPE_SIZE)); in ImageInfoFuzzTest001()
88 uint32_t alphaType = GetObject<uint32_t>(); in ImageInfoFuzzTest003() local
95 imageInfo.SetAlphaType(static_cast<AlphaType>(alphaType % ALPHATYPE_SIZE)); in ImageInfoFuzzTest003()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/bitmap_fuzzer/
H A Dbitmap_fuzzer.cpp63 uint32_t alphaType = GetObject<uint32_t>(); in BitmapFuzzTest002() local
65 static_cast<ColorType>(colorType % COLORTYPE_SIZE), static_cast<AlphaType>(alphaType % ALPHATYPE_SIZE)); in BitmapFuzzTest002()
95 uint32_t alphaType = GetObject<uint32_t>(); in BitmapFuzzTest003() local
97 static_cast<ColorType>(colorType % COLORTYPE_SIZE), static_cast<AlphaType>(alphaType % ALPHATYPE_SIZE)); in BitmapFuzzTest003()
175 uint32_t alphaType = GetObject<uint32_t>(); in BitmapFuzzTest006() local
177 static_cast<ColorType>(colorType % COLORTYPE_SIZE), static_cast<AlphaType>(alphaType % ALPHATYPE_SIZE)); in BitmapFuzzTest006()
197 uint32_t alphaType = GetObject<uint32_t>(); in BitmapFuzzTest007() local
199 static_cast<ColorType>(colorType % COLORTYPE_SIZE), static_cast<AlphaType>(alphaType % ALPHATYPE_SIZE)); in BitmapFuzzTest007()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/
H A Dimage_type_converter.h27 static SkAlphaType ToSkAlphaType(const AlphaType alphaType);
32 static const std::string ToName(const AlphaType alphaType);
/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/
H A Dwebp_encoder.cpp198 AlphaType alphaType = GetAlphaType(pixelMap); in DoTransform() local
199 IMAGE_LOGD("DoTransform, pixelFormat=%{public}u, alphaType=%{public}d, componentsNum=%{public}d", in DoTransform()
200 pixelFormat, alphaType, componentsNum); in DoTransform()
202 if ((pixelFormat == PixelFormat::RGBA_8888) && (alphaType == AlphaType::IMAGE_ALPHA_TYPE_OPAQUE)) { in DoTransform()
204 } else if ((pixelFormat == PixelFormat::RGBA_8888) && (alphaType == AlphaType::IMAGE_ALPHA_TYPE_UNPREMUL)) { in DoTransform()
206 } else if ((pixelFormat == PixelFormat::RGBA_8888) && (alphaType == AlphaType::IMAGE_ALPHA_TYPE_PREMUL)) { in DoTransform()
208 } else if ((pixelFormat == PixelFormat::BGRA_8888) && (alphaType == AlphaType::IMAGE_ALPHA_TYPE_OPAQUE)) { in DoTransform()
210 } else if ((pixelFormat == PixelFormat::BGRA_8888) && (alphaType == AlphaType::IMAGE_ALPHA_TYPE_UNPREMUL)) { in DoTransform()
212 } else if ((pixelFormat == PixelFormat::BGRA_8888) && (alphaType == AlphaType::IMAGE_ALPHA_TYPE_PREMUL)) { in DoTransform()
214 } else if ((pixelFormat == PixelFormat::RGBA_F16) && (alphaType in DoTransform()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkimage_fuzzer/
H A Dndkimage_fuzzer.cpp62 uint32_t alphaType = GetObject<uint32_t>(); in NativeDrawingImageTest() local
65 static_cast<OH_Drawing_AlphaFormat>(alphaType % ALPHAFORMAT_SIZE) }; in NativeDrawingImageTest()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_bitmap.cpp53 static_cast<ColorType>(cImageInfo->colorType), static_cast<AlphaType>(cImageInfo->alphaType)); in OH_Drawing_BitmapCreateFromPixels()
138 cImageInfo->alphaType = static_cast<OH_Drawing_AlphaFormat>(imageInfo.GetAlphaType()); in OH_Drawing_BitmapGetImageInfo()
150 static_cast<ColorType>(dstInfo->colorType), static_cast<AlphaType>(dstInfo->alphaType)); in OH_Drawing_BitmapReadPixels()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/drawsurface_fuzzer/
H A Ddrawsurface_fuzzer.cpp96 uint32_t alphaType = GetObject<uint32_t>(); in SurfaceFuzzTest002() local
98 static_cast<AlphaType>(alphaType % ALPHATYPE_SIZE)); in SurfaceFuzzTest002()
142 uint32_t alphaType = GetObject<uint32_t>(); in SurfaceFuzzTest003() local
144 static_cast<AlphaType>(alphaType % ALPHATYPE_SIZE)); in SurfaceFuzzTest003()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/pixmap_fuzzer/
H A Dpixmap_fuzzer.cpp48 uint32_t alphaType = GetObject<uint32_t>(); in PixmapFuzzTest000() local
55 static_cast<AlphaType>(alphaType % ALPHATYPE_NUM)); in PixmapFuzzTest000()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/render/rspixelmapshader_fuzzer/
H A Drspixelmapshader_fuzzer.cpp66 opts.alphaType = static_cast<Media::AlphaType>(GetData<int32_t>() % 4); // Max Media::AlphaType is 4 in GetPixelMapFromData()
80 Drawing::AlphaType alphaType = in GetPixelMapFromData() local
83 Drawing::ImageInfo(pixelmap->GetWidth(), pixelmap->GetHeight(), colorType, alphaType); in GetPixelMapFromData()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_bitmap.cpp42 SkiaImageInfo::ConvertToSkAlphaType(format.alphaType)); in MakeSkImageInfo()
90 return SkiaImageInfo::ConvertToAlphaType(skiaBitmap_.alphaType()); in GetAlphaType()
251 writer.writeUInt(skiaBitmap_.alphaType()); in Serialize()
292 SkAlphaType alphaType = static_cast<SkAlphaType>(reader.readUInt()); in Deserialize() local
306 SkImageInfo imageInfo = SkImageInfo::Make(width, height, colorType, alphaType, colorSpace); in Deserialize()
H A Dskia_image.cpp252 SkiaImageInfo::ConvertToSkAlphaType(bitmapFormat.alphaType), skColorSpace, deleteFunc, cleanupHelper); in BuildFromTexture()
259 SkiaImageInfo::ConvertToSkAlphaType(bitmapFormat.alphaType), skColorSpace); in BuildFromTexture()
265 SkiaImageInfo::ConvertToSkAlphaType(bitmapFormat.alphaType), skColorSpace); in BuildFromTexture()
301 SkiaImageInfo::ConvertToSkAlphaType(bitmapFormat.alphaType), skColorSpace); in BuildFromSurface()
392 SkiaImageInfo::ConvertToAlphaType(skiaImage_->alphaType()); in GetAlphaType()
601 writer.writeUInt(pixmap.alphaType()); in Serialize()
643 SkAlphaType alphaType = static_cast<SkAlphaType>(reader.readUInt()); in Deserialize() local
657 SkImageInfo imageInfo = SkImageInfo::Make(width, height, colorType, alphaType, colorSpace); in Deserialize()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/
H A Dwebp_encoder_test.cpp160 opts.alphaType = AlphaType::IMAGE_ALPHA_TYPE_UNKNOWN; in HWTEST_F()
188 opts.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
216 opts.alphaType = AlphaType::IMAGE_ALPHA_TYPE_UNPREMUL; in HWTEST_F()
246 opts.alphaType = AlphaType::IMAGE_ALPHA_TYPE_PREMUL; in HWTEST_F()
275 opts.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
303 opts.alphaType = AlphaType::IMAGE_ALPHA_TYPE_PREMUL; in HWTEST_F()
331 opts.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
360 opts.alphaType = AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
388 opts.alphaType = AlphaType::IMAGE_ALPHA_TYPE_UNPREMUL; in HWTEST_F()
416 opts.alphaType in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/frameworks/kits/js/common/pixelmap_ndk/
H A Dpixelmap_native.cpp65 PIXELMAP_ALPHA_TYPE alphaType = PIXELMAP_ALPHA_TYPE::PIXELMAP_ALPHA_TYPE_UNKNOWN; member
74 PIXELMAP_ALPHA_TYPE alphaType = PIXELMAP_ALPHA_TYPE::PIXELMAP_ALPHA_TYPE_UNKNOWN; member
266 int32_t *alphaType) in OH_PixelmapInitializationOptions_GetAlphaType()
268 if (ops == nullptr || alphaType == nullptr) { in OH_PixelmapInitializationOptions_GetAlphaType()
271 *alphaType = static_cast<int32_t>(ops->alphaType); in OH_PixelmapInitializationOptions_GetAlphaType()
277 int32_t alphaType) in OH_PixelmapInitializationOptions_SetAlphaType()
282 ops->alphaType = ParseAlphaType(alphaType); in OH_PixelmapInitializationOptions_SetAlphaType()
373 Image_ErrorCode OH_PixelmapImageInfo_GetAlphaType(OH_Pixelmap_ImageInfo *info, int32_t *alphaType) in OH_PixelmapImageInfo_GetAlphaType() argument
265 OH_PixelmapInitializationOptions_GetAlphaType(OH_Pixelmap_InitializationOptions *ops, int32_t *alphaType) OH_PixelmapInitializationOptions_GetAlphaType() argument
276 OH_PixelmapInitializationOptions_SetAlphaType(OH_Pixelmap_InitializationOptions *ops, int32_t alphaType) OH_PixelmapInitializationOptions_SetAlphaType() argument
[all...]
H A Dimage_pixel_map_ndk.cpp51 args.createOptions.alphaType = info.alphaType; in OH_PixelMap_CreatePixelMap()
70 args.createOptions.alphaType = info.alphaType; in OH_PixelMap_CreatePixelMapWithStride()
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_image_info.h28 TestingImageInfo(int width, int height, ColorType colorType, AlphaType alphaType, in TestingImageInfo() argument
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/
H A Dpixel_map_test.cpp85 AlphaType alphaType, AllocatorType type) in ConstructPixmap()
93 info.alphaType = alphaType; in ConstructPixmap()
116 std::unique_ptr<PixelMap> ConstructPixmap(PixelFormat format, AlphaType alphaType) in ConstructPixmap() argument
124 opts.alphaType = alphaType; in ConstructPixmap()
130 std::unique_ptr<PixelMap> ConstructPixelMap(int32_t width, int32_t height, PixelFormat format, AlphaType alphaType, in ConstructPixelMap() argument
139 info.alphaType = alphaType; in ConstructPixelMap()
210 PixelFormat format, AlphaType alphaType) in InitOption()
84 ConstructPixmap(int32_t width, int32_t height, PixelFormat format, AlphaType alphaType, AllocatorType type) ConstructPixmap() argument
209 InitOption(struct InitializationOptions& opts, const uint32_t width, const uint32_t height, PixelFormat format, AlphaType alphaType) InitOption() argument
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing/test_case/
H A Dtest_common.cpp113 Drawing::AlphaType TestCommon::AlphaTypeToDrawingAlphaType(OHOS::Media::AlphaType alphaType) in AlphaTypeToDrawingAlphaType() argument
115 switch (alphaType) { in AlphaTypeToDrawingAlphaType()
/foundation/multimedia/image_framework/interfaces/kits/native/include/image/
H A Dpixelmap_native.h486 * @brief Get alphaType number for InitializationOtions struct.
489 * @param alphaType the number of image alphaType.
494 int32_t *alphaType);
497 * @brief Set alphaType number for InitializationOtions struct.
500 * @param alphaType the number of image alphaType.
505 int32_t alphaType);
581 Image_ErrorCode OH_PixelmapImageInfo_GetAlphaType(OH_Pixelmap_ImageInfo *info, int32_t *alphaType);
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/
H A Drs_pixel_map_util_test.cpp77 pixelMap->imageInfo_.alphaType = OHOS::Media::AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
80 pixelMap->imageInfo_.alphaType = OHOS::Media::AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in HWTEST_F()
83 pixelMap->imageInfo_.alphaType = OHOS::Media::AlphaType::IMAGE_ALPHA_TYPE_PREMUL; in HWTEST_F()
86 pixelMap->imageInfo_.alphaType = OHOS::Media::AlphaType::IMAGE_ALPHA_TYPE_UNPREMUL; in HWTEST_F()

Completed in 18 milliseconds

1234567