/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | fixed_string.h | 49 initialize({ a.data_, a.len_ }); 54 initialize({ a.data_, a.len_ }); 84 constexpr basic_fixed_string(const size_t size) noexcept : len_((size < maxSize) ? size : maxSize) {} in len_() function in basic_fixed_string 101 return len_ == 0; 106 return len_; 111 return len_; 121 initialize({ a.data_, a.len_ }); 127 initialize({ a.data_, a.len_ }); 206 return string_view(data_, len_); 285 const auto newSize = len_ in replace() [all...] |
/foundation/multimedia/image_effect/frameworks/native/utils/common/ |
H A D | memcpy_helper.cpp | 40 "dstLen=%{public}d", src.data, srcInfo.height_, srcInfo.formatType_, srcInfo.rowStride_, srcInfo.len_, in CopyData() 41 dst.data, dstInfo.height_, dstInfo.formatType_, dstInfo.rowStride_, dstInfo.len_); in CopyData() 44 uint32_t srcBufferLen = srcInfo.len_; in CopyData() 45 uint32_t dstBufferLen = dstInfo.len_; in CopyData() 65 "dstLen=%{public}d", srcInfo.height_, srcInfo.formatType_, srcInfo.rowStride_, srcInfo.len_, in CopyData() 66 dstInfo.height_, dstInfo.formatType_, dstInfo.rowStride_, dstInfo.len_); in CopyData() 75 srcInfo.height_, srcInfo.formatType_, srcInfo.rowStride_, srcInfo.len_, in CopyData() 76 dstInfo.height_, dstInfo.formatType_, dstInfo.rowStride_, dstInfo.len_); in CopyData()
|
H A D | common_utils.cpp | 100 bufferInfo->len_ = FormatHelper::CalculateSize(bufferInfo->width_, bufferInfo->height_, formatType); in LockPixelMap() 111 bufferInfo->len_, bufferInfo->colorSpace_, pixels); in LockPixelMap() 144 bufferInfo->len_ = 0; in ParseNativeWindowData() 164 bufferInfo->len_ = surfaceBuffer->GetSize(); in ParseSurfaceData() 552 pixelMap->SetPixelsAddr(memoryData->data, context, memoryInfo.bufferInfo.len_, allocatorType, nullptr); in ModifyPixelMapPropertyInner() 616 memoryInfo.bufferInfo.len_ = FormatHelper::CalculateSize(buffer->bufferInfo_->width_, in ModifyPixelMapProperty()
|
/foundation/communication/netstack/utils/tlv_utils/src/ |
H A D | tlv_utils.cpp | 32 return const_cast<uint8_t *>(buffer) + (reinterpret_cast<TlvCommon *>(const_cast<uint8_t *>(buffer)))->len_ + in GetNextTlv() 47 tlv->len_ = (reinterpret_cast<TlvCommon *>(const_cast<uint8_t *>(buffer)))->len_; in ParseTlv() 59 if (buffer + (reinterpret_cast<TlvCommon *>(const_cast<uint8_t *>(buffer)))->len_ + TLV_TLV_HEAD_LEN > boundary) { in AppendTlv() 64 (reinterpret_cast<TlvCommon *>(const_cast<uint8_t *>(buffer)))->len_ = tlv->len_; in AppendTlv() 65 if (tlv->len_ != 0 && tlv->value_ != nullptr) { in AppendTlv() 66 if (memcpy_s(buffer + TLV_TLV_HEAD_LEN, boundary - buffer - TLV_TLV_HEAD_LEN, tlv->value_, tlv->len_) != in AppendTlv() 167 msg.requestId_ = std::string(static_cast<char *>(tlvs[index].value_), tlvs[index].len_); in Parse() 169 msg.requestUrl_ = std::string(static_cast<char *>(tlvs[index].value_), tlvs[index].len_); in Parse() [all...] |
/foundation/arkui/ui_lite/frameworks/font/ |
H A D | ui_line_break.h | 161 UILineBreakProxy(uint32_t* str, uint16_t len) : str_(str), len_(len), prePos_(0) {}
in UILineBreakProxy() 166 len_ = 0;
in ~UILineBreakProxy() 189 if (prePos_ < len_) {
in GetStrLen() 190 return len_ - prePos_;
in GetStrLen() 202 if (prePos_ < len_) {
in GetStr() 210 uint16_t len_;
member in OHOS::UILineBreakProxy
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/spancolorfill/ |
H A D | fill_interpolator.h | 41 : colorStart_(color1), colorEnd_(color2), len_(distance), place_(0) {} in ColorInterpolator() 57 return colorStart_.Gradient(colorEnd_, float(place_) / len_); in GetColor() 63 uint32_t len_; member
|
/foundation/graphic/surface_lite/interfaces/innerkits/ |
H A D | surface_buffer_impl.h | 220 if (len_ == 0) { 223 return len_; 236 len_ = size; 373 uint32_t len_; member in OHOS::SurfaceBufferImpl
|
/foundation/multimedia/image_effect/frameworks/native/effect/pipeline/filters/source/ |
H A D | image_source_filter.cpp | 57 .len_ = srcBuffer->bufferInfo_->len_, in UpdateInputBufferIfNeed() 82 .len_ = buffer->bufferInfo_->len_, in UpdateInputBufferIfNeed()
|
/foundation/graphic/surface_lite/frameworks/ |
H A D | surface_buffer_impl.cpp | 22 SurfaceBufferImpl::SurfaceBufferImpl() : len_(0) in SurfaceBufferImpl() 133 ReadUint32(&io, &len_); in ReadFromIpcIo() 169 WriteUint32(&io, len_); in WriteToIpcIo() 194 len_ = buffer.len_; in CopyExtraData()
|
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/brightness/ |
H A D | cpu_brightness_algo.cpp | 63 errno_t result = memcpy_s(dstRgb, dst->bufferInfo_->len_, srcRgb, src->bufferInfo_->len_); in OnApplyRGBA8888() 112 errno_t result = memcpy_s(dstNV21, dst->bufferInfo_->len_, srcNV21, src->bufferInfo_->len_); in OnApplyYUVNV21() 172 errno_t result = memcpy_s(dstNV12, dst->bufferInfo_->len_, srcNV12, src->bufferInfo_->len_); in OnApplyYUVNV12()
|
H A D | gpu_brightness_algo.cpp | 146 dst->bufferInfo_->len_ = tex->Width() * tex->Height() * RGBA_SIZE_PER_PIXEL; in OnApplyRGBA8888()
|
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/contrast/ |
H A D | cpu_contrast_algo.cpp | 54 errno_t result = memcpy_s(dstRgb, dst->bufferInfo_->len_, srcRgb, src->bufferInfo_->len_); in OnApplyRGBA8888() 102 errno_t result = memcpy_s(dstNV21, dst->bufferInfo_->len_, srcNV21, src->bufferInfo_->len_); in OnApplyYUVNV21() 160 errno_t result = memcpy_s(dstNV12, dst->bufferInfo_->len_, srcNV12, src->bufferInfo_->len_); in OnApplyYUVNV12()
|
H A D | gpu_contrast_algo.cpp | 147 dst->bufferInfo_->len_ = tex->Width() * tex->Height() * RGBA_SIZE_PER_PIXEL; in OnApplyRGBA8888()
|
/foundation/multimedia/image_effect/frameworks/native/effect/manager/memory_manager/ |
H A D | effect_memory.cpp | 50 uint32_t size = memoryInfo.bufferInfo.len_; in Alloc() 120 uint32_t size = bufferInfo.len_; in Alloc() 125 bufferInfo.height_, bufferInfo.width_, bufferInfo.formatType_, bufferInfo.len_); in Alloc() 152 memoryData->memoryInfo.bufferInfo.len_ = sb->GetSize(); in Alloc() 199 size_t size = memoryInfo.bufferInfo.len_; in Alloc()
|
/foundation/multimedia/image_effect/frameworks/native/utils/format/ |
H A D | format_helper.cpp | 139 srcBuffInfo.width_, srcBuffInfo.height_, srcBuffInfo.formatType_, srcBuffInfo.len_, srcBuffInfo.rowStride_, in CheckConverterInfo() 140 dstBuffInfo.width_, dstBuffInfo.height_, dstBuffInfo.formatType_, dstBuffInfo.len_, dstBuffInfo.rowStride_); in CheckConverterInfo() 147 minSrcLen <= srcBuffInfo.len_ && minDstLen <= dstBuffInfo.len_, ErrorCode::ERR_PARAM_INVALID, in CheckConverterInfo() 150 srcBuffInfo.width_, srcBuffInfo.height_, srcBuffInfo.formatType_, srcBuffInfo.len_, srcBuffInfo.rowStride_, in CheckConverterInfo() 151 dstBuffInfo.width_, dstBuffInfo.height_, dstBuffInfo.formatType_, dstBuffInfo.len_, dstBuffInfo.rowStride_); in CheckConverterInfo()
|
/foundation/multimedia/image_effect/test/unittest/ |
H A D | TestRenderEnvironment.cpp | 54 bufferInfo->len_ = LEN; 56 void *addr = malloc(bufferInfo->len_); 214 .len_ = effectBuffer->bufferInfo_->len_, in HWTEST_F()
|
H A D | TestEffectMemoryManager.cpp | 72 memoryInfo.bufferInfo.len_ = LEN; in HWTEST_F()
|
/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/ |
H A D | drawable_descriptor.h | 53 size_t len_ = 0; member 68 : mediaData_(std::move(mediaData)), len_(len) {}; in DrawableDescriptor() 89 size_t len_ = 0; member in OHOS::Ace::Napi::DrawableDescriptor 98 : jsonBuf_(std::move(jsonBuf)), len_(len) in LayeredDrawableDescriptor() 106 : jsonBuf_(std::move(jsonBuf)), len_(len), maskPath_(std::move(path)), iconType_(iconType), density_(density) in LayeredDrawableDescriptor() 115 : jsonBuf_(std::move(jsonBuf)), len_(len), maskPath_(std::move(path)), iconType_(iconType) in LayeredDrawableDescriptor() 199 size_t len_ = 0; member in OHOS::Ace::Napi::LayeredDrawableDescriptor
|
/foundation/arkui/ace_engine/test/unittest/interfaces/ |
H A D | drawable_descriptor_test.cpp | 572 EXPECT_EQ(resItem.len_, 0); in HWTEST_F() 575 EXPECT_EQ(resItem.len_, 0); in HWTEST_F() 587 drawable.len_ = strlen(jsonBuf) + 1; in HWTEST_F() 588 drawable.jsonBuf_ = std::make_unique<uint8_t[]>(drawable.len_); in HWTEST_F() 603 drawable.len_ = strlen(jsonBuf) + 1; in HWTEST_F() 604 drawable.jsonBuf_ = std::make_unique<uint8_t[]>(drawable.len_); in HWTEST_F() 792 EXPECT_EQ(resItem.len_, 0); in HWTEST_F()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/socket/ |
H A D | napi_bluetooth_spp_client.cpp | 266 if (buffer->len_ < 0 || buffer->len_ > SOCKET_BUFFER_SIZE) { in NapiThreadSafeFuncCallJs() 267 HILOGE("buffer->len_ invalid"); in NapiThreadSafeFuncCallJs() 273 napi_create_arraybuffer(callbackInfo->env_, buffer->len_, (void **)&bufferData, &result); in NapiThreadSafeFuncCallJs() 274 if (memcpy_s(bufferData, buffer->len_, buffer->data_, buffer->len_) != EOK) { in NapiThreadSafeFuncCallJs() 421 buffer->len_ = ret; in SppRead()
|
/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_bluetooth_spp_client.h | 34 ssize_t len_; member
|
/foundation/multimedia/image_effect/interfaces/inner_api/native/base/ |
H A D | effect_buffer.h | 44 uint32_t len_ = 0; member in OHOS::Media::Effect::BufferInfo
|
/foundation/communication/netstack/utils/tlv_utils/include/ |
H A D | tlv_utils.h | 63 uint32_t len_; member
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/ |
H A D | obex_headers.cpp | 866 len_ = 0x00; in TlvTriplet() 873 len_ = len; in TlvTriplet() 879 : TlvTriplet(tlvTriplet.tagId_, tlvTriplet.len_, tlvTriplet.val_.data(), tlvTriplet.unitLen_) in TlvTriplet() 905 return len_; in GetLen() 920 if (len_ == ObexHeader::UINT16_LENGTH) { in GetUint16() 931 if (len_ == ObexHeader::UINT32_LENGTH) { in GetUint32() 942 if (len_ == ObexHeader::UINT64_LENGTH) { in GetUint64()
|
/foundation/multimedia/image_effect/frameworks/native/render_environment/ |
H A D | render_environment.cpp | 197 bufferInfo->len_ = info->len_;
in ConvertBufferToTexture() 557 bufferInfo->len_ = info->len_;
in GenTexEffectBuffer()
|