/foundation/graphic/surface_lite/frameworks/ |
H A D | buffer_queue.cpp | 52 SurfaceBufferImpl* tmpBuffer = *iterBuffer; in ~BufferQueue() local 57 bufferManager->FreeBuffer(&tmpBuffer); in ~BufferQueue() 156 SurfaceBufferImpl *tmpBuffer = *iterBuffer; in GetBuffer() local 157 if (tmpBuffer->equals(buffer)) { in GetBuffer() 158 return tmpBuffer; in GetBuffer() 167 SurfaceBufferImpl *tmpBuffer = GetBuffer(buffer); in FlushBuffer() local 168 if (tmpBuffer == nullptr || tmpBuffer->GetState() != BUFFER_STATE_REQUEST) { in FlushBuffer() 173 dirtyList_.push_back(tmpBuffer); in FlushBuffer() 174 if (&buffer != tmpBuffer) { in FlushBuffer() 231 SurfaceBufferImpl *tmpBuffer = GetBuffer(buffer); ReleaseBuffer() local 284 SurfaceBufferImpl *tmpBuffer = *iterBuffer; Reset() local 296 SurfaceBufferImpl *tmpBuffer = *iterBuffer; Reset() local 314 SurfaceBufferImpl *tmpBuffer = *iterBuffer; SetQueueSize() local [all...] |
/foundation/arkui/napi/sample/native_module_systemtest/ |
H A D | js_test_buffer_napi.cpp | 66 static char tmpBuffer[TMP_BUJJER_SIZE]; member 82 if (memset_s(tmpBuffer, sizeof(tmpBuffer), 0, sizeof(tmpBuffer)) != 0) { in NewExternalBufferFun() 86 if (memcpy_s(tmpBuffer, sizeof(tmpBuffer), paraStr.c_str(), sizeof(tmpBuffer)) != 0) { in NewExternalBufferFun() 90 NAPI_CALL(env, napi_create_external_buffer(env, TMP_BUJJER_SIZE, tmpBuffer, in NewExternalBufferFun()
|
/foundation/multimedia/av_codec/services/media_engine/filters/ |
H A D | video_decoder_adapter.cpp | 265 std::shared_ptr<AVBuffer> tmpBuffer; in AquireAvailableInputBuffer() local 266 if (inputBufferQueueConsumer_->AcquireBuffer(tmpBuffer) == Status::OK) { in AquireAvailableInputBuffer() 267 FALSE_RETURN_MSG(tmpBuffer->meta_ != nullptr, "tmpBuffer is nullptr."); in AquireAvailableInputBuffer() 269 FALSE_RETURN_MSG(tmpBuffer->meta_->GetData(Tag::REGULAR_TRACK_ID, index), "get index failed."); in AquireAvailableInputBuffer() 270 if (tmpBuffer->flag_ & (uint32_t)(Plugins::AVBufferFlag::EOS)) { in AquireAvailableInputBuffer() 271 tmpBuffer->memory_->SetSize(0); in AquireAvailableInputBuffer() 277 ", pts: %{public}" PRIu64", flag: %{public}u, errCode: %{public}d", index, tmpBuffer->GetUniqueId(), in AquireAvailableInputBuffer() 278 tmpBuffer->pts_, tmpBuffer in AquireAvailableInputBuffer() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/ |
H A D | obex_packet.h | 54 Buffer *tmpBuffer = PacketContinuousPayload(obexPacket_); in GetBuffer() local 55 return (uint8_t *)BufferPtr(tmpBuffer); in GetBuffer()
|
H A D | obex_utils.cpp | 103 Buffer *tmpBuffer = PacketContinuousPayload(&obexPacket); in ToDebugString() local 104 uint8_t *packetBuf = (uint8_t *)BufferPtr(tmpBuffer); in ToDebugString() 105 size_t packetBufSize = BufferGetSize(tmpBuffer); in ToDebugString()
|
/foundation/multimedia/av_codec/test/unittest/decoder_filter_test/ |
H A D | video_decoder_adapter_unit_test.cpp | 180 std::shared_ptr<AVBuffer> tmpBuffer = AVBuffer::CreateAVBuffer(data, sizeof(data), sizeof(data));
in HWTEST_F() local 181 tmpBuffer->meta_ = std::make_shared<Meta>();
in HWTEST_F() 182 tmpBuffer->flag_ = 1;
in HWTEST_F() 200 std::shared_ptr<AVBuffer> tmpBuffer = AVBuffer::CreateAVBuffer(data, sizeof(data), sizeof(data));
in HWTEST_F() local 201 tmpBuffer->meta_ = std::make_shared<Meta>();
in HWTEST_F() 202 tmpBuffer->flag_ = 0;
in HWTEST_F() 205 tmpBuffer = nullptr;
in HWTEST_F() 237 std::shared_ptr<AVBuffer> tmpBuffer = AVBuffer::CreateAVBuffer(data, sizeof(data), sizeof(data));
in HWTEST_F() local 254 std::shared_ptr<AVBuffer> tmpBuffer = AVBuffer::CreateAVBuffer(data, sizeof(data), sizeof(data));
in HWTEST_F() local
|
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/base/ |
H A D | engine_util.cpp | 145 const uint8_t *tmpBuffer = static_cast<const uint8_t *>(ashmem->ReadFromAshmem(size, 0)); in WriteBufferFromAshmem() local 146 if (tmpBuffer == nullptr) { in WriteBufferFromAshmem() 157 if (memcpy_s(buffer, size, tmpBuffer, size) != 0) { in WriteBufferFromAshmem()
|
/foundation/graphic/graphic_surface/surface/test/unittest/ |
H A D | surface_utils_test.cpp | 218 sptr<SurfaceBuffer> tmpBuffer = nullptr; in HWTEST_F() local 219 utils->ComputeTransformMatrix(matrix, TRANSFORM_MATRIX_SIZE, tmpBuffer, transform, crop); in HWTEST_F() 221 utils->ComputeTransformMatrixV2(matrix, TRANSFORM_MATRIX_SIZE, tmpBuffer, transform, crop); in HWTEST_F()
|
/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/InnerAPI/ |
H A D | videodec_ndk_inner_sample.cpp | 640 uint8_t *tmpBuffer = new uint8_t[info.size]; in ProcessOutputData() local 641 if (memcpy_s(tmpBuffer, info.size, buffer->GetBase(), info.size) != EOK) { in ProcessOutputData() 644 fwrite(tmpBuffer, 1, info.size, file); in ProcessOutputData() 645 SHA512_Update(&g_ctx, tmpBuffer, info.size); in ProcessOutputData() 646 delete[] tmpBuffer; in ProcessOutputData()
|
/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/ |
H A D | videodec_ndk_sample.cpp | 397 uint8_t *tmpBuffer = new uint8_t[attr.size]; in WriteOutputFrame() local 398 if (memcpy_s(tmpBuffer, attr.size, OH_AVMemory_GetAddr(buffer), attr.size) != EOK) { in WriteOutputFrame() 401 fwrite(tmpBuffer, 1, attr.size, outFile); in WriteOutputFrame() 402 SHA512_Update(&c, tmpBuffer, attr.size); in WriteOutputFrame() 403 delete[] tmpBuffer; in WriteOutputFrame()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/sink/ |
H A D | audio_server_sink_plugin.cpp | 862 std::vector<uint8_t> tmpBuffer(destBuffer + destLength - remained, destBuffer + destLength); in DrainCacheData() 864 cachedBuffers_.emplace_front(std::move(tmpBuffer)); in DrainCacheData() 876 std::vector<uint8_t> tmpBuffer(inputBuffer, inputBuffer + bufferSize); in CacheData() 877 cachedBuffers_.emplace_back(std::move(tmpBuffer)); in CacheData()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/codec/src/ |
H A D | image_source.cpp | 1559 delete[] prereadBuffer; // Don't forget to delete tmpBuffer if read failed 1602 auto tmpBuffer = ReadSourceBuffer(bufferSize, error); 1603 if (tmpBuffer == nullptr) { 1606 uint32_t result = CreateExifMetadata(tmpBuffer, bufferSize, addFlag); 1610 delete[] tmpBuffer; // Don't forget to delete tmpBuffer after using it 2535 auto tmpBuffer = new (std::nothrow) uint8_t[bufferSize]; 2536 if (tmpBuffer == nullptr) { 2544 bool retRead = sourceStreamPtr_->Read(bufferSize, tmpBuffer, bufferSize, readSize); 2548 delete[] tmpBuffer; [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/ |
H A D | ext_decoder.cpp | 862 std::unique_ptr<uint8_t[]> tmpBuffer;
in HeapMemAlloc() local 864 tmpBuffer = make_unique<uint8_t[]>(byteCount);
in HeapMemAlloc() 865 dstBuffer = tmpBuffer.get();
in HeapMemAlloc() 1592 auto tmpBuffer = std::make_unique<uint8_t[]>(copySize);
in HeapMemAlloc() local 1596 bool ret = input->Read(copySize, tmpBuffer.get(), copySize, readSize);
in HeapMemAlloc() 1602 return process(tmpBuffer.get(), copySize);
in HeapMemAlloc()
|
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | capturer_in_client.cpp | 1669 BufferDesc tmpBuffer = {reinterpret_cast<uint8_t *>(&buffer), userSize, userSize}; in Read() local 1670 DfxOperation(tmpBuffer, clientConfig_.streamInfo.format, clientConfig_.streamInfo.channels); in Read()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/primary/ |
H A D | audio_capturer_source.cpp | 818 BufferDesc tmpBuffer = {reinterpret_cast<uint8_t*>(frame), replyBytes, replyBytes}; in CaptureFrame() local 819 DfxOperation(tmpBuffer, static_cast<AudioSampleFormat>(attr_.format), static_cast<AudioChannel>(attr_.channel)); in CaptureFrame()
|