/foundation/multimedia/av_codec/frameworks/native/capi/avmuxer/ |
H A D | native_avmuxer.cpp | 111 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(sample->memory_->GetBase() + info.offset, in OH_AVMuxer_WriteSample() local 113 buffer->pts_ = info.pts; in OH_AVMuxer_WriteSample() 114 buffer->flag_ = info.flags; in OH_AVMuxer_WriteSample() 116 int32_t ret = object->muxer_->WriteSample(trackIndex, buffer); in OH_AVMuxer_WriteSample()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2.cpp | 176 for (auto const& buffer : result.data->buffers) { in SaveGLTF() 179 dataFile->Write(buffer->data.data(), buffer->data.size()); in SaveGLTF() 183 buffer->uri = dataFileUri; in SaveGLTF()
|
/foundation/multimedia/audio_framework/test/fuzztest/audioutils_fuzzer/ |
H A D | audio_utils_fuzzer.cpp | 225 uint8_t *buffer = new uint8_t[LIMITSIZE]; in AudioBlendFuzzTest() local 226 memcpy_s(buffer, LIMITSIZE, rawData, LIMITSIZE); in AudioBlendFuzzTest() 227 audioBlend->Process(buffer, LIMITSIZE); in AudioBlendFuzzTest() 228 delete[] buffer; in AudioBlendFuzzTest()
|
/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/ |
H A D | type_finder.cpp | 134 Status TypeFinder::ReadAt(int64_t offset, std::shared_ptr<Buffer>& buffer, size_t expectedLen) in ReadAt() argument 136 if (!buffer || expectedLen == 0 || !IsOffsetValid(offset)) { in ReadAt() 138 PUBLIC_LOG_D64, !buffer, expectedLen, offset); in ReadAt() 152 FALSE_LOG_MSG(peekRange_(streamID_, static_cast<uint64_t>(offset), expectedLen, buffer) == Status::OK, in ReadAt()
|
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/test/example/ |
H A D | audio_capturer_test.cpp | 138 auto buffer = std::make_unique<uint8_t[]>(bufferLen); in StartCapture() local 139 if (buffer == nullptr) { in StartCapture() 140 AUDIO_ERR_LOG("AudioCapturerTest: Failed to allocate buffer"); in StartCapture() 150 int32_t len = audioCapturer->Read(*(buffer.get() + bytesRead), bufferLen - bytesRead, isBlocking); in StartCapture() 169 if (fwrite(buffer.get(), size, bytesRead, pFile) != bytesRead) { in StartCapture() 215 AUDIO_ERR_LOG("Failed to set buffer duration"); in TestRecording()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/matrix_fuzzer/ |
H A D | matrix_fuzzer.cpp | 150 Matrix::Buffer buffer; in MatrixFuzzTest002() local 152 buffer[i] = GetObject<scalar>(); in MatrixFuzzTest002() 154 matrix.SetAll(buffer); in MatrixFuzzTest002() 155 matrix.GetAll(buffer); in MatrixFuzzTest002()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | std_file.cpp | 180 uint64_t StdFile::Read(void* buffer, uint64_t count) in Read() argument 182 file_.read(static_cast<char*>(buffer), static_cast<std::streamsize>(count)); in Read() 189 uint64_t StdFile::Write(const void* buffer, uint64_t count) in Write() argument 192 file_.write(static_cast<const char*>(buffer), static_cast<std::streamsize>(count)); in Write()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libheifplugin/src/ |
H A D | heif_decoder.cpp | 130 if (context.pixelsBuffer.buffer == nullptr) { in AllocHeapBuffer() 141 IMAGE_LOGE("alloc output buffer size:[%{public}llu] error.", in AllocHeapBuffer() 146 IMAGE_LOGE("memset buffer failed."); in AllocHeapBuffer() 151 context.pixelsBuffer.buffer = outputBuffer; in AllocHeapBuffer() 179 context.pixelsBuffer.buffer = ptr; in AllocShareMem() 185 context.pixelsBuffer.buffer = nullptr; in AllocShareMem()
|
/foundation/multimedia/image_effect/frameworks/native/render_environment/ |
H A D | render_environment.h | 172 IMAGE_EFFECT_EXPORT void DrawFrameWithTransform(const std::shared_ptr<EffectBuffer> &buffer,
188 SurfaceBuffer *buffer, IEffectFormat format);
190 SurfaceBuffer *buffer, IEffectFormat format);
191 IMAGE_EFFECT_EXPORT void DrawTexFromSurfaceBuffer(RenderTexturePtr tex, SurfaceBuffer *buffer,
|
/foundation/multimedia/media_foundation/engine/pipeline/filters/demux/ |
H A D | type_finder.cpp | 142 Plugin::Status TypeFinder::ReadAt(int64_t offset, std::shared_ptr<Plugin::Buffer>& buffer, size_t expectedLen) in ReadAt() argument 144 if (!buffer || expectedLen == 0 || !IsOffsetValid(offset)) { in ReadAt() 145 MEDIA_LOG_E("ReadAt failed, buffer empty: " PUBLIC_LOG_D32 ", expectedLen: " PUBLIC_LOG_ZU ", offset: " in ReadAt() 146 PUBLIC_LOG_D64, !buffer, expectedLen, offset); in ReadAt() 158 FALSE_LOG_MSG(peekRange_(static_cast<uint64_t>(offset), expectedLen, buffer), "peekRange failed."); in ReadAt()
|
/foundation/multimedia/media_foundation/test/unittest/ |
H A D | TestPluginManager.cpp | 140 Status ReadAt(int64_t offset, std::shared_ptr<Buffer> &buffer, size_t expectedLen) override 142 buffer->GetMemory()->Write(reinterpret_cast<const uint8_t *>("UtPlugin"), 8); 161 Status ReadAt(int64_t offset, std::shared_ptr<Buffer> &buffer, size_t expectedLen) override 163 buffer->GetMemory()->Write(reinterpret_cast<const uint8_t *>("12345678"), 8);
|
/foundation/multimedia/av_codec/services/services/codec/server/ |
H A D | temporal_scalability.cpp | 99 void TemporalScalability::StoreAVBuffer(uint32_t index, shared_ptr<AVBuffer> buffer) in StoreAVBuffer() argument 103 inputBufferMap_.emplace(index, buffer); in StoreAVBuffer() 116 void TemporalScalability::SetDisposableFlag(shared_ptr<Media::AVBuffer> buffer) in SetDisposableFlag() argument 120 buffer->flag_ |= flag; in SetDisposableFlag() 247 AVCODEC_LOGE("Find matched buffer failed, buffer ID is %{public}u.", index); in ConfigureLTR()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/ |
H A D | metadata_accessor_factory.cpp | 48 std::shared_ptr<MetadataAccessor> MetadataAccessorFactory::Create(uint8_t *buffer, const uint32_t size, in Create() argument 51 DataInfo dataInfo {buffer, size}; in Create() 73 if (dataInfo.buffer == nullptr) { in Create() 76 std::shared_ptr<MetadataStream> stream = std::make_shared<BufferMetadataStream>(dataInfo.buffer, dataInfo.size, in Create()
|
/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/ |
H A D | avmetadatahelper_impl.h | 96 bool GetSbStaticMetadata(sptr<SurfaceBuffer> &buffer, std::vector<uint8_t> &staticMetadata); 97 bool GetSbDynamicMetadata(sptr<SurfaceBuffer> &buffer, std::vector<uint8_t> &dynamicMetadata); 98 bool SetSbStaticMetadata(sptr<SurfaceBuffer> &buffer, const std::vector<uint8_t> &staticMetadata); 99 bool SetSbDynamicMetadata(sptr<SurfaceBuffer> &buffer, const std::vector<uint8_t> &dynamicMetadata);
|
/foundation/communication/dsoftbus/core/connection/common/src/ |
H A D | softbus_conn_common.c | 135 tmpLimiteBuffer->buffer = tmpByteBuffer; in ConnNewLimitedBuffer() 148 if (tmp->buffer != NULL) { in ConnDeleteLimitedBuffer() 149 SoftBusFree(tmp->buffer); in ConnDeleteLimitedBuffer() 150 tmp->buffer = NULL; in ConnDeleteLimitedBuffer()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | virtual_communicator.cpp | 220 auto buffer = ProtocolProto::ToSerialBuffer(inMsg, extendHandle, false, errCode); in TranslateMsg() local 225 outMsg = ProtocolProto::ToMessage(buffer, errCode); in TranslateMsg() 226 delete buffer; in TranslateMsg() 227 buffer = nullptr; in TranslateMsg()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/common/ |
H A D | distributeddb_tools_test.cpp | 38 char buffer[maxFileLength] = {0}; in GetCurrentDir() local 39 int length = readlink("/proc/self/exe", buffer, maxFileLength); in GetCurrentDir() 44 LOGD("DIR = %s", buffer); in GetCurrentDir() 45 dir = buffer; in GetCurrentDir()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/src/distributedcameramgr/ |
H A D | dcamera_sink_data_process.cpp | 149 void DCameraSinkDataProcess::SendDataAsync(const std::shared_ptr<DataBuffer>& buffer) in SendDataAsync() argument 151 auto sendFunc = [this, buffer]() mutable { in SendDataAsync() 152 std::shared_ptr<DataBuffer> sendBuffer = buffer; in SendDataAsync() 154 uint64_t buffersSize = static_cast<uint64_t>(buffer->Size()); in SendDataAsync()
|
/foundation/window/window_manager_lite/frameworks/wms/ |
H A D | lite_wm_requestor.cpp | 197 SurfaceBuffer* buffer = surface_->AcquireBuffer(); in OnBufferAvailable() local 198 if (buffer != nullptr) { in OnBufferAvailable() 200 uint8_t* virAddr = static_cast<uint8_t*>(buffer->GetVirAddr()); in OnBufferAvailable() 207 surface_->ReleaseBuffer(buffer); in OnBufferAvailable()
|
/kernel/linux/linux-5.10/drivers/firmware/ |
H A D | dmi-id.c | 74 static ssize_t get_modalias(char *buffer, size_t buffer_size) in get_modalias() argument 101 strcpy(buffer, "dmi"); in get_modalias() 102 p = buffer + 3; left = buffer_size - 4; in get_modalias() 126 return p - buffer + 1; in get_modalias()
|
/kernel/linux/linux-5.10/block/partitions/ |
H A D | aix.c | 89 * @buffer 92 * Description: Reads @count bytes from @state->bdev into @buffer. 95 static size_t read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer, in read_lba() argument 100 if (!buffer || lba + count / 512 > last_lba(state->bdev)) in read_lba() 111 memcpy(buffer, data, copied); in read_lba() 113 buffer += copied; in read_lba()
|
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | utresrc.c | 131 * DESCRIPTION: Walk a raw AML resource list(buffer). User function called 157 /* Point to the end of the resource template buffer */ in acpi_ut_walk_aml_resources() 197 * There must be at least one more byte in the buffer for in acpi_ut_walk_aml_resources() 533 * PARAMETERS: obj_desc - The resource template buffer object 539 * Note: allows a buffer length of zero. 550 /* Allow a buffer length of zero */ in acpi_ut_get_resource_end_tag() 552 if (!obj_desc->buffer.length) { in acpi_ut_get_resource_end_tag() 553 *end_tag = obj_desc->buffer.pointer; in acpi_ut_get_resource_end_tag() 559 status = acpi_ut_walk_aml_resources(NULL, obj_desc->buffer.pointer, in acpi_ut_get_resource_end_tag() 560 obj_desc->buffer in acpi_ut_get_resource_end_tag() [all...] |
/kernel/linux/linux-5.10/drivers/android/ |
H A D | binder_alloc_selftest.c | 23 * enum buf_end_align_type - Page alignment of a buffer 24 * end with regard to the end of the previous buffer. 26 * In the pictures below, buf2 refers to the buffer we 27 * are aligning. buf1 refers to previous buffer by addr. 28 * Symbol [ means the start of a buffer, ] means the end 29 * of a buffer, and | means page boundaries. 33 * @SAME_PAGE_UNALIGNED: The end of this buffer is on 34 * the same page as the end of the previous buffer and 41 * @SAME_PAGE_ALIGNED: When the end of the previous buffer 42 * is not page aligned, the end of this buffer i 92 check_buffer_pages_allocated(struct binder_alloc *alloc, struct binder_buffer *buffer, size_t size) check_buffer_pages_allocated() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | opal-sysparam.c | 29 static ssize_t opal_get_sys_param(u32 param_id, u32 length, void *buffer) in opal_get_sys_param() argument 44 ret = opal_get_param(token, param_id, (u64)buffer, length); in opal_get_sys_param() 65 static int opal_set_sys_param(u32 param_id, u32 length, void *buffer) in opal_set_sys_param() argument 79 ret = opal_set_param(token, param_id, (u64)buffer, length); in opal_set_sys_param() 172 /* Allocate big enough buffer for any get/set transactions */ in opal_sys_param_init() 236 "exceeds buffer length\n", i); in opal_sys_param_init()
|
/kernel/linux/linux-5.10/arch/arm/mm/ |
H A D | cache-v4wb.S | 95 mcr p15, 0, ip, c7, c10, 4 @ drain write buffer 123 mcrne p15, 0, ip, c7, c10, 4 @ drain write buffer 196 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 213 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer
|