Home
last modified time | relevance | path

Searched refs:byteBuffer (Results 1 – 25 of 40) sorted by relevance

12

/ohos5.0/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
H A Dhex_string_test.cpp51 uint8_t byteBuffer[30] = {0x1, 0x9, 0xf}; variable
57 …EXPECT_EQ(ByteToHexString(byteBuffer, sizeof(byteBuffer), nullptr, 1), DLP_SERVICE_ERROR_VALUE_INV…
60 …EXPECT_EQ(ByteToHexString(byteBuffer, sizeof(byteBuffer), hexStrBuffer, 1), DLP_SERVICE_ERROR_VALU…
63 …EXPECT_EQ(ByteToHexString(byteBuffer, sizeof(byteBuffer), hexStrBuffer, sizeof(hexStrBuffer)), DLP…
75 uint8_t byteBuffer[30] = {0}; variable
78 …EXPECT_EQ(HexStringToByte(nullptr, 0, byteBuffer, sizeof(byteBuffer)), DLP_SERVICE_ERROR_VALUE_INV…
96 EXPECT_EQ(HexStringToByte(test.c_str(), test.length(), byteBuffer, sizeof(byteBuffer)), DLP_OK);
108 uint8_t byteBuffer[30] = {0}; variable
111 EXPECT_EQ(HexStringToByte(test.c_str(), test.length(), byteBuffer, sizeof(byteBuffer)),
116 EXPECT_EQ(HexStringToByte(test.c_str(), test.length(), byteBuffer, sizeof(byteBuffer)),
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.50/
H A Dchangelogs-multimedia.md21 // component.byteBuffer为相机返回的预览流数据buffer
41 // component.byteBuffer为相机返回的预览流数据buffer
58 // component.byteBuffer的每行数据拷贝前width个字节到dstArr中
74 // 用法3. 将byteBuffer预览流数据和stride信息一起传给支持stride的接口处理
100 // component.byteBuffer为相机返回的预览流数据buffer
117 // component.byteBuffer的每行数据拷贝前width个字节到dstArr中
133 // 用法3. 将byteBuffer预览流数据和stride信息一起传给支持stride的接口处理
158 // component.byteBuffer为相机返回的预览流数据buffer
166 uint8_t* srcBuffer = imgComponent.byteBuffer;
189 uint8_t* srcBuffer = imgComponent.byteBuffer;
[all …]
/ohos5.0/foundation/ability/dmsfwk_lite/source/
H A Ddmslite_parser.c80 static TlvErrorCode TlvFillNode(const uint8_t *byteBuffer, uint16_t bufLength, in TlvFillNode() argument
89 node->type = *byteBuffer; in TlvFillNode()
95 const uint8_t *lengthPartAddr = byteBuffer + curTlvNodeLen; in TlvFillNode()
105 node->value = byteBuffer + curTlvNodeLen; in TlvFillNode()
165 TlvErrorCode TlvBytesToNode(const uint8_t *byteBuffer, uint16_t bufLength, TlvNode **tlv) in TlvBytesToNode() argument
167 if ((tlv == NULL) || (byteBuffer == NULL)) { in TlvBytesToNode()
187 const uint8_t *nodeStartAddr = byteBuffer; in TlvBytesToNode()
/ohos5.0/docs/zh-cn/application-dev/media/camera/
H A Dcamera-dual-channel-preview.md69 if (imgComponent.byteBuffer) {
77 let pixelMap = await image.createPixelMap(imgComponent.byteBuffer, {
95 console.error('byteBuffer is null');
111 方式一:去除imgComponent.byteBuffer中stride数据,拷贝得到新的buffer,调用不支持stride的接口处理buffer。
119 // imgComponent.byteBuffer的每行数据拷贝前width个字节到dstArr中
120 const srcBuf = new Uint8Array(imgComponent.byteBuffer, j * stride, width);
132 let pixelMap = await image.createPixelMap(imgComponent.byteBuffer, {
138 方式三:将原始imgComponent.byteBuffer和stride信息一起传给支持stride的接口处理。
271 if (imgComponent.byteBuffer) {
279 let pixelMap = await image.createPixelMap(imgComponent.byteBuffer, {
[all …]
H A Dcamera-shooting.md67 if (component.byteBuffer) {
68 buffer = component.byteBuffer;
70 console.error('byteBuffer is null');
H A Dcamera-shooting-case.md49 if (component.byteBuffer) {
50 buffer = component.byteBuffer;
52 console.error('byteBuffer is null');
H A Dcamera-deferred-photo-case.md42 if (component.byteBuffer) {
43 buffer = component.byteBuffer;
45 console.error('byteBuffer is null');
H A Dnative-camera-preview-imageReceiver.md111 // 去除stride数据示例:将byteBuffer中的数据去除stride,拷贝得到新的dstBuffer数据
/ohos5.0/docs/zh-cn/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) | 像素数据地址 |
32 ### byteBuffer subsection
35 uint8_t* OhosImageComponent::byteBuffer
/ohos5.0/base/security/dlp_permission_service/test/fuzztest/dlp_permission/stub_fuzzer/parsecertstub_fuzzer/
H A Dparsecertstub_fuzzer.cpp44 uint8_t byteBuffer[30] = {0}; in InitCertJson() local
46 byteBuffer[i] = *(reinterpret_cast<const uint8_t*>(data + i)); in InitCertJson()
48 int res = ByteToHexString(byteBuffer, sizeof(byteBuffer), hexStrBuffer, sizeof(hexStrBuffer)); in InitCertJson()
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/cj/src/
H A Dimage_impl.cpp122 ret->byteBuffer = static_cast<uint8_t*>(malloc(len + 1)); in GetComponent()
123 if (ret->byteBuffer == nullptr) { in GetComponent()
128 ret->byteBuffer[i] = nativePtr->raw[i]; in GetComponent()
130 ret->byteBuffer[len] = '\0'; in GetComponent()
/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. |
32 ### byteBuffer subsection
35 uint8_t* OhosImageComponent::byteBuffer
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/
H A Dimage_mdk_kits.cpp105 args->outComponent->byteBuffer = nativeComponent->virAddr; in ImageNapiGetComponent()
107 args->outComponent->byteBuffer = nativeComponent->raw.data(); in ImageNapiGetComponent()
110 if (args->outComponent->byteBuffer == nullptr) { in ImageNapiGetComponent()
/ohos5.0/docs/en/application-dev/media/camera/
H A Dcamera-dual-channel-preview.md69 if (imgComponent.byteBuffer) {
77 let pixelMap = await image.createPixelMap(imgComponent.byteBuffer, {
86 const srcBuf = new Uint8Array(imgComponent.byteBuffer, j * stride, width)
95 console.error('byteBuffer is null');
119 // Copy the first width bytes of each line of data in imgComponent.byteBuffer to dstArr.
120 const srcBuf = new Uint8Array(imgComponent.byteBuffer, j * stride, width);
132 let pixelMap = await image.createPixelMap(imgComponent.byteBuffer, {
273 if (imgComponent.byteBuffer) {
281 let pixelMap = await image.createPixelMap(imgComponent.byteBuffer, {
290 const srcBuf = new Uint8Array(imgComponent.byteBuffer, j * stride, width)
[all …]
H A Dcamera-shooting.md67 if (component.byteBuffer) {
68 buffer = component.byteBuffer;
70 console.error('byteBuffer is null');
H A Dcamera-shooting-case.md49 if (component.byteBuffer) {
50 buffer = component.byteBuffer;
52 console.error('byteBuffer is null');
H A Dcamera-deferred-photo-case.md42 if (component.byteBuffer) {
43 buffer = component.byteBuffer;
45 console.error('byteBuffer is null');
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/util/
H A Drender_frame_util.cpp62 defaultCopyData_.byteBuffer = make_unique<ByteArray>(0U); in RenderFrameUtil()
162 copyDataRef.byteBuffer = make_unique<ByteArray>(byteSize); in ProcessFrameInputCopyData()
179 copyDataRef.byteBuffer = make_unique<ByteArray>(byteSize); in ProcessFrameInputCopyData()
194 if (copyDataRef.byteBuffer && copyDataRef.bufferHandle) { in ProcessFrameInputCopyData()
200 dataCopy.byteArray = copyDataRef.byteBuffer.get(); in ProcessFrameInputCopyData()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/
H A Dcache_data.cpp298 uint8_t *byteBuffer = reinterpret_cast<uint8_t *>(buffer); in Serialize() local
311 ShaderData *shaderBuffer = reinterpret_cast<ShaderData *>(&byteBuffer[byteOffset]); in Serialize()
351 const uint8_t *byteBuffer = reinterpret_cast<const uint8_t *>(buffer); in DeSerialize() local
358 … const ShaderData *shaderBuffer = reinterpret_cast<const ShaderData *>(&byteBuffer[byteOffset]); in DeSerialize()
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/cj/include/
H A Dimage_utils.h41 uint8_t *byteBuffer; member
/ohos5.0/foundation/multimedia/image_framework/interfaces/kits/native/include/
H A Dimage_mdk.h111 uint8_t* byteBuffer; member
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/util/
H A Dintf_render_frame_util.h60 BASE_NS::unique_ptr<BASE_NS::ByteArray> byteBuffer; in RENDER_BEGIN_NAMESPACE() member
/ohos5.0/docs/zh-cn/third-party-cases/
H A Dtake-picture-and-preview.md118 if (img.byteBuffer) {
119 buffer = img.byteBuffer;
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/ets/views/
H A DmodeSwitchPage.ets249 if (img.byteBuffer) {
250 buffer = img.byteBuffer
252 Logger.error(this.tag, 'img.byteBuffer is undefined')
/ohos5.0/docs/zh-cn/application-dev/media/image/
H A Dimage-receiver-native.md179 uint8_t *img_buffer = imgComponent.byteBuffer;

12