Home
last modified time | relevance | path

Searched refs:buffer (Results 901 - 925 of 2266) sorted by relevance

1...<<31323334353637383940>>...91

/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/
H A Dnstackx_socket.h46 int32_t SocketSend(const Socket *socket, const uint8_t *buffer, size_t length);
50 int32_t SocketRecv(Socket *socket, uint8_t *buffer, size_t length, struct sockaddr_in *srcAddr,
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Dmatrix44.h71 * @brief Sets Matrix44 to sixteen values in buffer.
72 * @param buffer a [col][row] array. eg. buffer[0] maps to m00, buffer[1] maps to m10
75 void SetMatrix44ColMajor(const Buffer& buffer);
76 void SetMatrix44RowMajor(const Buffer& buffer);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Dmatrix44_impl.h43 virtual void SetMatrix44ColMajor(const std::array<scalar, MATRIX44_SIZE>& buffer) = 0;
44 virtual void SetMatrix44RowMajor(const std::array<scalar, MATRIX44_SIZE>& buffer) = 0;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_matrix44.h44 void SetMatrix44ColMajor(const std::array<scalar, MATRIX44_SIZE>& buffer) override;
45 void SetMatrix44RowMajor(const std::array<scalar, MATRIX44_SIZE>& buffer) override;
/foundation/multimedia/audio_framework/services/audio_service/server/src/
H A Dcapturer_in_server.cpp57 AUDIO_INFO_LOG("ConfigProcessBuffer: process buffer already configed!"); in ConfigServerBuffer()
80 CHECK_AND_RETURN_RET_LOG(audioServerBuffer_ != nullptr, ERR_OPERATION_FAILED, "Create oh audio buffer failed"); in ConfigServerBuffer()
82 // we need to clear data buffer to avoid dirty data. in ConfigServerBuffer()
86 AUDIO_DEBUG_LOG("Clear data buffer, ret:%{public}d", ret); in ConfigServerBuffer()
95 AUDIO_ERR_LOG("InitBufferStatus failed, null buffer."); in InitBufferStatus()
228 ringCache_->Enqueue({srcBuffer.buffer, srcBuffer.bufLength}); in ReadData()
242 dstBuffer.buffer = dischargeBuffer_.get(); // discharge valid data. in ReadData()
245 memset_s(static_cast<void *>(dstBuffer.buffer), dstBuffer.bufLength, 0, dstBuffer.bufLength); in ReadData()
247 ringCache_->Dequeue({dstBuffer.buffer, dstBuffer.bufLength}); in ReadData()
248 DumpFileUtil::WriteDumpFile(dumpS2C_, static_cast<void *>(dstBuffer.buffer), dstBuffe in ReadData()
276 ResolveBuffer(std::shared_ptr<OHAudioBuffer> &buffer) ResolveBuffer() argument
[all...]
H A Daudio_process_in_server.cpp58 if (convertedBuffer_.buffer != nullptr) { in ~AudioProcessInServer()
59 delete [] convertedBuffer_.buffer; in ~AudioProcessInServer()
86 int32_t AudioProcessInServer::ResolveBuffer(std::shared_ptr<OHAudioBuffer> &buffer) in ResolveBuffer() argument
90 "ResolveBuffer failed, buffer is not configed."); in ResolveBuffer()
93 AUDIO_ERR_LOG("ResolveBuffer failed, buffer is nullptr."); in ResolveBuffer()
95 buffer = processBuffer_; in ResolveBuffer()
96 CHECK_AND_RETURN_RET_LOG(buffer != nullptr, ERR_ILLEGAL_STATE, "ResolveBuffer failed, processBuffer_ is null."); in ResolveBuffer()
104 CHECK_AND_RETURN_RET_LOG(processBuffer_ != nullptr, ERR_ILLEGAL_STATE, "buffer not inited!"); in RequestHandleInfo()
301 nullptr, "GetStreamBuffer failed:process buffer not config."); in GetStreamBuffer()
346 "InitBufferStatus failed, null buffer in InitBufferStatus()
370 ConfigProcessBuffer(uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, DeviceStreamInfo &serverStreamInfo, const std::shared_ptr<OHAudioBuffer> &buffer) ConfigProcessBuffer() argument
[all...]
H A Daudio_endpoint.cpp144 int32_t ResolveBuffer(std::shared_ptr<OHAudioBuffer> &buffer) override;
204 * @param nanoTime the time in nanosecond when device-sink start read the buffer
238 void CheckPlaySignal(uint8_t *buffer, size_t bufferSize);
239 void CheckRecordSignal(uint8_t *buffer, size_t bufferSize);
240 void DfxOperation(BufferDesc &buffer, AudioSampleFormat format, AudioChannel channel) const;
407 int32_t AudioEndpointInner::ResolveBuffer(std::shared_ptr<OHAudioBuffer> &buffer) in ResolveBuffer() argument
484 // buffer init in InitDupStream()
486 CHECK_AND_RETURN_RET_LOG(dupBufferSize_ < dstAudioBuffer_->GetDataSize(), ERR_OPERATION_FAILED, "Init buffer fail"); in InitDupStream()
490 AUDIO_WARNING_LOG("memset buffer fail, ret %{public}d", ret); in InitDupStream()
580 AUDIO_INFO_LOG("Set device buffer nul in Release()
1639 DfxOperation(BufferDesc &buffer, AudioSampleFormat format, AudioChannel channel) const DfxOperation() argument
2173 CheckPlaySignal(uint8_t *buffer, size_t bufferSize) CheckPlaySignal() argument
2203 CheckRecordSignal(uint8_t *buffer, size_t bufferSize) CheckRecordSignal() argument
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/
H A Dgpu_memory_allocator_vk.cpp217 PLUGIN_ASSERT(memoryDebugStruct_.buffer == 0); in ~PlatformGpuMemoryAllocator()
238 const VmaAllocationCreateInfo& allocationCreateInfo, VkBuffer& buffer, VmaAllocation& allocation, in CreateBuffer()
244 &buffer, // pBuffer in CreateBuffer()
250 "Out of buffer memory with custom memory pool (i.e. block size might be exceeded), bytesize: %" PRIu64 in CreateBuffer()
256 allocator_, &bufferCreateInfo, &fallBackAllocationCreateInfo, &buffer, &allocation, &allocationInfo); in CreateBuffer()
260 "VKResult not VK_SUCCESS in buffer memory allocation(result : %i), (allocation bytesize : %" PRIu64 ")", in CreateBuffer()
267 memoryDebugStruct_.buffer += (uint64_t)allocation->GetSize(); in CreateBuffer()
273 void PlatformGpuMemoryAllocator::DestroyBuffer(VkBuffer buffer, VmaAllocation allocation) in DestroyBuffer() argument
283 buffer, // buffer in DestroyBuffer()
237 CreateBuffer(const VkBufferCreateInfo& bufferCreateInfo, const VmaAllocationCreateInfo& allocationCreateInfo, VkBuffer& buffer, VmaAllocation& allocation, VmaAllocationInfo& allocationInfo) CreateBuffer() argument
[all...]
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/
H A Dhttp_source_plugin.cpp251 Status HttpSourcePlugin::Read(std::shared_ptr<Buffer>& buffer, uint64_t offset, size_t expectedLen) in Read() argument
253 return Read(0, buffer, offset, expectedLen); in Read()
256 Status HttpSourcePlugin::Read(int32_t streamId, std::shared_ptr<Buffer>& buffer, uint64_t offset, size_t expectedLen) in Read() argument
264 if (buffer == nullptr) { in Read()
265 buffer = std::make_shared<Buffer>(); in Read()
269 if (buffer->IsEmpty()) { in Read()
270 MEDIA_LOG_W("buffer is empty."); in Read()
271 bufData = buffer->AllocMemory(nullptr, expectedLen); in Read()
273 bufData = buffer->GetMemory(); in Read()
287 buffer in Read()
[all...]
/foundation/multimedia/av_session/services/session/ipc/stub/
H A Davsession_stub.cpp136 int32_t AVSessionStub::SetImageData(AVMetaData& meta, const char *buffer, int twoImageLength) in SetImageData() argument
144 std::vector<uint8_t> mediaImageBuffer(buffer, buffer + mediaImageLength); in SetImageData()
149 std::vector<uint8_t> avQueueImageBuffer(buffer + mediaImageLength, buffer + twoImageLength); in SetImageData()
175 const char *buffer = nullptr; in HandleSetAVMetaData() local
176 buffer = reinterpret_cast<const char *>(data.ReadRawData(twoImageLength)); in HandleSetAVMetaData()
177 if (buffer == nullptr) { in HandleSetAVMetaData()
185 CHECK_AND_RETURN_RET_LOG(!SetImageData(meta, buffer, twoImageLength), ERR_NONE, "SetImageData fail"); in HandleSetAVMetaData()
/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/
H A Dwebp_decoder.cpp366 output.u.RGBA.rgba = static_cast<uint8_t *>(context.pixelsBuffer.buffer); in InitWebpOutput()
416 context.pixelsBuffer.buffer = ptr; in SharedMemoryCreate()
422 context.pixelsBuffer.buffer = nullptr; in SharedMemoryCreate()
442 IMAGE_LOGE("alloc output buffer size:[%{public}llu] error.", in HeapMemoryCreate()
449 IMAGE_LOGE("memset buffer failed.", backRet); in HeapMemoryCreate()
456 IMAGE_LOGE("memset buffer failed."); in HeapMemoryCreate()
462 context.pixelsBuffer.buffer = outputBuffer; in HeapMemoryCreate()
499 context.pixelsBuffer.buffer = sb->GetVirAddr(); in DmaMemoryCreate()
511 if (context.pixelsBuffer.buffer != nullptr && context.allocatorType == AllocatorType::HEAP_ALLOC) { in AllocOutputBuffer()
512 free(context.pixelsBuffer.buffer); in AllocOutputBuffer()
[all...]
/foundation/multimedia/media_foundation/engine/plugin/plugins/demuxer/minimp4_demuxer/
H A Dminimp4_demuxer_plugin.cpp173 auto buffer = std::make_shared<Buffer>(); in DoReadFromSource() local
174 auto bufData = buffer->AllocMemory(nullptr, readSize); in DoReadFromSource()
179 auto result = ioContext_.dataSource->ReadAt(ioContext_.offset, buffer, static_cast<size_t>(readSize)); in DoReadFromSource()
218 // 将剩余数据移动到buffer的起始位置 in GetDataFromSource()
224 MEDIA_LOG_E("copy buffer error(" PUBLIC_LOG_D32 ")", ret); in GetDataFromSource()
229 MEDIA_LOG_E("memset_s buffer error(" PUBLIC_LOG_D32 ")", ret); in GetDataFromSource()
309 int MiniMP4DemuxerPlugin::ReadCallback(int64_t offset, void* buffer, size_t size, void* token) in ReadCallback() argument
319 (void)memcpy_s(buffer, size, mp4Demuxer->inIoBuffer_ + in ReadCallback()
337 (void)memcpy_s(buffer, size, mp4Demuxer->inIoBuffer_, size); in ReadCallback()
444 auto buffer in Sniff() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dapi_test.cpp49 static OH_AVBuffer *buffer = nullptr; member
61 buffer = OH_AVBuffer_Create(g_width * g_height); in SetUp()
80 if (buffer != nullptr) { in TearDown()
81 OH_AVBuffer_Destroy(buffer); in TearDown()
82 buffer = nullptr; in TearDown()
366 ASSERT_EQ(AV_ERR_INVALID_VAL, OH_AVDemuxer_ReadSampleBuffer(nullptr, trackIndex, buffer)); in HWTEST_F()
381 ASSERT_EQ(AV_ERR_OPERATE_NOT_PERMIT, OH_AVDemuxer_ReadSampleBuffer(demuxer, trackIndex, buffer)); in HWTEST_F()
386 * @tc.name : OH_AVDemuxer_ReadSampleBuffer para error, input buffer is not enough
425 * @tc.name : OH_AVDemuxer_ReadSampleBuffer para error, input null buffer
697 ret = OH_AVDemuxer_ReadSampleBuffer(demuxer, 0, buffer); in HWTEST_F()
[all...]
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/
H A Dclient_trans_proxy_file_common.c215 uint8_t *buffer = (uint8_t *)SoftBusCalloc(bufferSize); in FileListToBuffer() local
216 if (buffer == NULL) { in FileListToBuffer()
223 struct FileListItem *fileItem = (struct FileListItem *)(buffer + offset); in FileListToBuffer()
239 SoftBusFree(buffer); in FileListToBuffer()
243 outbufferInfo->buffer = buffer; in FileListToBuffer()
248 char *BufferToFileList(uint8_t *buffer, uint32_t bufferSize, int32_t *fileCount) in BufferToFileList() argument
250 if ((buffer == NULL) || (fileCount == NULL) || bufferSize < sizeof(struct FileListItem)) { in BufferToFileList()
262 const struct FileListItem *fileListItem = (const struct FileListItem *)(buffer + offset); in BufferToFileList()
273 // note: no \0 in buffer in BufferToFileList()
[all...]
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/
H A Djs_common_utils.cpp40 char *buffer = (char *)malloc(bufferSize + 1); in Convert2NativeValue() local
41 if (buffer == nullptr) { in Convert2NativeValue()
42 LOG_ERROR("malloc failed, buffer is nullptr."); in Convert2NativeValue()
45 status = napi_get_value_string_utf8(env, jsValue, buffer, bufferSize + 1, &bufferSize); in Convert2NativeValue()
47 free(buffer); in Convert2NativeValue()
51 output = buffer; in Convert2NativeValue()
52 free(buffer); in Convert2NativeValue()
248 napi_value buffer = nullptr; in Convert2JSValue() local
249 napi_status ret = napi_create_arraybuffer(env, size, &data, &buffer); in Convert2JSValue()
258 ret = napi_create_typedarray(env, napi_uint8_array, size, buffer, in Convert2JSValue()
[all...]
/foundation/communication/ipc/ipc/test/auxiliary/native/src/
H A Dtest_service_skeleton.cpp302 unsigned char *buffer = new (std::nothrow) unsigned char[length]; in TestRawDataTransaction() local
303 if (buffer == nullptr) { in TestRawDataTransaction()
304 ZLOGE(LABEL, "new buffer failed of length = %{public}d", length); in TestRawDataTransaction()
307 buffer[0] = 'a'; in TestRawDataTransaction()
308 buffer[length - 1] = 'z'; in TestRawDataTransaction()
311 dataParcel.WriteRawData(buffer, length); in TestRawDataTransaction()
316 delete [] buffer; in TestRawDataTransaction()
349 const char *buffer = nullptr; in TestRawDataReply() local
350 if ((buffer = reinterpret_cast<const char *>(replyParcel.ReadRawData((size_t)length))) == nullptr) { in TestRawDataReply()
354 if (buffer[ in TestRawDataReply()
986 const char *buffer = nullptr; TransferRawData() local
1027 unsigned char *buffer = new (std::nothrow) unsigned char[length]; ReplyRawData() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/
H A Dcommunicator_aggregator.cpp274 commMap_.at(commLabel).first->OnBufferReceive(entry.srcTarget, entry.buffer); in ActivateCommunicator()
307 return E_OK; // Returns E_OK here to indicate this buffer was accepted though discard immediately in ScheduleSendTask()
421 delete inTask.buffer; in RetryUntilTimeout()
422 inTask.buffer = nullptr; in RetryUntilTimeout()
630 SerialBuffer *buffer = new (std::nothrow) SerialBuffer(); in OnAppLayerFrameReceive() local
631 if (buffer == nullptr) { in OnAppLayerFrameReceive()
635 int errCode = buffer->SetExternalBuff(bytes, length - inResult.GetPaddingLen(), in OnAppLayerFrameReceive()
639 delete buffer; in OnAppLayerFrameReceive()
640 buffer = nullptr; in OnAppLayerFrameReceive()
643 return OnAppLayerFrameReceive(srcTarget, buffer, inResul in OnAppLayerFrameReceive()
792 SerialBuffer *buffer = ProtocolProto::BuildEmptyFrameForVersionNegotiate(errCode); TriggerVersionNegotiation() local
842 SerialBuffer *buffer = ProtocolProto::BuildFeedbackMessageFrame(oriMsg, dstLabel, errCode); TriggerCommunicatorNotFoundFeedback() local
[all...]
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ops/
H A Dsub_builder.cpp44 void* buffer = tensor->GetBuffer(); in SetActivationType() local
45 if (buffer == nullptr) { in SetActivationType()
46 LOGE("[SubBuilder] Tensor buffer is nullptr."); in SetActivationType()
50 int8_t* fuseData = static_cast<int8_t*>(buffer); in SetActivationType()
H A Dconcat_builder.cpp45 void* buffer = tensor->GetBuffer(); in SetAxis() local
46 if (buffer == nullptr) { in SetAxis()
50 m_axis = *(static_cast<int64_t*>(buffer)); in SetAxis()
H A Ddiv_builder.cpp48 void* buffer = tensor->GetBuffer(); in SetActicationType() local
49 if (buffer == nullptr) { in SetActicationType()
53 const int8_t* fuseData = static_cast<int8_t*>(buffer); in SetActicationType()
H A Deltwise_builder.cpp45 void* buffer = tensor->GetBuffer(); in SetMode() local
46 if (buffer == nullptr) { in SetMode()
50 int8_t eltwiseMode = *static_cast<int8_t*>(buffer); in SetMode()
H A Dunstack_builder.cpp43 void* buffer = tensor->GetBuffer(); in SetAxis() local
44 if (buffer == nullptr) { in SetAxis()
45 LOGE("[Unstack] Tensor buffer is nullptr."); in SetAxis()
48 m_axis = *(static_cast<const int64_t*>(buffer)); in SetAxis()
/foundation/ai/neural_network_runtime/test/system_test/common/
H A Dnnrt_test.h62 const void* buffer,
64 virtual OH_NN_ReturnCode SetOutput(uint32_t index, void* buffer, size_t length);
67 const void* buffer,
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/nnrt/
H A Dnnrt_implementation.h39 OH_NN_ReturnCode (*OH_NNModel_SetTensorData)(OH_NNModel* model, uint32_t index, const void* buffer,
64 const OH_NN_Tensor* nnTensor, const void* buffer, size_t length);
65 OH_NN_ReturnCode (*OH_NNExecutor_SetOutput)(const OH_NNExecutor* executor, uint32_t outputIndex, void* buffer,
/foundation/arkui/ace_engine/frameworks/base/resource/
H A Ddata_provider_manager.cpp66 auto buffer = std::unique_ptr<void, decltype(&std::free)>(std::malloc(size), std::free); in GetDataProviderResFromUri() local
67 auto readRes = read(fd, buffer.get(), size); in GetDataProviderResFromUri()
74 auto result = std::make_unique<DataProviderRes>(std::move(buffer), size); in GetDataProviderResFromUri()

Completed in 19 milliseconds

1...<<31323334353637383940>>...91