Home
last modified time | relevance | path

Searched refs:pixel (Results 1 - 25 of 33) sorted by relevance

12

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/render/
H A Drs_image_cache_test.cpp160 auto pixel = std::make_shared<Media::PixelMap>(); in HWTEST_F() local
161 instance.CachePixelMap(uniqueId, pixel); in HWTEST_F()
162 pixelMap[uniqueId] = pixel; in HWTEST_F()
181 auto pixel = std::make_shared<Media::PixelMap>(); in HWTEST_F() local
182 instance.CachePixelMap(ADDED_ID, pixel); in HWTEST_F()
183 EXPECT_EQ(instance.GetPixelMapCache(ADDED_ID), pixel); in HWTEST_F()
201 auto pixel = std::make_shared<Media::PixelMap>(); in HWTEST_F() local
202 instance.CachePixelMap(ADDED_ID, pixel); in HWTEST_F()
250 auto pixel = std::make_shared<Media::PixelMap>(); in HWTEST_F() local
254 instance.CachePixelMap(ADDED_ID, pixel); in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/samples/composer/
H A Dlayer_context.cpp272 uint32_t *pixel = static_cast<uint32_t *>(image); in DrawExtraColor() local
276 *pixel++ = 0xffff1111; in DrawExtraColor()
278 *pixel++ = color_; in DrawExtraColor()
295 uint32_t *pixel = static_cast<uint32_t *>(image); in DrawBaseColor() local
298 *pixel++ = value; in DrawBaseColor()
310 // Convert pixel from RBGA formate to YUV formate with the formula: in ConvertRBGA2YUV()
321 uint8_t *pixel = static_cast<uint8_t *>(image); in DrawYUVColor() local
325 *pixel++ = pixelValueYUV.y; in DrawYUVColor()
329 *pixel++ = pixelValueYUV.u; in DrawYUVColor()
331 *pixel in DrawYUVColor()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/
H A Dbitmaprect.cpp45 void *pixel = OH_Drawing_BitmapGetPixels(bm); in make_big_bitmap() local
46 uint32_t *ptr = (uint32_t *)pixel; in make_big_bitmap()
52 ptr = (uint32_t *)pixel + (uint32_t)y * gYSize + (x); in make_big_bitmap()
56 ptr = (uint32_t *)pixel + (uint32_t)y * gYSize + (x); in make_big_bitmap()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/
H A Dtest_common.cpp130 void* pixel = OH_Drawing_BitmapGetPixels(bitmap); in DrawBitmapGetAddr8() local
131 uint8_t* ptr = (uint8_t*)pixel + (size_t)y*W +x; in DrawBitmapGetAddr8()
139 void* pixel = OH_Drawing_BitmapGetPixels(bitmap); in DrawBitmapGetAddr16() local
140 uint16_t* ptr = (uint16_t*)pixel + (uint16_t)(y*W) +(x); in DrawBitmapGetAddr16()
148 void* pixel = OH_Drawing_BitmapGetPixels(bitmap); in DrawBitmapGetAddr32() local
149 uint32_t* ptr = (uint32_t*)pixel + (uint32_t)(y*W) +(x); in DrawBitmapGetAddr32()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_maskcolor_shader_filter.cpp46 uint32_t pixel[1] = { 0 }; in CalcAverageColor() local
51 single_pixel.SetPixels(pixel); in CalcAverageColor()
58 return SkColor4f::FromBytes_RGBA(pixel[0]).toSkColor(); in CalcAverageColor()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing/test_case/
H A Dtest_base.cpp52 void* pixel = const_cast<void*>(reinterpret_cast<const void*>(pixelMap_->GetPixels())); in CreateBitmapCanvas() local
53 if (pixel == nullptr) { in CreateBitmapCanvas()
57 bitmap_.SetPixels(pixel); in CreateBitmapCanvas()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/
H A Dnative_image_test.cpp173 int32_t pixel = 1; in HWTEST_F() local
179 NativeComponent* ret = image.CreateComponent(type, size, row, pixel, vir); in HWTEST_F()
181 ret = image.CreateComponent(2, size, row, pixel, vir); in HWTEST_F()
185 ret = image.CreateComponent(type, size, row, pixel, vir); in HWTEST_F()
240 int32_t pixel = 10; in HWTEST_F() local
244 image.CreateComponent(type, size, row, pixel, vir); in HWTEST_F()
247 image.CreateComponent(type, size, row, pixel, vir); in HWTEST_F()
331 int32_t pixel = 10; in HWTEST_F() local
335 auto ret = image.CreateComponent(type, size, row, pixel, vir); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/
H A Dbitmap.cpp74 void Bitmap::SetPixels(void* pixel) in SetPixels() argument
76 bmpImplPtr->SetPixels(pixel); in SetPixels()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/systemtest/
H A Dhdilayer_context_systest.cpp92 uint32_t *pixel = static_cast<uint32_t *>(image); in DrawColor() local
95 *pixel++ = value; in DrawColor()
/foundation/multimedia/image_framework/frameworks/kits/js/common/
H A Dimage_packer_mdk_kits.cpp141 auto pixel = PixelMapNapi::GetPixelMap(args->inEnv, args->inVal); in DoAddImage() local
142 if (pixel != nullptr) { in DoAddImage()
143 return packer->AddImage(*pixel); in DoAddImage()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/pipeline/
H A Drs_render_thread_visitor.cpp945 // It caused missed line problem on surfaceview hap, so we subtract one pixel when cliphole to avoid this problem in ClipHoleForSurfaceNode()
946 static int pixel = 1; in ClipHoleForSurfaceNode() local
947 auto x = std::ceil(node.GetRenderProperties().GetBoundsPositionX() + pixel); // x increase 1 pixel in ClipHoleForSurfaceNode()
948 auto y = std::ceil(node.GetRenderProperties().GetBoundsPositionY() + pixel); // y increase 1 pixel in ClipHoleForSurfaceNode()
949 auto width = std::floor(node.GetRenderProperties().GetBoundsWidth() - (2 * pixel)); // width decrease 2 pixels in ClipHoleForSurfaceNode()
950 auto height = std::floor(node.GetRenderProperties().GetBoundsHeight() - (2 * pixel)); // height decrease 2 pixels in ClipHoleForSurfaceNode()
1000 // It caused missed line problem on surfaceview hap, so we subtract one pixel when cliphole to avoid this problem in ProcessTextureSurfaceRenderNode()
1001 static int pixel in ProcessTextureSurfaceRenderNode() local
1031 static int pixel = 1; ProcessOtherSurfaceRenderNode() local
[all...]
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_bitmap.h59 void SetPixels(void* pixel) {} in SetPixels() argument
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dcomponent.h38 int16_t pixel; member
220 width_.value.pixel = width; in SetWidth()
226 height_.value.pixel = height; in SetHeight()
435 return (height_.type == TYPE_PIXEL) ? height_.value.pixel : INVALID_PIXEL_VALUE; in GetHeight()
439 return (width_.type == TYPE_PIXEL) ? width_.value.pixel : INVALID_PIXEL_VALUE; in GetWidth()
H A Dcomponent.cpp363 // get pixel failed, reset to unknown type in GetDimensionFromStyle()
367 dimension.value.pixel = (int16_t)(pixelValue); in GetDimensionFromStyle()
375 dimension.value.pixel = (int16_t)((dimension.value.percentage * base) / hundred); in CalculateDimensionPixel()
432 param.maxWidth = width_.value.pixel; in GetConstrainedParam()
433 param.maxHeight = height_.value.pixel; in GetConstrainedParam()
439 uiView.SetStyle(STYLE_MARGIN_TOP, marginTop_.value.pixel); in ApplyAlignedMargin()
442 uiView.SetStyle(STYLE_MARGIN_BOTTOM, marginBottom_.value.pixel); in ApplyAlignedMargin()
445 uiView.SetStyle(STYLE_MARGIN_LEFT, marginLeft_.value.pixel); in ApplyAlignedMargin()
448 uiView.SetStyle(STYLE_MARGIN_RIGHT, marginRight_.value.pixel); in ApplyAlignedMargin()
466 uiView.SetY(top_.value.pixel); in ApplyAlignedPosition()
[all...]
/foundation/graphic/graphic_2d/rosen/samples/opengl/test_xComponentContext/entry/src/main/cpp/samples/
H A Dsample_bitmap.cpp153 uint32_t *pixel = static_cast<uint32_t *>(mappedAddr_); // 使用mmap获取到的地址来访问内存 in DisPlay() local
154 if (pixel == nullptr) { in DisPlay()
163 *pixel++ = *value++; in DisPlay()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dnative_image.cpp200 static std::unique_ptr<NativeComponent> BuildComponent(size_t size, int32_t row, int32_t pixel, uint8_t* vir) in BuildComponent() argument
207 component->pixelStride = pixel; in BuildComponent()
228 int32_t pixel, uint8_t* vir) in CreateComponent()
236 std::unique_ptr<NativeComponent> component = BuildComponent(size, row, pixel, vir); in CreateComponent()
227 CreateComponent(int32_t type, size_t size, int32_t row, int32_t pixel, uint8_t* vir) CreateComponent() argument
H A Dpixel_map.cpp285 IMAGE_LOGE("[ImageUtil]unsupport pixel format"); in GetRGBxRowDataSize()
290 IMAGE_LOGE("[ImageUtil]get rgbx pixel bytes failed"); in GetRGBxRowDataSize()
299 IMAGE_LOGE("[ImageUtil]unsupport pixel format"); in GetRGBxByteCount()
313 IMAGE_LOGE("[ImageUtil]unsupport pixel format"); in GetYUVByteCount()
322 IMAGE_LOGE("[ImageUtil]pixel format to ffmpeg pixel format failed"); in GetYUVByteCount()
448 IMAGE_LOGE("[PixelMap]Create: pixel convert failed."); in Create()
825 IMAGE_LOGE("pixel convert in adapter failed."); in SourceCropAndConvert()
1049 IMAGE_LOGE("pixel format:[%{public}d] not supported.", format); in GetPixelFormatDetail()
1120 IMAGE_LOGE("pixel ma in SetImageInfo()
3068 HalfTranslate(const float pixel, uint8_t* ui) HalfTranslate() argument
3090 SetF16PixelAlpha(uint8_t *pixel, const float percent, bool isPixelPremul) SetF16PixelAlpha() argument
3130 SetUintPixelAlpha(uint8_t *pixel, const float percent, uint8_t pixelByte, int8_t alphaIndex, bool isPixelPremul) SetUintPixelAlpha() argument
3151 CheckPixel(uint16_t &pixel, uint16_t alpha, const float percent) CheckPixel() argument
3347 uint8_t* pixel = data_ + i; SetAlpha() local
[all...]
/foundation/multimedia/image_framework/interfaces/innerkits/include/
H A Dnative_image.h70 NativeComponent* CreateComponent(int32_t type, size_t size, int32_t row, int32_t pixel, uint8_t* vir);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Dbitmap_impl.h48 virtual void SetPixels(void* pixel) = 0;
/foundation/multimedia/media_library/frameworks/js/src/
H A Dthumbnail_manager.cpp342 PixelMapPtr pixel = Media::PixelMap::Create(option); in CreateThumbnailByAshmem() local
343 if (pixel == nullptr) { in CreateThumbnailByAshmem()
344 NAPI_ERR_LOG("Can not create pixel"); in CreateThumbnailByAshmem()
358 pixel->SetPixelsAddr(mmapFd.GetFdPtr(), fdPtr, memSize, Media::AllocatorType::SHARE_MEM_ALLOC, nullptr); in CreateThumbnailByAshmem()
359 return pixel; in CreateThumbnailByAshmem()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/
H A Dbitmap.h48 * @brief Returns row bytes, the interval from one pixel row to the next. Row bytes
50 * @return byte length of pixel row
72 * @param dstPixels destination pixel storage
84 * @brief Copies Bitmap pixel address, row bytes, and ImageInfo to pixmap, if address
85 * is available, and returns true. If pixel address is not available, return false and
89 * @param pixmap storage for pixel state if pixels are readable; otherwise, ignored
101 * Sets pixel pointer to (0,0). If pixels is nullptr, or if GetImageInfo().GetColorType()
103 * Caller is responsible for handling ownership pixel memory for the lifetime of Bitmap and PixelRef.
105 * @param pixel address of pixel storag
[all...]
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/canvas_napi/
H A Djs_canvas.cpp722 auto pixel = pixelMapNapi->GetPixelNapiInner(); in OnDrawImage() local
723 if (pixel == nullptr) { in OnDrawImage()
728 std::shared_ptr<Drawing::Image> image = ExtractDrawingImage(pixel); in OnDrawImage()
738 Drawing::Rect src(0, 0, pixel->GetWidth(), pixel->GetHeight()); in OnDrawImage()
739 Drawing::Rect dst(px, py, px + pixel->GetWidth(), py + pixel->GetHeight()); in OnDrawImage()
740 canvas_->DrawPixelMapRect(pixel, src, dst, Drawing::SamplingOptions()); in OnDrawImage()
755 Drawing::Rect src(0, 0, pixel->GetWidth(), pixel in OnDrawImage()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
H A Doverlay_manager_extend_test_ng.cpp325 RefPtr<PixelMap> pixel = gestureHub->GetPixelMap(); in HWTEST_F() local
326 EXPECT_EQ(pixel->GetHeight(), 0); in HWTEST_F()
327 EXPECT_EQ(pixel->GetWidth(), 0); in HWTEST_F()
351 RefPtr<PixelMap> pixel = gestureHub->GetPixelMap(); in HWTEST_F() local
352 EXPECT_EQ(pixel->GetHeight(), 0); in HWTEST_F()
353 EXPECT_EQ(pixel->GetWidth(), 0); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/magic_pointer_render/
H A Drs_magic_pointer_render_manager.cpp291 uint32_t pixel[1] = { 0 };
296 single_pixel.SetPixels(pixel);
303 auto color = SkColor4f::FromBytes_RGBA(pixel[0]).toSkColor();
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/PathDrawingSample/entry/src/main/cpp/samples/
H A Dsample_bitmap.cpp116 uint32_t *pixel = static_cast<uint32_t *>(mappedAddr_); // 使用mmap获取到的地址来访问内存 in DisPlay() local
117 if (pixel == nullptr) { in DisPlay()
118 DRAWING_LOGE("pixel is null"); in DisPlay()
128 *pixel++ = *value++; in DisPlay()

Completed in 24 milliseconds

12