Home
last modified time | relevance | path

Searched refs:pixel (Results 1 – 25 of 303) sorted by relevance

12345678910>>...13

/ohos5.0/docs/en/application-dev/reference/apis-image-kit/
H A D_o_h_o_s_1_1_media_1_1_ohos_image_component.md22 | uint8_t \* [byteBuffer](#bytebuffer) | Buffer that stores the pixel data. |
23 | size_t [size](#size) | Size of the pixel data in the memory. |
24 | int32_t [componentType](#componenttype) | Type of the pixel data. |
25 | int32_t [rowStride](#rowstride) | Row stride of the pixel data. |
26 | int32_t [pixelStride](#pixelstride) | Pixel stride of the pixel data. |
40 Buffer that stores the pixel data.
51 Type of the pixel data.
68 Pixel stride of the pixel data.
79 Row stride of the pixel data. Camera preview stream data must be read based on the stride. For deta…
90 Size of the pixel data in the memory.
H A D_ohos_image_source_ops.md22 | int32_t [density](image.md#density-12) | Defines the pixel density of the image source.|
23 | int32_t [pixelFormat](image.md#pixelformat-13) | Defines the pixel format of the image source. It…
24 | struct [OhosImageSize](_ohos_image_size.md) [size](image.md#size-17) | Defines the pixel width an…
H A D_ohos_image_decoding_ops.md23 | int32_t [pixelFormat](image.md#pixelformat-23) | Defines the pixel format of the output PixelMap.…
24 | int32_t [fitDensity](image.md#fitdensity) | Defines the pixel density of the output PixelMap.|
28 | struct [OhosImageSize](_ohos_image_size.md) [size](image.md#size-27) | Defines the pixel width an…
/ohos5.0/docs/en/application-dev/media/image/
H A Dimage-pixelmap-operation.md5 As shown in the figure below, the pixel data of a rectangle in an image is read, modified, and then…
25 …btain the pixel density of this PixelMap object. Pixel density refers to the number of pixels per …
29 3. Read and modify the pixel data of the target area, and write the modified data back to the origi…
37 …// Read the pixel data of the PixelMap based on the PixelMap's pixel format and write the data to …
40 console.info('Succeeded in reading image pixel data.');
42 console.error('Failed to read image pixel data. The error is: ' + error);
44 …// Read the pixel data in the buffer based on the PixelMap's pixel format and write the data to th…
46 console.info('Succeeded in writing image pixel data.');
48 console.error('Failed to write image pixel data. The error is: ' + error);
79 …> When creating a PixelMap, you must set **srcPixelFormat** to the pixel format of the original Pi…
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A Ddrawing__pixel__map_8h.md6 The **drawing_pixel_map.h** file declares the functions related to the pixel map in the drawing mod…
24 …romnativepixelmap) (NativePixelMap_ \*) | Obtains the pixel map defined by this module from a pixe…
25 …hpixelmapnative) (OH_PixelmapNative \*) | Obtains the pixel map defined by this module from a pixe…
26 …ng_pixelmap) \*) | Removes the relationship between a pixel map defined by this module and a pixel
H A Ddrawing__bitmap_8h.md24 | struct [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md) | Describes the pixel format…
31 …drawing.md#oh_drawing_bitmapformat) | Defines a struct that describes the pixel format of a bitmap…
41 …ormat.md) \*) | Initializes the width and height of a bitmap and sets the pixel format for the bit…
44 …at) ([OH_Drawing_Bitmap](_drawing.md#oh_drawing_bitmap) \*) | Obtains the pixel format of a bitmap…
46 ….md#oh_drawing_bitmap) \*) | Obtains the pixel address of a bitmap. You can use this address to ob…
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-pixel-units.md3 ArkUI provides four pixel units, with vp as the reference data unit.
12 | px | Physical pixel unit of the screen. |
13 …creen pixel density. This unit is used for values whose unit is not specified.<br> **NOTE**<br>The…
14 | fp | Font pixel, which is similar to vp and varies according to the system font size.|
15 | lpx | Logical pixel unit of the window. It is the ratio of the actual screen width to the logica…
20 Conversion between px and other pixel units is supported.
30 …rtual pixel ratio of the screen where the current UI instance is located is used for conversion. I…
31 …rtual pixel ratio of the screen where the current UI instance is located is used for conversion. I…
42pixel unit conversions, directly calling the **vp2px**, **px2vp**, **fp2px**, **px2fp**, **lpx2px*…
H A Dts-universal-attributes-pixelRound.md3 Component-level pixel rounding allows you to enable or disable system pixel rounding for individual…
13 Sets the pixel rounding policy for the current component in the specified direction. If a direction…
17pixel alignment (that is, 0\-0.25 rounds to 0, 0.25\-0.75 rounds to 0.5, 0.75\-1.0 rounds to 1). S…
41 …child component in the direction where the gap is revealed.<br>2. Disable pixel rounding for both …
42 …. | 1. Set a 2 px space on the **List** component.<br>2. Disable pixel rounding on the co…
43 … | 1. Set a 2 px space on the **List** component.<br>2. Disable pixel rounding on the co…
44 …nimation, there is a slight flicker. | Disable pixel rounding on the co…
45 … of child components are inconsistent. | Disable pixel rounding on the co…
97 In this example, when pixel rounding is initially disabled (that is, the **pixelRound** attribute i…
/ohos5.0/docs/en/design/ux-design/
H A Dvisual-basis.md6 … virtual pixel (vp) describes the virtual size of a device for an application. It is different fro…
12pixel densities. The ratio between px and vp is referred to as the pixel density ratio, which is D…
15 …n of vp ensures that an element has the same visual size on devices with different pixel densities.
30pixel (fp) size is the same as that of the virtual pixel size. That is, 1 fp = 1 vp. If you select…
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/
H A Djs-apis-app-ability-configurationConstant.md55 | SCREEN_DENSITY_NOT_SET | 0 | The screen pixel density is not set.|
56 | SCREEN_DENSITY_SDPI | 120 | The pixel density of the screen is 'SDPI'.|
57 | SCREEN_DENSITY_MDPI | 160 | The pixel density of the screen is 'MDPI'.|
58 | SCREEN_DENSITY_LDPI | 240 | The pixel density of the screen is 'LDPI'.|
59 | SCREEN_DENSITY_XLDPI | 320 | The pixel density of the screen is 'XLDPI'.|
60 | SCREEN_DENSITY_XXLDPI | 480 | The pixel density of the screen is 'XXLDPI'.|
61 | SCREEN_DENSITY_XXXLDPI | 640 | The pixel density of the screen is 'XXXLDPI'.|
/ohos5.0/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>(); variable
161 instance.CachePixelMap(uniqueId, pixel);
162 pixelMap[uniqueId] = pixel;
181 auto pixel = std::make_shared<Media::PixelMap>(); variable
182 instance.CachePixelMap(ADDED_ID, pixel);
183 EXPECT_EQ(instance.GetPixelMapCache(ADDED_ID), pixel);
201 auto pixel = std::make_shared<Media::PixelMap>(); variable
202 instance.CachePixelMap(ADDED_ID, pixel);
250 auto pixel = std::make_shared<Media::PixelMap>(); variable
254 instance.CachePixelMap(ADDED_ID, pixel);
/ohos5.0/drivers/peripheral/display/composer/test/common/
H A Ddisplay_test_utils.cpp112 uint32_t *pixel = reinterpret_cast<uint32_t *>(handle.virAddr) + position; in GetPixelValue() local
113 …DISPLAY_TEST_CHK_RETURN((pixel == nullptr), DISPLAY_FAILURE, DISPLAY_TEST_LOGE("get pixel failed")… in GetPixelValue()
115 return *pixel; in GetPixelValue()
145 uint32_t *pixel = reinterpret_cast<uint32_t *>(handle.virAddr) + position; in CheckPixel() local
146 …DISPLAY_TEST_CHK_RETURN((pixel == nullptr), DISPLAY_FAILURE, DISPLAY_TEST_LOGE("get pixel failed")… in CheckPixel()
148 …ckColor = ConverToRGBA(static_cast<Composer::V1_0::PixelFormat>(handle.format), GetUint32(*pixel)); in CheckPixel()
186 uint32_t *pixel = reinterpret_cast<uint32_t *>(handle.virAddr) + position; in SetPixel() local
187 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((pixel == nullptr), DISPLAY_TEST_LOGE("get pixel failed")); in SetPixel()
189 SetUint32(*pixel, color); in SetPixel()
H A Dhdi_test_render_utils.cpp46 uint32_t* pixel = reinterpret_cast<uint32_t *>(handle.virAddr) + position; in SetPixel() local
47 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((pixel == nullptr), DISPLAY_TEST_LOGE("get pixel failed")); in SetPixel()
48 SetUint32(*pixel, color); in SetPixel()
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.1.5.5/
H A Dchangelogs-graphic.md46 let pixel = effectKit.createEffect(pixelMap).grayscale().getPixelMap();
47 console.log('getPixelBytesNumber = ', pixel.getPixelBytesNumber());
52 let pixel = effectKit.createEffect(pixelMap).grayscale().getPixelMap();
57 let pixel = data;
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.3.1/
H A Dchangelogs-pixelmap.md29 …wSize**: number of bytes per row. Calculation formula: Image width x Number of bytes in each pixel.
33pixel). (The roundup means that each row is automatically padded.) In the case of other types of m…
37 Scenario: The memory address of the pixel map is obtained by calling **OH_PixelMap_AccessPixels()**…
39 Case 1: When OpenCV uses the pixel map data to construct **cv::Mat**, it must include the input par…
53 Case 2: When you copy the pixel map data, do not include the padding.
/ohos5.0/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()
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++ = pixelValueYUV.v; in DrawYUVColor()
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.5.5/
H A Dchangelogs-graphic.md48 let pixel = effectKit.createEffect(pixelMap).grayscale().getPixelMap();
49 console.log('getPixelBytesNumber = ', pixel.getPixelBytesNumber());
54 let pixel = effectKit.createEffect(pixelMap).grayscale().getPixelMap();
59 let pixel = data;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_maskcolor_shader_filter.cpp43 uint32_t pixel[1] = { 0 }; in CalcAverageColor() local
48 single_pixel.SetPixels(pixel); in CalcAverageColor()
55 return SkColor4f::FromBytes_RGBA(pixel[0]).toSkColor(); in CalcAverageColor()
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A Ddrawable__descriptor_8h.md38 …ableDescriptor, int32_t duration) | Sets the total playback duration for a pixel map image array. |
39 …criptor) \*drawableDescriptor) | Obtains the total playback duration for a pixel map image array. |
40 …*drawableDescriptor, int32_t iteration) | Sets the number of times that a pixel map image array is…
41 …bledescriptor) \*drawableDescriptor) | Obtains the number of times that a pixel map image array is…
/ohos5.0/docs/zh-cn/application-dev/media/image/
H A Dimage-pixelmap-operation.md39 console.info('Succeeded in reading image pixel data.');
41 console.error('Failed to read image pixel data. The error is: ' + error);
45 console.info('Succeeded in writing image pixel data.');
47 console.error('Failed to write image pixel data. The error is: ' + error);
/ohos5.0/drivers/hdf_core/framework/model/camera/device_impl/src/
H A Dcamera_stream.c109 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.pixel.format); in CameraSendFmtData()
110 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.pixel.width); in CameraSendFmtData()
111 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.pixel.height); in CameraSendFmtData()
112 isFailed |= !HdfSbufWriteUint32(rspData, ctrlConfig.pixelFormat.pixel.sizeImage); in CameraSendFmtData()
137 isFailed |= !HdfSbufReadUint32(reqData, &ctrlConfig->pixelFormat.pixel.format); in CameraReceiveFmtData()
138 isFailed |= !HdfSbufReadUint32(reqData, &ctrlConfig->pixelFormat.pixel.width); in CameraReceiveFmtData()
139 isFailed |= !HdfSbufReadUint32(reqData, &ctrlConfig->pixelFormat.pixel.height); in CameraReceiveFmtData()
303 if (!HdfSbufWriteString(rspData, enumFmt.pixelFormat.pixel.description)) { in CameraEnumFmtData()
307 if (!HdfSbufWriteUint32(rspData, enumFmt.pixelFormat.pixel.format)) { in CameraEnumFmtData()
324 if (!HdfSbufWriteUint32(rspData, enumFmt.pixelFormat.pixel.height)) { in CameraEnumFramesizesData()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/
H A Dnative_image_test.cpp173 int32_t pixel = 1; variable
179 NativeComponent* ret = image.CreateComponent(type, size, row, pixel, vir);
181 ret = image.CreateComponent(2, size, row, pixel, vir);
185 ret = image.CreateComponent(type, size, row, pixel, vir);
240 int32_t pixel = 10; variable
244 image.CreateComponent(type, size, row, pixel, vir);
247 image.CreateComponent(type, size, row, pixel, vir);
331 int32_t pixel = 10; variable
335 auto ret = image.CreateComponent(type, size, row, pixel, vir);
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/canvas_napi/
H A Djs_canvas.cpp707 auto pixel = pixelMapNapi->GetPixelNapiInner(); in OnDrawImage() local
708 if (pixel == nullptr) { in OnDrawImage()
723 Drawing::Rect src(0, 0, pixel->GetWidth(), pixel->GetHeight()); in OnDrawImage()
724 Drawing::Rect dst(px, py, px + pixel->GetWidth(), py + pixel->GetHeight()); in OnDrawImage()
740 Drawing::Rect src(0, 0, pixel->GetWidth(), pixel->GetHeight()); in OnDrawImage()
741 Drawing::Rect dst(px, py, px + pixel->GetWidth(), py + pixel->GetHeight()); in OnDrawImage()
2070 auto pixel = pixelMapNapi->GetPixelNapiInner(); in OnDrawImageRect() local
2071 if (pixel == nullptr) { in OnDrawImageRect()
2087 Drawing::Rect srcRect(0, 0, pixel->GetWidth(), pixel->GetHeight()); in OnDrawImageRect()
2108 Drawing::Rect srcRect(0, 0, pixel->GetWidth(), pixel->GetHeight()); in OnDrawImageRect()
[all …]

12345678910>>...13