Home
last modified time | relevance | path

Searched refs:copySize (Results 1 – 20 of 20) sorted by relevance

/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/demux/
H A Ddata_packer.cpp158 size_t copySize = 0; in PeekRangeInternal() local
171 needCopySize -= copySize; in PeekRangeInternal()
186 needCopySize -= copySize; in PeekRangeInternal()
191 dstPtr += copySize; in PeekRangeInternal()
437 NZERO_LOG(memcpy_s(dstPtr, copySize, in CopyFirstBuffer()
442 return copySize; in CopyFirstBuffer()
453 size_t copySize; in CopyFromSuccessiveBuffer() local
465 NZERO_LOG(memcpy_s(dstPtr, copySize, GetBufferReadOnlyData(que_[i]), copySize)); in CopyFromSuccessiveBuffer()
466 dstPtr += copySize; in CopyFromSuccessiveBuffer()
467 needCopySize -= copySize; in CopyFromSuccessiveBuffer()
[all …]
/ohos5.0/base/time/time_service/test/fuzztest/timeservice_fuzzer/timesntp_fuzzer/
H A Dtimesntp_fuzzer.cpp34 size_t copySize = (size < NTP_PACKAGE_SIZE) ? size : NTP_PACKAGE_SIZE; in Convert() local
36 for (size_t i = 0; i < copySize; ++i) { in Convert()
39 for (size_t i = copySize; i < NTP_PACKAGE_SIZE; ++i) { in Convert()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/
H A Dpacket.c289 uint32_t copySize = ((remain <= buffSize) ? remain : buffSize); in PacketCopyToBuffer() local
290 (void)memcpy_s(buffer, copySize, (uint8_t *)BufferPtr(start->buf), copySize); in PacketCopyToBuffer()
291 retSize += copySize; in PacketCopyToBuffer()
292 buffer += copySize; in PacketCopyToBuffer()
293 remain -= copySize; in PacketCopyToBuffer()
323 uint32_t copySize = ((remain <= buffSize) ? remain : buffSize); in PacketCopyFromBuffer() local
324 (void)memcpy_s((uint8_t *)BufferPtr(start->buf), copySize, buffer, copySize); in PacketCopyFromBuffer()
325 retSize += copySize; in PacketCopyFromBuffer()
326 buffer += copySize; in PacketCopyFromBuffer()
327 remain -= copySize; in PacketCopyFromBuffer()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/node/
H A Drender_node_staging.cpp88 const size_t copySize = in CopyHostDirectlyToBuffer() local
90 if ((srcPtr) && (copySize > 0)) { in CopyHostDirectlyToBuffer()
91 PLUGIN_ASSERT((size_t(bufferDesc.byteSize) - dstOffset) >= copySize); in CopyHostDirectlyToBuffer()
92 if (!CloneData(data, bufferDesc.byteSize - dstOffset, srcPtr, copySize)) { in CopyHostDirectlyToBuffer()
/ohos5.0/base/update/updater/services/flow_update/update_bin/
H A Dbin_flow_update.cpp94 …uint32_t copySize = std::min(static_cast<size_t>(len), static_cast<size_t>(maxBufSize_ - curlen_)); in AddRemainData() local
95 if (memcpy_s(buffer_ + curlen_, maxBufSize_, data, copySize) != EOK) { in AddRemainData()
99 curlen_ += copySize; in AddRemainData()
100 len -= copySize; in AddRemainData()
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/primary/
H A Daudio_capturer_source.cpp258 uint64_t copySize = min((sizeMax_ - head_), replyBytes); in Poll() local
259 if (copySize != 0) { in Poll()
260 MemcpysAndCheck(frame, replyBytes, buffer_.get() + head_, copySize); in Poll()
261 headNum_ += copySize; in Poll()
262 size_ -= copySize; in Poll()
263 head_ = (head_ + copySize) % sizeMax_; in Poll()
266 uint64_t remainCopySize = replyBytes - copySize; in Poll()
308 uint64_t copySize = min(sizeMax_ - tail, bufferBytes); in Offer() local
309 MemcpysAndCheck((buffer_.get() + tail), sizeMax_ - tail, frame, copySize); in Offer()
311 if (copySize < bufferBytes) { in Offer()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/
H A Drender_node_default_material_objects.cpp139 const size_t copySize = copyCount * sizeof(Math::Mat4X4); in UpdateSkinBuffer() local
141 if (!CloneData(skinData, size_t(skinDataEnd - skinData), jointRef.data, copySize)) { in UpdateSkinBuffer()
145 jointRef.data + copyCount, copySize)) { in UpdateSkinBuffer()
/ohos5.0/base/msdp/device_status/utils/common/src/
H A Dutil.cpp240 size_t copySize = std::min(tempName.size(), PROGRAM_NAME_SIZE - 1); in GetProgramName() local
241 if (copySize == 0) { in GetProgramName()
245 errno_t result = memcpy_s(programName, PROGRAM_NAME_SIZE, tempName.c_str(), copySize); in GetProgramName()
/ohos5.0/base/security/device_auth/common_lib/impl/src/
H A Dhc_parcel.c146 uint32_t copySize = parcelSizeOrg - start - dataSize; in ParcelEraseBlock() local
152 if (copySize != 0) { in ParcelEraseBlock()
153 rc = memmove_s(beginCopy, copySize, beginCopy + dataSize, copySize); in ParcelEraseBlock()
/ohos5.0/foundation/graphic/graphic_2d/frameworks/vulkan_layers/swapchain_layer/
H A Dswapchain_layer.cpp189 uint32_t copySize = *pCount < count ? *pCount : count; in GetExtensionProperties() local
190 errno_t ret = memcpy_s(pProperties, copySize * sizeof(VkExtensionProperties), in GetExtensionProperties()
191 layerExtensions, copySize * sizeof(VkExtensionProperties)); in GetExtensionProperties()
195 *pCount = copySize; in GetExtensionProperties()
196 if (copySize < count) { in GetExtensionProperties()
211 uint32_t copySize = *pCount < count ? *pCount : count; in GetLayerProperties() local
212 errno_t ret = memcpy_s(pProperties, copySize * sizeof(VkLayerProperties), in GetLayerProperties()
213 layerProperties, copySize * sizeof(VkLayerProperties)); in GetLayerProperties()
217 *pCount = copySize; in GetLayerProperties()
218 if (copySize < count) { in GetLayerProperties()
/ohos5.0/foundation/multimodalinput/input/util/common/src/
H A Dutil.cpp214 const size_t copySize = std::min(tempName.size(), PROGRAM_NAME_SIZE - 1); in GetProgramName() local
215 if (copySize == 0) { in GetProgramName()
219 errno_t ret = memcpy_s(programName, PROGRAM_NAME_SIZE, tempName.c_str(), copySize); in GetProgramName()
/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_label.cpp480 uint16_t copySize = copyCols * sizePerPx; in CalculatedTransformDataInfo() local
481 if (memcpy_s(*buffer + beginSize, copySize, fontMap + beginSize, copySize) != EOK) { in CalculatedTransformDataInfo()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_demuxer_plugin.cpp604 …int32_t copySize = remainSize < sample->memory_->GetCapacity() ? remainSize : sample->memory_->Get… in ConvertAVPacketToSample() local
606 tempPkt->size, remainSize, copySize, samplePacket->offset); in ConvertAVPacketToSample()
607 uint32_t flag = ConvertFlagsFromFFmpeg(*tempPkt, (copySize != tempPkt->size)); in ConvertAVPacketToSample()
611 ret = WriteBuffer(sample, tempPkt->data + samplePacket->offset, copySize); in ConvertAVPacketToSample()
621 …tempPkt->stream_index, -1, copySize, trackDfxInfoMap_[tempPkt->stream_index].frameIndex++, tempPkt… in ConvertAVPacketToSample()
630 if (copySize < remainSize) { in ConvertAVPacketToSample()
631 samplePacket->offset += static_cast<uint32_t>(copySize); in ConvertAVPacketToSample()
/ohos5.0/drivers/peripheral/usb/test/unittest/host_sdk/
H A Dusb_raw_sdk_if_test.cpp242 unsigned int expectedSize, copySize, allocSize; in AcmNotifyReqCallback() local
263 copySize = MIN(currentSize, expectedSize - acm->nbIndex); in AcmNotifyReqCallback()
264 …cpy_s(&acm->notificationBuffer[acm->nbIndex], acm->nbSize - acm->nbIndex, req->buffer, copySize) != in AcmNotifyReqCallback()
268 acm->nbIndex += copySize; in AcmNotifyReqCallback()
H A Dusb_host_sdk_if_test.cpp166 uint32_t copySize = MIN(currentSize, expectedSize - acm->nbIndex); in AcmCtrlIrq() local
168 copySize) != EOK) { in AcmCtrlIrq()
171 acm->nbIndex += copySize; in AcmCtrlIrq()
/ohos5.0/drivers/peripheral/usb/net/src/
H A Dcdc_ether.c793 uint32_t copySize = MIN(currentSize, expectedSize - ecm->nbIndex); in EcmCtrlIrq() local
795 …ecm->notificationBuffer[ecm->nbIndex], ecm->nbSize - ecm->nbIndex, req->compInfo.buffer, copySize); in EcmCtrlIrq()
802 ecm->nbIndex += copySize; in EcmCtrlIrq()
H A Dusb_net_host.c355 unsigned int copySize = MIN(currentSize, expectedSize - usbNet->nbIndex); in UsbnetHostNotificationBufferProcess() local
357 usbNet->nbSize - usbNet->nbIndex, req->buffer, copySize); in UsbnetHostNotificationBufferProcess()
361 usbNet->nbIndex += copySize; in UsbnetHostNotificationBufferProcess()
/ohos5.0/drivers/peripheral/usb/serial/src/
H A Dusb_serial_rawapi.c1052 unsigned int copySize = MIN(currentSize, expectedSize - acm->nbIndex); in AcmNotificationBufferProcess() local
1053 …emcpy_s(&acm->notificationBuffer[acm->nbIndex], acm->nbSize - acm->nbIndex, req->buffer, copySize); in AcmNotificationBufferProcess()
1057 acm->nbIndex += copySize; in AcmNotificationBufferProcess()
H A Dusb_serial.c1294 unsigned int copySize = MIN(currentSize, expectedSize - acm->nbIndex); in AcmCtrlIrqCheckSize() local
1296 copySize) != EOK) { in AcmCtrlIrqCheckSize()
1301 acm->nbIndex += copySize; in AcmCtrlIrqCheckSize()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_decoder.cpp1692 size_t copySize = std::min(inputSize, SMALL_FILE_SIZE); in HeapMemAlloc() local
1693 auto tmpBuffer = std::make_unique<uint8_t[]>(copySize); in HeapMemAlloc()
1697 bool ret = input->Read(copySize, tmpBuffer.get(), copySize, readSize); in HeapMemAlloc()
1703 return process(tmpBuffer.get(), copySize); in HeapMemAlloc()