Home
last modified time | relevance | path

Searched refs:len_ (Results 1 - 25 of 35) sorted by relevance

12

/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/
H A Dfixed_string.h49 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 Dmemcpy_helper.cpp40 "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 Dcommon_utils.cpp100 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 Dtlv_utils.cpp32 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 Dui_line_break.h161 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 Dfill_interpolator.h41 : 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 Dsurface_buffer_impl.h220 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 Dimage_source_filter.cpp57 .len_ = srcBuffer->bufferInfo_->len_, in UpdateInputBufferIfNeed()
82 .len_ = buffer->bufferInfo_->len_, in UpdateInputBufferIfNeed()
/foundation/graphic/surface_lite/frameworks/
H A Dsurface_buffer_impl.cpp22 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 Dcpu_brightness_algo.cpp63 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 Dgpu_brightness_algo.cpp146 dst->bufferInfo_->len_ = tex->Width() * tex->Height() * RGBA_SIZE_PER_PIXEL; in OnApplyRGBA8888()
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/contrast/
H A Dcpu_contrast_algo.cpp54 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 Dgpu_contrast_algo.cpp147 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 Deffect_memory.cpp50 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 Dformat_helper.cpp139 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 DTestRenderEnvironment.cpp54 bufferInfo->len_ = LEN;
56 void *addr = malloc(bufferInfo->len_);
214 .len_ = effectBuffer->bufferInfo_->len_, in HWTEST_F()
H A DTestEffectMemoryManager.cpp72 memoryInfo.bufferInfo.len_ = LEN; in HWTEST_F()
/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/
H A Ddrawable_descriptor.h53 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 Ddrawable_descriptor_test.cpp572 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 Dnapi_bluetooth_spp_client.cpp266 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 Dnapi_bluetooth_spp_client.h34 ssize_t len_; member
/foundation/multimedia/image_effect/interfaces/inner_api/native/base/
H A Deffect_buffer.h44 uint32_t len_ = 0; member in OHOS::Media::Effect::BufferInfo
/foundation/communication/netstack/utils/tlv_utils/include/
H A Dtlv_utils.h63 uint32_t len_; member
/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_headers.cpp866 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 Drender_environment.cpp197 bufferInfo->len_ = info->len_; in ConvertBufferToTexture()
557 bufferInfo->len_ = info->len_; in GenTexEffectBuffer()

Completed in 23 milliseconds

12