Home
last modified time | relevance | path

Searched refs:buffer (Results 1076 - 1100 of 4498) sorted by relevance

1...<<41424344454647484950>>...180

/foundation/multimedia/drm_framework/frameworks/native/test/common/src/
H A Dhttp.cpp21 static size_t HttpCurlWriteStrData(void *buffer, size_t size, size_t nmemb, void *userp) in HttpCurlWriteStrData() argument
23 if (userp == nullptr || buffer == nullptr || size == 0) { in HttpCurlWriteStrData()
30 pstr->append((const char *)buffer, realSize); in HttpCurlWriteStrData()
/foundation/multimedia/media_library/frameworks/native/c_api/moving_photo_capi/
H A Dmoving_photo_capi.cpp55 MediaLibrary_ResourceType resourceType, const uint8_t** buffer, uint32_t* size) in OH_MovingPhoto_RequestContentWithBuffer()
60 CHECK_AND_RETURN_RET_LOG(buffer != nullptr, MEDIA_LIBRARY_PARAMETER_ERROR, "buffer is nullptr!"); in OH_MovingPhoto_RequestContentWithBuffer()
63 return movingPhoto->movingPhoto_->RequestContentWithBuffer(resourceType, buffer, size); in OH_MovingPhoto_RequestContentWithBuffer()
54 OH_MovingPhoto_RequestContentWithBuffer(OH_MovingPhoto* movingPhoto, MediaLibrary_ResourceType resourceType, const uint8_t** buffer, uint32_t* size) OH_MovingPhoto_RequestContentWithBuffer() argument
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_tool/src/
H A Dcontrol_main.cpp50 std::array<char, PATH_MAX> buffer {0}; in Init()
51 getcwd(buffer.data(), PATH_MAX); in Init()
52 env.workPath.append(buffer.data()); in Init()
/foundation/multimedia/player_framework/test/fuzztest/common/
H A Dtest_player.cpp101 struct stat64 buffer; in SetFdSource() local
102 if (fstat64(fdValue, &buffer) != 0) { in SetFdSource()
107 int64_t lengthValue = static_cast<int64_t>(buffer.st_size); in SetFdSource()
/foundation/multimedia/player_framework/test/fuzztest/avmetadata_fuzztest/avmetadatasetsource_fuzzer/
H A Davmetadatasetsource_fuzzer.cpp56 struct stat64 buffer; in FuzzAVMetadataSetSource() local
57 if (fstat64(setsourcefd, &buffer) != 0) { in FuzzAVMetadataSetSource()
62 int64_t setsourcesize = static_cast<int64_t>(buffer.st_size); in FuzzAVMetadataSetSource()
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/
H A Dstream_depacketizer.cpp40 void StreamDepacketizer::DepacketizeBuffer(char *buffer, uint32_t bufferSize) in DepacketizeBuffer() argument
42 char *ptr = buffer; in DepacketizeBuffer()
61 int remain = static_cast<int>(bufferSize - (ptr - buffer)); in DepacketizeBuffer()
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/stream_depacketizer_test/
H A Dstream_depacketizer_test.cpp98 char buffer[Communication::SoftBus::MAX_STREAM_LEN - OVERHEAD_LEN + 1] = {0}; in HWTEST_F() local
108 streamDepacketizer->DepacketizeBuffer((char *)buffer, sizeof(buffer)); in HWTEST_F()
/foundation/communication/netstack/utils/tlv_utils/include/
H A Dtlv_utils.h73 static uint8_t *GetNextTlv(const uint8_t *buffer);
74 static uint8_t *ParseTlv(const uint8_t *buffer, TlvCommon *tlv, const uint8_t *boundary, uint32_t *retCode);
75 static uint8_t *AppendTlv(uint8_t *buffer, const TlvCommon *tlv, const uint8_t *boundary, uint32_t *retCode);
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcameradata/
H A Ddcamera_stream_data_process_producer.h45 void FeedStream(const std::shared_ptr<DataBuffer>& buffer);
51 int32_t FeedStreamToDriver(const DHBase& dhBase, const std::shared_ptr<DataBuffer>& buffer);
52 int32_t CheckSharedMemory(const DCameraBuffer& sharedMemory, const std::shared_ptr<DataBuffer>& buffer);
H A Ddcamera_stream_data_process.h37 void FeedStream(std::shared_ptr<DataBuffer>& buffer);
50 void FeedStreamToSnapShot(const std::shared_ptr<DataBuffer>& buffer);
51 void FeedStreamToContinue(const std::shared_ptr<DataBuffer>& buffer);
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include/
H A Dhdi_framebuffer_surface.h31 : buffer(std::move(buf)), acquireFence(std::move(fence)), acquireTime(timeStamp), damageRect(damage) in FrameBufferEntry()
36 sptr<SurfaceBuffer> buffer; member
49 sptr<SurfaceBuffer> &buffer, const sptr<SyncFence> &releaseFence);
/test/xts/acts/multimedia/audio/ohaudioNdktest/
H A DActsOhaudioNdkTest.cpp29 void* buffer, in AudioRendererOnWriteData()
33 mockPtr->OnWriteData(renderer, userData, buffer, bufferLen); in AudioRendererOnWriteData()
82 void* buffer, in HWTEST()
27 AudioRendererOnWriteData(OH_AudioRenderer* renderer, void* userData, void* buffer, int32_t bufferLen) AudioRendererOnWriteData() argument
/test/xts/hats/ai/nnrt/hdi/v1_0/common/
H A Dhdi_nnrt_test_utils.h53 static void UnmapMemory(float* buffer);
55 static void SetData(float* buffer, size_t length, float* data);
60 void PrintTensor(const float *buffer, size_t length);
/test/xts/hats/ai/nnrt/hdi/v2_0/common/
H A Dhdi_nnrt_test_utils.h53 static void UnmapMemory(float* buffer);
55 static void SetData(float* buffer, size_t length, float* data);
60 void PrintTensor(const float *buffer, size_t length);
/foundation/graphic/graphic_surface/surface/src/
H A Dbuffer_queue_producer.cpp171 (WriteSurfaceBufferImpl(reply, retval.sequence, retval.buffer) != GSERROR_OK || in RequestBufferRemote()
217 if (WriteSurfaceBufferImpl(reply, retvalues[i].sequence, retvalues[i].buffer) != GSERROR_OK || in RequestBuffersRemote()
351 sptr<SurfaceBuffer> buffer; in GetLastFlushedBufferRemote() local
355 GSError sRet = GetLastFlushedBuffer(buffer, fence, matrix, isUseNewMatrix); in GetLastFlushedBufferRemote()
360 uint32_t sequence = buffer->GetSeqNum(); in GetLastFlushedBufferRemote()
361 if (WriteSurfaceBufferImpl(reply, sequence, buffer) != GSERROR_OK || in GetLastFlushedBufferRemote()
362 buffer->WriteBufferRequestConfig(reply) != GSERROR_OK) { in GetLastFlushedBufferRemote()
376 sptr<SurfaceBuffer> buffer = nullptr; in AttachBufferToQueueRemote() local
378 GSError ret = ReadSurfaceBufferImpl(arguments, sequence, buffer); in AttachBufferToQueueRemote()
379 if (ret != GSERROR_OK || buffer in AttachBufferToQueueRemote()
402 sptr<SurfaceBuffer> buffer = nullptr; DetachBufferFromQueueRemote() local
420 sptr<SurfaceBuffer> buffer; AttachBufferRemote() local
855 sptr<SurfaceBuffer> buffer; AcquireLastFlushedBufferRemote() local
898 AcquireLastFlushedBuffer(sptr<SurfaceBuffer> &buffer, sptr<SyncFence> &fence, float matrix[16], uint32_t matrixSize, bool isUseNewMatrix) AcquireLastFlushedBuffer() argument
1003 GetLastFlushedBuffer(sptr<SurfaceBuffer>& buffer, sptr<SyncFence>& fence, float matrix[16], bool isUseNewMatrix) GetLastFlushedBuffer() argument
1012 AttachBufferToQueue(sptr<SurfaceBuffer> buffer) AttachBufferToQueue() argument
1020 DetachBufferFromQueue(sptr<SurfaceBuffer> buffer) DetachBufferFromQueue() argument
1028 AttachBuffer(sptr<SurfaceBuffer>& buffer) AttachBuffer() argument
1034 AttachBuffer(sptr<SurfaceBuffer>& buffer, int32_t timeOut) AttachBuffer() argument
1042 DetachBuffer(sptr<SurfaceBuffer>& buffer) DetachBuffer() argument
[all...]
/base/startup/init/services/begetctl/shell/
H A Dshell_bas.c176 char data = *(shell->buffer + i); in BShellEnvParseParam()
183 shell->args[shell->argc++] = shell->buffer + i; in BShellEnvParseParam()
186 if (*(shell->buffer + i) == '\\' && *(shell->buffer + i + 1) != 0) { in BShellEnvParseParam()
190 *(shell->buffer + i) = 0; in BShellEnvParseParam()
211 *(shell->buffer + shell->length++) = 0; in BShellEnvHandleEnter()
253 shell->buffer[shell->length] = 0; in BShellEnvHandleBackspace()
257 shell->buffer[shell->cursor + i - 1] = shell->buffer[shell->cursor + i]; in BShellEnvHandleBackspace()
261 shell->buffer[shel in BShellEnvHandleBackspace()
[all...]
/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/
H A Dvideodec_ndk_sample.cpp77 sptr<SurfaceBuffer> buffer; variable
79 cs->AcquireBuffer(buffer, flushFence, timestamp, damage);
80 cs->ReleaseBuffer(buffer, -1);
142 bool VDecNdkSample::MdCompare(unsigned char *buffer, int len, const char *source[]) in MdCompare() argument
394 void VDecNdkSample::WriteOutputFrame(uint32_t index, OH_AVMemory *buffer, OH_AVCodecBufferAttr attr, FILE *outFile) in WriteOutputFrame() argument
398 if (memcpy_s(tmpBuffer, attr.size, OH_AVMemory_GetAddr(buffer), attr.size) != EOK) { in WriteOutputFrame()
440 OH_AVMemory *buffer = signal_->outBufferQueue_.front(); in OutputFunc() local
458 WriteOutputFrame(index, buffer, attr, outFile); in OutputFunc()
507 int32_t VDecNdkSample::ReadData(uint32_t index, OH_AVMemory *buffer) in ReadData() argument
536 return SendData(bufferSize, index, buffer); in ReadData()
539 SendData(uint32_t bufferSize, uint32_t index, OH_AVMemory *buffer) SendData() argument
608 auto buffer = signal_->inBufferQueue_.front(); InputFunc_AVCC() local
638 auto buffer = signal_->inBufferQueue_.front(); InputFunc_FUZZ() local
[all...]
/foundation/multimedia/media_lite/services/player_lite/server/src/
H A Dplayer_server.cpp138 int GetAvailableBuffer(IdleBuffer* buffer);
190 IdleBuffer buffer; in OnBufferAvailable() local
192 buffer.idx = index; in OnBufferAvailable()
193 buffer.offset = offset; in OnBufferAvailable()
194 buffer.size = size; in OnBufferAvailable()
195 availableBuffer.push_back(buffer); in OnBufferAvailable()
199 int ServerStreamSource::GetAvailableBuffer(IdleBuffer* buffer) in GetAvailableBuffer() argument
206 *buffer = availableBuffer[0]; in GetAvailableBuffer()
214 IdleBuffer buffer; in streamProcess() local
230 ret = stream->GetAvailableBuffer(&buffer); in streamProcess()
[all...]
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/hdi_device/
H A Dhdi_device_test.cpp94 const OHOS::HDI::Nnrt::V2_0::SharedBuffer& buffer) in MindIR_LiteGraph_To_Model()
152 void GetBuffer(void*& buffer, size_t length);
157 void HDIDeviceTest::GetBuffer(void*& buffer, size_t length) in GetBuffer() argument
171 buffer = memoryManager->MapMemory(fd, length); in GetBuffer()
172 EXPECT_NE(buffer, nullptr); in GetBuffer()
174 const char* result = static_cast<const char*>(buffer); in GetBuffer()
192 V2_0::SharedBuffer buffer {1, 1, 0, 1}; in PrepareModel()
194 .WillRepeatedly(::testing::DoAll(::testing::SetArgReferee<1>(buffer), ::testing::Return(allocBufferType))); in PrepareModel()
218 V2_1::SharedBuffer buffer {1, 1, 0, 1}; in PrepareModelv2()
220 .WillRepeatedly(::testing::DoAll(::testing::SetArgReferee<1>(buffer), in PrepareModelv2()
93 MindIR_LiteGraph_To_Model(const LiteGraph* lite_graph, const OHOS::HDI::Nnrt::V2_0::SharedBuffer& buffer) MindIR_LiteGraph_To_Model() argument
987 void *buffer = nullptr; HWTEST_F() local
1021 void *buffer = nullptr; HWTEST_F() local
1076 void *buffer = nullptr; HWTEST_F() local
1114 void *buffer = nullptr; HWTEST_F() local
1152 void *buffer = nullptr; HWTEST_F() local
1190 void *buffer = nullptr; HWTEST_F() local
1229 V2_0::SharedBuffer buffer; HWTEST_F() local
1340 void *buffer = nullptr; HWTEST_F() local
1374 void *buffer = hdiDevice->AllocateBuffer(length); HWTEST_F() local
1389 void *buffer = nullptr; HWTEST_F() local
1401 auto* buffer = new(std::nothrow) char[length]; HWTEST_F() local
1419 void *buffer = nullptr; HWTEST_F() local
2359 void *buffer = nullptr; HWTEST_F() local
2393 void *buffer = nullptr; HWTEST_F() local
2448 void *buffer = nullptr; HWTEST_F() local
2486 void *buffer = nullptr; HWTEST_F() local
2524 void *buffer = nullptr; HWTEST_F() local
2562 void *buffer = nullptr; HWTEST_F() local
2601 V2_1::SharedBuffer buffer; HWTEST_F() local
2712 void *buffer = nullptr; HWTEST_F() local
2746 void *buffer = hdiDevice->AllocateBuffer(length); HWTEST_F() local
2761 void *buffer = nullptr; HWTEST_F() local
2773 auto* buffer = new(std::nothrow) char[length]; HWTEST_F() local
2791 void *buffer = nullptr; HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/test/moduletest/muxer/InnerAPI/
H A DInnerAVMuxerFunctionTest.cpp63 std::vector<uint8_t> buffer(extraSize); in AddAudioTrack()
64 read(g_inputFile, buffer.data(), extraSize); in AddAudioTrack()
65 audioParams->Set<Tag::MEDIA_CODEC_CONFIG>(buffer); in AddAudioTrack()
83 std::vector<uint8_t> buffer(extraSize); in AddAudioTrackAAC()
84 read(g_inputFile, buffer.data(), extraSize); in AddAudioTrackAAC()
85 audioParams->Set<Tag::MEDIA_CODEC_CONFIG>(buffer); in AddAudioTrackAAC()
103 std::vector<uint8_t> buffer(extraSize); in AddVideoTrack()
104 read(g_inputFile, buffer.data(), extraSize); in AddVideoTrack()
105 videoParams->Set<Tag::MEDIA_CODEC_CONFIG>(buffer); in AddVideoTrack()
138 unsigned char buffer[10 in RemoveHeader() local
442 unsigned char buffer[100] = {0}; RunMuxer() local
[all...]
/test/xts/hats/hdf/codec/hdi_omx/
H A Dcodec_hdi_omx_test.cpp55 static void InitCodecBuffer(OmxCodecBuffer& buffer, CodecBufferType type, OMX_VERSIONTYPE& version) in InitCodecBuffer() argument
57 buffer.bufferType = type; in InitCodecBuffer()
58 buffer.fenceFd = -1; in InitCodecBuffer()
59 buffer.version = version; in InitCodecBuffer()
60 buffer.allocLen = BUFFER_SIZE; in InitCodecBuffer()
61 buffer.buffer = 0; in InitCodecBuffer()
62 buffer.bufferLen = 0; in InitCodecBuffer()
63 buffer.pts = 0; in InitCodecBuffer()
64 buffer in InitCodecBuffer()
173 std::map<int32_t, std::shared_ptr<BufferInfo>> &buffer = inputBuffers_; FreeBufferOnPort() local
1078 struct OmxCodecBuffer buffer; HWTEST_F() local
[all...]
/base/hiviewdfx/hilog/services/hilogd/include/
H A Dlog_collector.h28 explicit LogCollector(HilogBuffer& buffer) : m_hilogBuffer(buffer) in LogCollector() argument
/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/
H A Dsocket.h41 int Read(char *buffer, unsigned int len);
42 int Recv(void *buffer, unsigned int bufferLen, int flags = MSG_PEEK);
/base/startup/init/test/fuzztest/getparametervalue_fuzzer/
H A Dgetparametervalue_fuzzer.cpp26 char buffer[PARAM_CONST_VALUE_LEN_MAX] = {0}; in FuzzGetParameterValue() local
31 if ((handle < BASE) && (!GetParameterValue(handle, buffer, len))) { in FuzzGetParameterValue()
/base/update/sys_installer_lite/hals/
H A Dhal_hota_board.h64 * @param buffer [in] image buffer.
65 * @param offset [in] The buffer offset of file.
66 * @param bufLen [in] The Length of buffer.
74 int HotaHalWrite(int partition, unsigned char *buffer, unsigned int offset, unsigned int bufLen);
80 * @param offset [in] The buffer offset of file.
81 * @param bufLen [in] The Length of buffer.
82 * @param buffer [out] image buffer.
90 int HotaHalRead(int partition, unsigned int offset, unsigned int bufLen, unsigned char *buffer);
[all...]

Completed in 16 milliseconds

1...<<41424344454647484950>>...180