Home
last modified time | relevance | path

Searched refs:dmabuf (Results 1 – 25 of 49) sorted by relevance

12

/third_party/weston/libweston/backend-drm/
Dfb.c230 drm_fb_get_from_dmabuf(struct linux_dmabuf_buffer *dmabuf, in drm_fb_get_from_dmabuf() argument
235 .width = dmabuf->attributes.width, in drm_fb_get_from_dmabuf()
236 .height = dmabuf->attributes.height, in drm_fb_get_from_dmabuf()
237 .format = dmabuf->attributes.format, in drm_fb_get_from_dmabuf()
238 .stride = dmabuf->attributes.stride[0], in drm_fb_get_from_dmabuf()
239 .fd = dmabuf->attributes.fd[0], in drm_fb_get_from_dmabuf()
243 .width = dmabuf->attributes.width, in drm_fb_get_from_dmabuf()
244 .height = dmabuf->attributes.height, in drm_fb_get_from_dmabuf()
245 .format = dmabuf->attributes.format, in drm_fb_get_from_dmabuf()
246 .num_fds = dmabuf->attributes.n_planes, in drm_fb_get_from_dmabuf()
[all …]
Ddrm-internal.h698 struct linux_dmabuf_buffer *dmabuf);
707 struct linux_dmabuf_buffer *dmabuf) in drm_can_scanout_dmabuf() argument
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/
Dgstglupload.c514 struct DmabufUpload *dmabuf = g_new0 (struct DmabufUpload, 1); in _dma_buf_upload_new() local
515 dmabuf->upload = upload; in _dma_buf_upload_new()
516 dmabuf->target = GST_GL_TEXTURE_TARGET_2D; in _dma_buf_upload_new()
517 return dmabuf; in _dma_buf_upload_new()
524 struct DmabufUpload *dmabuf = impl; in _dma_buf_upload_transform_caps() local
577 GST_DEBUG_OBJECT (dmabuf->upload, "transformed %" GST_PTR_FORMAT " into %" in _dma_buf_upload_transform_caps()
619 struct DmabufUpload *dmabuf = impl; in _dma_buf_upload_accept() local
620 GstVideoInfo *in_info = &dmabuf->upload->priv->in_info; in _dma_buf_upload_accept()
621 GstVideoInfo *out_info = &dmabuf->out_info; in _dma_buf_upload_accept()
633 if (!dmabuf->upload->context->gl_vtable->EGLImageTargetTexture2D) in _dma_buf_upload_accept()
[all …]
/third_party/weston/libweston/
Dweston-direct-display.c43 struct linux_dmabuf_buffer *dmabuf; in direct_display_enable() local
45 dmabuf = wl_resource_get_user_data(dmabuf_res); in direct_display_enable()
46 assert(dmabuf); in direct_display_enable()
47 dmabuf->direct_display = true; in direct_display_enable()
Dtde-render-part.cpp415 struct linux_dmabuf_buffer *dmabuf) in import_dmabuf() argument
581 struct linux_dmabuf_buffer *dmabuf = linux_dmabuf_buffer_get(buffer->resource); in tde_render_attach_hook() local
582 if (dmabuf == NULL) { in tde_render_attach_hook()
592 void *ptr = ps->tde->renderer->display_gralloc->Mmap(*dmabuf->attributes.buffer_handle); in tde_render_attach_hook()
615 buffer->width = dmabuf->attributes.width; in tde_render_attach_hook()
616 buffer->height = dmabuf->attributes.height; in tde_render_attach_hook()
618 ps->tde->image.width = dmabuf->attributes.width; in tde_render_attach_hook()
619 ps->tde->image.height = dmabuf->attributes.height; in tde_render_attach_hook()
620 ps->tde->image.stride[0] = dmabuf->attributes.stride[0]; in tde_render_attach_hook()
621 ps->tde->image.format = dmabuf->attributes.format; in tde_render_attach_hook()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/wayland/
Dmeson.build18 ['/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml',
19 'linux-dmabuf-unstable-v1-protocol.c', 'linux-dmabuf-unstable-v1-client-protocol.h'],
Dwldisplay.c93 if (self->dmabuf) in gst_wl_display_finalize()
94 zwp_linux_dmabuf_v1_destroy (self->dmabuf); in gst_wl_display_finalize()
182 if (!display->dmabuf) in gst_wl_display_check_format_for_dmabuf()
237 self->dmabuf = in registry_handle_global()
239 zwp_linux_dmabuf_v1_add_listener (self->dmabuf, &dmabuf_listener, self); in registry_handle_global()
362 if (!self->dmabuf) { in gst_wl_display_new_existing()
Dwldisplay.h62 struct zwp_linux_dmabuf_v1 *dmabuf; member
/third_party/mesa3d/src/egl/wayland/wayland-drm/
Dmeson.build52 # linux-dmabuf isn't part of wayland-drm, but this happens to be the only
61 'linux-dmabuf-unstable-v1-protocol.c',
63 output : 'linux-dmabuf-unstable-v1-protocol.c',
68 'linux-dmabuf-unstable-v1-client-protocol.h',
70 output : 'linux-dmabuf-unstable-v1-client-protocol.h',
/third_party/weston/clients/
Dweston-info.c113 struct zwp_linux_dmabuf_v1 *dmabuf; member
423 struct linux_dmabuf_info *dmabuf = data; in print_linux_dmabuf_info() local
430 wl_list_for_each(modifier, &dmabuf->modifiers, link) { in print_linux_dmabuf_info()
1551 struct linux_dmabuf_info *dmabuf = data; in linux_dmabuf_handle_modifier() local
1554 wl_list_insert(&dmabuf->modifiers, &linux_dmabuf_modifier->link); in linux_dmabuf_handle_modifier()
1567 struct linux_dmabuf_info *dmabuf = data; in destroy_linux_dmabuf_info() local
1570 wl_list_for_each_safe(modifier, tmp, &dmabuf->modifiers, link) { in destroy_linux_dmabuf_info()
1575 zwp_linux_dmabuf_v1_destroy(dmabuf->dmabuf); in destroy_linux_dmabuf_info()
1581 struct linux_dmabuf_info *dmabuf = xzalloc(sizeof *dmabuf); in add_linux_dmabuf_info() local
1583 init_global_info(info, &dmabuf->global, id, "zwp_linux_dmabuf_v1", version); in add_linux_dmabuf_info()
[all …]
Dmeson.build54 'name': 'dmabuf-egl',
56 'simple-dmabuf-egl.c',
77 'name': 'dmabuf-v4l',
79 'simple-dmabuf-v4l.c',
Dsimple-dmabuf-v4l.c111 struct zwp_linux_dmabuf_v1 *dmabuf; member
391 params = zwp_linux_dmabuf_v1_create_params(display->dmabuf); in create_dmabuf_buffer()
854 d->dmabuf = wl_registry_bind(registry, in registry_handle_global()
856 zwp_linux_dmabuf_v1_add_listener(d->dmabuf, &dmabuf_listener, in registry_handle_global()
894 if (display->dmabuf == NULL) { in create_display()
915 if (display->dmabuf) in destroy_display()
916 zwp_linux_dmabuf_v1_destroy(display->dmabuf); in destroy_display()
Dsimple-dmabuf-egl.c81 struct zwp_linux_dmabuf_v1 *dmabuf; member
404 params = zwp_linux_dmabuf_v1_create_params(display->dmabuf); in create_dmabuf_buffer()
1058 d->dmabuf = wl_registry_bind(registry, in registry_handle_global()
1060 zwp_linux_dmabuf_v1_add_listener(d->dmabuf, &dmabuf_listener, d); in registry_handle_global()
1099 if (display->dmabuf) in destroy_display()
1100 zwp_linux_dmabuf_v1_destroy(display->dmabuf); in destroy_display()
1382 if (display->dmabuf == NULL) { in create_display()
Dsimple-dmabuf-egl-hos.c82 struct zwp_linux_dmabuf_v1 *dmabuf; member
405 params = zwp_linux_dmabuf_v1_create_params(display->dmabuf); in create_dmabuf_buffer()
1113 d->dmabuf = wl_registry_bind(registry, in registry_handle_global()
1115 zwp_linux_dmabuf_v1_add_listener(d->dmabuf, &dmabuf_listener, d); in registry_handle_global()
1154 if (display->dmabuf) in destroy_display()
1155 zwp_linux_dmabuf_v1_destroy(display->dmabuf); in destroy_display()
1434 if (display->dmabuf == NULL) { in create_display()
/third_party/gstreamer/gstplugins_bad/sys/msdk/
Dgstmsdkbufferpool.c84 gboolean video, dmabuf; in _msdk_get_memory_type() local
88 dmabuf = gst_buffer_pool_config_has_option (config, in _msdk_get_memory_type()
91 if (video && !dmabuf) in _msdk_get_memory_type()
93 if (video && dmabuf) in _msdk_get_memory_type()
95 if (!video && dmabuf) in _msdk_get_memory_type()
/third_party/weston/libweston/backend-hdi/
Dhdi_renderer.cpp164 struct linux_dmabuf_buffer *dmabuf = linux_dmabuf_buffer_get(buffer->resource); in hdi_renderer_surface_state_mmap() local
165 if (dmabuf == NULL) { in hdi_renderer_surface_state_mmap()
169 BufferHandle *bh = dmabuf->attributes.buffer_handle; in hdi_renderer_surface_state_mmap()
193 struct linux_dmabuf_buffer *dmabuf = linux_dmabuf_buffer_get(buffer->resource); in hdi_renderer_surface_state_unmap() local
194 if (dmabuf == NULL) { in hdi_renderer_surface_state_unmap()
198 BufferHandle *bh = dmabuf->attributes.buffer_handle; in hdi_renderer_surface_state_unmap()
267 struct linux_dmabuf_buffer *dmabuf = linux_dmabuf_buffer_get(buffer->resource); in hdi_renderer_attach() local
268 if (dmabuf != NULL) { in hdi_renderer_attach()
272 buffer->width = dmabuf->attributes.width; in hdi_renderer_attach()
273 buffer->height = dmabuf->attributes.height; in hdi_renderer_attach()
Dhdi_output.cpp147 struct linux_dmabuf_buffer *dmabuf = linux_dmabuf_buffer_get(buffer->resource); in dump_to_file() local
148 if (dmabuf == nullptr) { in dump_to_file()
153 BufferHandle *bh = dmabuf->attributes.buffer_handle; in dump_to_file()
/third_party/weston/libweston/renderer-gl/
Dgl-renderer.c136 struct linux_dmabuf_buffer *dmabuf; member
410 if (image->dmabuf) in dmabuf_image_destroy()
411 linux_dmabuf_buffer_set_user_data(image->dmabuf, NULL, NULL); in dmabuf_image_destroy()
1953 gl_renderer_destroy_dmabuf(struct linux_dmabuf_buffer *dmabuf) in gl_renderer_destroy_dmabuf() argument
1955 struct dmabuf_image *image = linux_dmabuf_buffer_get_user_data(dmabuf); in gl_renderer_destroy_dmabuf()
2202 struct dmabuf_attributes *attributes = &image->dmabuf->attributes; in import_yuv_dmabuf()
2349 struct linux_dmabuf_buffer *dmabuf) in import_dmabuf() argument
2355 image->dmabuf = dmabuf; in import_dmabuf()
2357 egl_image = import_simple_dmabuf(gr, &dmabuf->attributes); in import_dmabuf()
2362 image->target = choose_texture_target(gr, &dmabuf->attributes); in import_dmabuf()
[all …]
/third_party/wayland-protocols_standard/
DMakefile.am6 unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml \
/third_party/mesa3d/docs/relnotes/
D21.3.1.rst93 - zink: block suballocator caching for swapchain/dmabuf images
95 - zink: stop using VK_IMAGE_LAYOUT_PREINITIALIZED for dmabuf
96 - zink: always set matching resource export type for dmabuf creation
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/egl/
Dgsteglimage.h87 gint dmabuf,
/third_party/weston/
Dmeson_options.txt189 choices: [ 'all', 'damage', 'im', 'egl', 'shm', 'touch', 'dmabuf-v4l', 'dmabuf-egl' ],
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_tests.c910 uint64_t handle, dmabuf, offset, stride, planes; in test_nv12() member
928 0, &handle[i].dmabuf)) { in test_nv12()
962 handle[0].dmabuf && handle[1].dmabuf && handle[2].dmabuf && in test_nv12()
/third_party/weston/protocol/
Dmeson.build21 [ 'linux-dmabuf', 'v1' ],
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgstgldownloadelement.c1058 GstMemory *dmabuf; member
1066 gst_memory_unref (info->dmabuf); in _free_dmabuf_info()
1122 info->dmabuf = in _create_cached_dmabuf_info()
1181 total_offset += gst_memory_get_sizes (info->dmabuf, NULL, NULL); in _try_export_dmabuf()
1182 gst_buffer_insert_memory (buffer, -1, gst_memory_ref (info->dmabuf)); in _try_export_dmabuf()

12