Home
last modified time | relevance | path

Searched refs:buffer (Results 7701 - 7725 of 14774) sorted by relevance

1...<<301302303304305306307308309310>>...591

/third_party/mesa3d/src/mesa/main/
H A Dfbobject.c177 /* Name exists but buffer is not initialized */ in _mesa_lookup_framebuffer_dsa()
258 * the depth buffer attachment point.
354 * allocation hasn't happened yet. In such case, use the back buffer, in get_fb0_attachment()
387 * identifying a color buffer; DEPTH, identifying the depth buffer; or in get_fb0_attachment()
388 * STENCIL, identifying the stencil buffer." in get_fb0_attachment()
396 * DEPTH_BUFFER, or STENCIL_BUFFER, identifying a color buffer, the in get_fb0_attachment()
397 * depth buffer, or the stencil buffer, and <pname> may be in get_fb0_attachment()
453 /* Invalidate buffer stat in render_texture()
3464 _mesa_check_framebuffer_status(struct gl_context *ctx, struct gl_framebuffer *buffer) _mesa_check_framebuffer_status() argument
4555 get_framebuffer_attachment_parameter(struct gl_context *ctx, struct gl_framebuffer *buffer, GLenum attachment, GLenum pname, GLint *params, const char *caller) get_framebuffer_attachment_parameter() argument
4909 struct gl_framebuffer *buffer; _mesa_GetFramebufferAttachmentParameteriv() local
4931 struct gl_framebuffer *buffer; _mesa_GetNamedFramebufferAttachmentParameteriv() local
4961 struct gl_framebuffer *buffer; _mesa_GetNamedFramebufferAttachmentParameterivEXT() local
5100 unsigned buffer = pname - GL_DRAW_BUFFER0; _mesa_GetFramebufferParameterivEXT() local
[all...]
/third_party/skia/third_party/externals/imgui/
H A Dimstb_truetype.h105 // "Load" a font file from a memory buffer (you have to keep the buffer loaded)
236 // a temp buffer and allocate from the temp buffer (without freeing),
373 char buffer[24<<20];
383 fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb"));
384 stbtt_InitFont(&font, buffer, 0);
398 // a sequence of characters, you really need to render each bitmap to a temp buffer, then
399 // "alpha blend" that into the working buffer
3854 unsigned char buffer[STBTT_MAX_OVERSAMPL
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/
H A Dcanvas_rendering_context_2d_model_ng.cpp612 void CanvasRenderingContext2DModelNG::GetImageDataModel(const ImageSize& imageSize, uint8_t* buffer) in GetImageDataModel() argument
632 memcpy_s(buffer, pixelsSize, pixelMap->GetWritablePixels(), pixelsSize); in GetImageDataModel()
640 buffer[4 * idx] = color.GetRed(); // 4 * idx: the 1st byte format: red. in GetImageDataModel()
641 buffer[4 * idx + 1] = color.GetGreen(); // 4 * idx + 1: the 2nd byte format: green. in GetImageDataModel()
642 buffer[4 * idx + 2] = color.GetBlue(); // 4 * idx + 2: the 3rd byte format: blue. in GetImageDataModel()
643 buffer[4 * idx + 3] = color.GetAlpha(); // 4 * idx + 3: the 4th byte format: alpha. in GetImageDataModel()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/
H A Drender_node_default_depth_render_slot.cpp384 auto checkValidity = [](const RenderHandle defaultBuffer, bool& valid, RenderHandle& buffer) { in GetSceneUniformBuffers()
385 if (!RenderHandleUtil::IsValid(buffer)) { in GetSceneUniformBuffers()
387 buffer = defaultBuffer; in GetSceneUniformBuffers()
412 auto checkValidity = [](const RenderHandle defaultBuffer, bool& valid, RenderHandle& buffer) { in GetCameraUniformBuffers()
413 if (!RenderHandleUtil::IsValid(buffer)) { in GetCameraUniformBuffers()
415 buffer = defaultBuffer; in GetCameraUniformBuffers()
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/
H A Dipc_stream_in_server_unit_test.cpp90 std::shared_ptr<OHAudioBuffer> buffer; in HWTEST() local
91 auto ret = ipcStreamInServerRet.ResolveBuffer(buffer); in HWTEST()
870 std::shared_ptr<OHAudioBuffer> buffer; in HWTEST() local
872 auto ret = ipcStreamInServerRet.ResolveBuffer(buffer); in HWTEST()
876 ret = ipcStreamInServerRet.ResolveBuffer(buffer); in HWTEST()
882 ret = ipcStreamInServerRet.ResolveBuffer(buffer); in HWTEST()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dimage_utils.cpp438 int32_t ImageUtils::SurfaceBuffer_Reference(void* buffer) in SurfaceBuffer_Reference() argument
440 if (buffer == nullptr) { in SurfaceBuffer_Reference()
444 OHOS::RefBase *ref = reinterpret_cast<OHOS::RefBase *>(buffer); in SurfaceBuffer_Reference()
449 int32_t ImageUtils::SurfaceBuffer_Unreference(void* buffer) in SurfaceBuffer_Unreference() argument
451 if (buffer == nullptr) { in SurfaceBuffer_Unreference()
455 OHOS::RefBase *ref = reinterpret_cast<OHOS::RefBase *>(buffer); in SurfaceBuffer_Unreference()
/foundation/multimedia/media_foundation/engine/plugin/plugins/minimp3_adapter/
H A Dminimp3_demuxer_plugin.cpp100 auto buffer = std::make_shared<Buffer>(); in DoReadFromSource() local
101 auto bufData = buffer->AllocMemory(nullptr, readSize); in DoReadFromSource()
106 auto res = ioContext_.dataSource->ReadAt(ioContext_.offset, buffer, static_cast<size_t>(readSize)); in DoReadFromSource()
125 MEDIA_LOG_W("memcpy into buffer failed with code " PUBLIC_LOG_D32, ret); in DoReadFromSource()
141 // 将剩余数据移动到buffer的起始位置 in GetDataFromSource()
144 FALSE_RETURN_V_MSG_W(ret == 0, Status::ERROR_UNKNOWN, "copy buffer error " PUBLIC_LOG_D32, ret); in GetDataFromSource()
146 FALSE_RETURN_V_MSG_W(ret == 0, Status::ERROR_UNKNOWN, "memset_s buffer error " PUBLIC_LOG_D32, ret); in GetDataFromSource()
677 auto buffer = std::make_shared<Buffer>(); in Sniff() local
678 auto bufData = buffer->AllocMemory(nullptr, PROBE_READ_LENGTH); in Sniff()
689 status = dataSource->ReadAt(offset, buffer, static_cas in Sniff()
[all...]
/foundation/multimedia/drm_framework/frameworks/js/drm_napi/
H A Dkey_session_napi.cpp650 char buffer[PATH_MAX]; in SetEventCallback() local
651 napi_get_value_string_utf8(env, argv[PARAM0], buffer, PATH_MAX, &length); in SetEventCallback()
652 std::string eventType = std::string(buffer); in SetEventCallback()
692 char buffer[PATH_MAX]; in UnsetEventCallback() local
693 napi_get_value_string_utf8(env, argv[PARAM0], buffer, PATH_MAX, &length); in UnsetEventCallback()
694 std::string eventType = std::string(buffer); in UnsetEventCallback()
/foundation/multimedia/av_session/services/session/ipc/proxy/
H A Davsession_service_proxy.cpp208 void AVSessionServiceProxy::BufferToAVQueueInfoImg(const char *buffer, std::vector<AVQueueInfo>& avQueueInfos) in BufferToAVQueueInfoImg() argument
216 imgBuffer.push_back((uint8_t)buffer[k]); in BufferToAVQueueInfoImg()
262 const char *buffer = nullptr; in GetHistoricalAVQueueInfos() local
263 buffer = reinterpret_cast<const char *>(reply.ReadRawData(bufferLength)); in GetHistoricalAVQueueInfos()
264 if (buffer == nullptr) { in GetHistoricalAVQueueInfos()
269 BufferToAVQueueInfoImg(buffer, avQueueInfos); in GetHistoricalAVQueueInfos()
/foundation/multimedia/av_codec/test/unittest/audio_test/
H A Daudio_decoder_ability_unit_test.cpp324 auto buffer = signal_->inBufferQueue_.front(); in InputFunc() local
325 if (buffer == nullptr) { in InputFunc()
332 cout << "end buffer\n"; in InputFunc()
344 inputFile_.read((char *)OH_AVMemory_GetAddr(buffer), size); in InputFunc()
346 cout << "Fatal: read buffer fail" << endl; in InputFunc()
495 char buffer[extradataSize]; in InitFile() local
496 inputFile_.read(buffer, extradataSize); in InitFile()
500 OH_AVFormat_SetBuffer(format_, MediaDescriptionKey::MD_KEY_CODEC_CONFIG.data(), (uint8_t *)buffer, in InitFile()
/foundation/multimedia/av_codec/services/services/codec/ipc/
H A Dcodec_service_stub.cpp249 int32_t CodecServiceStub::SetCustomBuffer(std::shared_ptr<AVBuffer> buffer) in SetCustomBuffer() argument
253 return codecServer_->SetCustomBuffer(buffer); in SetCustomBuffer()
650 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(); in SetCustomBuffer() local
651 CHECK_AND_RETURN_RET_LOG(buffer != nullptr, AVCS_ERR_NO_MEMORY, "Create buffer failed"); in SetCustomBuffer()
652 bool ret = buffer->ReadFromMessageParcel(data); in SetCustomBuffer()
654 ret = reply.WriteInt32(SetCustomBuffer(buffer)); in SetCustomBuffer()
/foundation/communication/dsoftbus/tests/core/connection/ble/
H A Dconnection_ble_client_test.cpp559 bleConnection->buffer.seq = 0; in HWTEST_F()
560 bleConnection->buffer.total = 0; in HWTEST_F()
601 bleConnection->buffer.seq = 0; in HWTEST_F()
602 bleConnection->buffer.total = 0; in HWTEST_F()
645 bleConnection->buffer.seq = 0; in HWTEST_F()
646 bleConnection->buffer.total = 0; in HWTEST_F()
/foundation/communication/ipc/ipc/test/moduletest/native/common/
H A Dipc_core_module_test.cpp578 unsigned char *buffer = new (std::nothrow) unsigned char[rawData10M]; in HWTEST_F() local
579 if (buffer == nullptr) { in HWTEST_F()
580 ZLOGE(LABEL, "new buffer failed of length = %{public}d", rawData10M); in HWTEST_F()
583 buffer[0] = 'a'; in HWTEST_F()
584 buffer[rawData10M - 1] = 'z'; in HWTEST_F()
587 dataParcel.WriteRawData(buffer, rawData10M); in HWTEST_F()
594 delete[] buffer; in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/
H A Ddistributeddb_nb_test_tools.cpp615 char buffer[maxFileLength] = {0}; in GetCurrentDir() local
617 int length = readlink("/proc/self/exe", buffer, maxFileLength); in GetCurrentDir()
620 if (_getcwd(buffer, maxFileLength) != nullptr) { in GetCurrentDir()
621 length = strlen(buffer); in GetCurrentDir()
628 MST_LOG("DIR = %s", buffer); in GetCurrentDir()
629 dir = buffer; in GetCurrentDir()
/foundation/distributeddatamgr/udmf/framework/common/
H A Dtlv_util.cpp577 auto buffer = parcel.GetData(); in Writing() local
580 auto err = memcpy_s(val.data(), size, reinterpret_cast<const void *>(buffer), size); in Writing()
598 auto buffer = malloc(val.size()); in Reading() local
599 if (buffer == nullptr) { in Reading()
603 auto err = memcpy_s(buffer, val.size(), val.data(), val.size()); in Reading()
608 if (!parcel->ParseFrom((uintptr_t)buffer, head.len)) { in Reading()
/foundation/distributeddatamgr/udmf/framework/ndkimpl/data/
H A Dudmf.cpp614 int OH_UdmfRecord_AddArrayBuffer(OH_UdmfRecord* record, const char* type, OH_UdsArrayBuffer* buffer) in OH_UdmfRecord_AddArrayBuffer() argument
617 IsInvalidUdsObjectPtr(buffer, UDS_ARRAY_BUFFER_STRUCT_ID)) { in OH_UdmfRecord_AddArrayBuffer()
622 int ret = OH_UdsArrayBuffer_GetData(buffer, &entry, &size); in OH_UdmfRecord_AddArrayBuffer()
626 buffer->obj->value_[UNIFORM_DATA_TYPE] = type; in OH_UdmfRecord_AddArrayBuffer()
699 int OH_UdmfRecord_GetArrayBuffer(OH_UdmfRecord* record, const char* type, OH_UdsArrayBuffer* buffer) in OH_UdmfRecord_GetArrayBuffer() argument
708 return OH_UdsArrayBuffer_SetData(buffer, entry, size); in OH_UdmfRecord_GetArrayBuffer()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dsqlite_statement.cpp123 uint64_t buffer[BUFFER_LEN] = {0x0}; in ReadFile2Buffer() local
130 size_t readSize = fread(buffer, sizeof(uint64_t), BUFFER_LEN, file); in ReadFile2Buffer()
139 i >> 2, buffer[i], buffer[i + 1], buffer[i + 2], buffer[i + 3]); in ReadFile2Buffer()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/filters/test/av_transport_input_filter_test/
H A Dav_transport_input_filter_test.cpp540 AVBufferPtr buffer; in HWTEST_F() local
542 ErrorCode ret = avInputTest_->PushData(inPort, buffer, offset); in HWTEST_F()
566 std::shared_ptr<Plugin::Buffer> buffer = nullptr; in HWTEST_F() local
567 avInputTest_->OnDataCallback(buffer); in HWTEST_F()
572 buffer = std::make_shared<AVBuffer>(); in HWTEST_F()
573 avInputTest_->OnDataCallback(buffer); in HWTEST_F()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_fcoe.c216 /* get the offset of length of current buffer */ in ixgbe_fcoe_ddp_setup()
220 * all but the 1st buffer (j == 0) in ixgbe_fcoe_ddp_setup()
226 * all but the last buffer in ixgbe_fcoe_ddp_setup()
235 /* only the first buffer may have none-zero offset */ in ixgbe_fcoe_ddp_setup()
243 /* only the last buffer may have non-full bufflen */ in ixgbe_fcoe_ddp_setup()
247 * lastsize can not be buffer len. in ixgbe_fcoe_ddp_setup()
248 * If it is then adding another buffer with lastsize = 1. in ixgbe_fcoe_ddp_setup()
755 void *buffer; in ixgbe_setup_fcoe_ddp_resources() local
763 /* Extra buffer to be shared by all DDPs for HW work around */ in ixgbe_setup_fcoe_ddp_resources()
764 buffer in ixgbe_setup_fcoe_ddp_resources()
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/omap3isp/
H A Dispccp2.c539 struct isp_buffer *buffer; in ccp2_isr_buffer() local
541 buffer = omap3isp_video_buffer_next(&ccp2->video_in); in ccp2_isr_buffer()
542 if (buffer != NULL) in ccp2_isr_buffer()
543 ccp2_set_inaddr(ccp2, buffer->dma); in ccp2_isr_buffer()
925 * ccp2_video_queue - Queue video buffer.
927 * @buffer: Pointer to isp_buffer structure
930 static int ccp2_video_queue(struct isp_video *video, struct isp_buffer *buffer) in ccp2_video_queue() argument
934 ccp2_set_inaddr(ccp2, buffer->dma); in ccp2_video_queue()
/kernel/linux/linux-5.10/drivers/media/platform/qcom/camss/
H A Dcamss-video.c358 struct camss_buffer *buffer = container_of(vbuf, struct camss_buffer, in video_buf_init() local
370 buffer->addr[i] = sg_dma_address(sgt->sgl); in video_buf_init()
377 buffer->addr[1] = buffer->addr[0] + in video_buf_init()
408 struct camss_buffer *buffer = container_of(vbuf, struct camss_buffer, in video_buf_queue() local
411 video->ops->queue_buffer(video, buffer); in video_buf_queue()
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
H A Dxircom_cb.c158 char buffer[64]; in print_binary() local
159 memset(buffer,0,64); in print_binary()
163 buffer[i2++]='1'; in print_binary()
165 buffer[i2++]='0'; in print_binary()
167 buffer[i2++]=' '; in print_binary()
169 pr_debug("%s\n",buffer); in print_binary()
575 /* Rx Descr1: buffer 1 is 1536 bytes, buffer 2 is 0 bytes */ in setup_descriptors()
580 /* Rx Descr2: address of the buffer in setup_descriptors()
581 we store the buffer a in setup_descriptors()
[all...]
/kernel/linux/linux-5.10/drivers/tty/hvc/
H A Dhvcs.c265 * This buffer is required so that when hvcs_write_room() reports that
266 * it can send HVCS_BUFF_LEN characters that it will buffer the full
272 char buffer[HVCS_BUFF_LEN]; member
551 &hvcsd->buffer[0], in hvcs_try_write()
1118 memset(&hvcsd->buffer[0], 0x00, HVCS_BUFF_LEN); in hvcs_install()
1271 memset(&hvcsd->buffer[0], 0x00, HVCS_BUFF_LEN); in hvcs_hangup()
1349 * hvcs_write() didn't succeed and the buffer was filled up. in hvcs_write()
1354 memcpy(&hvcsd->buffer[hvcsd->chars_in_buffer], in hvcs_write()
1365 * just add to the buffer. in hvcs_write()
1370 &hvcsd->buffer[ in hvcs_write()
[all...]
/kernel/linux/linux-5.10/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c91 void *buffer; member
206 vdpasim->buffer, in vdpasim_work()
212 vdpasim->buffer, read); in vdpasim_work()
401 vdpasim->buffer = kmalloc(PAGE_SIZE, GFP_KERNEL); in vdpasim_create()
402 if (!vdpasim->buffer) in vdpasim_create()
681 kfree(vdpasim->buffer); in vdpasim_free()
/kernel/linux/linux-5.10/samples/bpf/
H A Dxsk_fwd.c39 * buffer pool, with each socket having its own private buffer cache.
58 * Buffer pool and buffer cache
64 * The buffer pool is shared between multiple threads. In order to minimize the
65 * access latency to the shared buffer pool, each thread creates one (or
66 * several) buffer caches, which, unlike the buffer pool, are private to the
69 * empty due to repeated buffer allocations and it needs to be replenished from
70 * the pool, or (B) when the cache gets full due to repeated buffer free and it
76 * packet buffers when, it is required that the buffer poo
362 u64 buffer; bcache_cons() local
370 bcache_prod(struct bcache *bc, u64 buffer) bcache_prod() argument
[all...]

Completed in 43 milliseconds

1...<<301302303304305306307308309310>>...591