Home
last modified time | relevance | path

Searched refs:GST_MEMORY_CAST (Results 1 – 25 of 47) sorted by relevance

12

/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/
Dgstglmemorypbo.c197 { 0, GST_MEMORY_CAST (gl_mem)->align, 0, 0 }; in _gl_mem_create()
207 GST_MEMORY_CAST (gl_mem)->size, &alloc_params, GL_PIXEL_UNPACK_BUFFER, in _gl_mem_create()
236 GST_MEMORY_CAST (gl_mem)->size); in _gl_mem_create()
266 gl_mem->mem.plane) + GST_MEMORY_CAST (gl_mem)->offset; in _read_pixels_to_pbo()
269 if (!gst_memory_map (GST_MEMORY_CAST (gl_mem->pbo), &pbo_info, in _read_pixels_to_pbo()
277 gst_memory_unmap (GST_MEMORY_CAST (gl_mem->pbo), &pbo_info); in _read_pixels_to_pbo()
281 gst_memory_unmap (GST_MEMORY_CAST (gl_mem->pbo), &pbo_info); in _read_pixels_to_pbo()
303 if (!gst_memory_map (GST_MEMORY_CAST (gl_mem->pbo), &info, in _pbo_download_transfer()
310 gst_memory_unmap (GST_MEMORY_CAST (gl_mem->pbo), &info); in _pbo_download_transfer()
314 gst_memory_unmap (GST_MEMORY_CAST (gl_mem->pbo), &info); in _pbo_download_transfer()
[all …]
Dgstglframebuffer.c108 attach->mem = (GstGLBaseMemory *) gst_memory_ref (GST_MEMORY_CAST (mem)); in _fbo_attachment_init()
118 gst_memory_unref (GST_MEMORY_CAST (attach->mem)); in _fbo_attachment_unset()
256 gst_memory_unref (GST_MEMORY_CAST (renderbuffer)); in gst_gl_framebuffer_new_with_default_depth()
290 g_return_val_if_fail (gst_is_gl_memory (GST_MEMORY_CAST (mem)), FALSE); in gst_gl_framebuffer_draw_to_texture()
375 if (gst_is_gl_memory (GST_MEMORY_CAST (attach->mem))) { in _update_effective_dimensions()
380 } else if (gst_is_gl_renderbuffer (GST_MEMORY_CAST (attach->mem))) { in _update_effective_dimensions()
490 if (gst_is_gl_memory (GST_MEMORY_CAST (mem))) { in gst_gl_framebuffer_attach()
492 } else if (gst_is_gl_renderbuffer (GST_MEMORY_CAST (mem))) { in gst_gl_framebuffer_attach()
Dgstglmemory.c686 if (!gst_memory_map (GST_MEMORY_CAST (src), &sinfo, in gst_gl_memory_copy_teximage()
772 gst_memory_unmap (GST_MEMORY_CAST (src), &sinfo); in gst_gl_memory_copy_teximage()
788 gst_memory_unmap (GST_MEMORY_CAST (src), &sinfo); in gst_gl_memory_copy_teximage()
827 GstAllocationParams params = { 0, GST_MEMORY_CAST (src)->align, 0, 0 }; in _default_gl_tex_copy()
832 allocator = GST_MEMORY_CAST (src)->allocator; in _default_gl_tex_copy()
842 if (offset > 0 || size < GST_MEMORY_CAST (src)->size) { in _default_gl_tex_copy()
843 return base_mem_allocator->fallback_mem_copy (GST_MEMORY_CAST (src), offset, in _default_gl_tex_copy()
856 if (!gst_memory_map (GST_MEMORY_CAST (dest), &dinfo, in _default_gl_tex_copy()
860 gst_memory_unref (GST_MEMORY_CAST (dest)); in _default_gl_tex_copy()
868 gst_memory_unmap (GST_MEMORY_CAST (dest), &dinfo); in _default_gl_tex_copy()
[all …]
Dgstglbuffer.c390 gst_memory_unref (GST_MEMORY_CAST (dest)); in _gl_buffer_copy()
398 gst_memory_unref (GST_MEMORY_CAST (dest)); in _gl_buffer_copy()
/third_party/gstreamer/gstplugins_bad/sys/applemedia/
Diosglmemory.c46 gst_memory_unref (GST_MEMORY_CAST (mem->cv_mem)); in _ios_gl_memory_destroy()
60 return GST_MEMORY_CAST (mem->cv_mem)->allocator-> in _ios_gl_memory_allocator_map()
61 mem_map (GST_MEMORY_CAST (mem->cv_mem), size, info->flags); in _ios_gl_memory_allocator_map()
70 GST_MEMORY_CAST (mem->cv_mem)->allocator-> in _ios_gl_memory_allocator_unmap()
71 mem_unmap (GST_MEMORY_CAST (mem->cv_mem)); in _ios_gl_memory_allocator_unmap()
Dcorevideobuffer.c128 return GST_MEMORY_CAST (mem); in _create_glmem()
183 GST_MEMORY_CAST (gst_apple_core_video_memory_new_wrapped (gpixbuf, in gst_core_video_wrap_pixel_buffer()
201 GST_MEMORY_CAST (gst_apple_core_video_memory_new_wrapped (gpixbuf, 0, in gst_core_video_wrap_pixel_buffer()
Dcorevideomemory.c314 gst_memory_init (GST_MEMORY_CAST (mem), flags, in gst_apple_core_video_memory_new()
404 GST_MEMORY_CAST (gst_apple_core_video_memory_new (GST_MINI_OBJECT_FLAGS in gst_apple_core_video_mem_share()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/vulkan/
Dgstvkimageview.c79 gst_memory_unref (GST_MEMORY_CAST (view->image)); in gst_vulkan_image_view_free()
106 g_return_val_if_fail (gst_is_vulkan_image_memory (GST_MEMORY_CAST (image)), in gst_vulkan_image_view_new()
124 (GstVulkanImageMemory *) gst_memory_ref (GST_MEMORY_CAST (image)); in gst_vulkan_image_view_new()
Dgstvkmemory.c68 gst_memory_init (GST_MEMORY_CAST (mem), flags, allocator, parent, maxsize, in _vk_mem_init()
166 while ((parent = (GstVulkanMemory *) (GST_MEMORY_CAST (parent)->parent))); in _vk_mem_share()
169 params.align = GST_MEMORY_CAST (parent)->align; in _vk_mem_share()
171 _vk_mem_init (shared, _vulkan_memory_allocator, GST_MEMORY_CAST (mem), in _vk_mem_share()
178 return GST_MEMORY_CAST (shared); in _vk_mem_share()
Dgstvkimagememory.c174 gst_memory_init (GST_MEMORY_CAST (mem), flags, allocator, parent, maxsize, in gst_vulkan_image_memory_init()
506 g_return_val_if_fail (gst_is_vulkan_image_memory (GST_MEMORY_CAST (image)), in gst_vulkan_image_memory_get_width()
523 g_return_val_if_fail (gst_is_vulkan_image_memory (GST_MEMORY_CAST (image)), in gst_vulkan_image_memory_get_height()
551 g_return_if_fail (gst_is_vulkan_image_memory (GST_MEMORY_CAST (image))); in gst_vulkan_image_memory_release_view()
581 g_return_if_fail (gst_is_vulkan_image_memory (GST_MEMORY_CAST (image))); in gst_vulkan_image_memory_add_view()
641 g_return_val_if_fail (gst_is_vulkan_image_memory (GST_MEMORY_CAST (image)), in gst_vulkan_image_memory_find_view()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/d3d11/
Dgstd3d11memory.cpp332 GST_ERROR_OBJECT (GST_MEMORY_CAST (dmem)->allocator, in gst_d3d11_memory_map_cpu_access()
585 g_return_val_if_fail (gst_is_d3d11_memory (GST_MEMORY_CAST (mem)), NULL); in gst_d3d11_memory_get_texture_handle()
601 g_return_val_if_fail (gst_is_d3d11_memory (GST_MEMORY_CAST (mem)), 0); in gst_d3d11_memory_get_subresource_index()
621 g_return_val_if_fail (gst_is_d3d11_memory (GST_MEMORY_CAST (mem)), FALSE); in gst_d3d11_memory_get_texture_desc()
632 g_return_val_if_fail (gst_is_d3d11_memory (GST_MEMORY_CAST (mem)), FALSE); in gst_d3d11_memory_get_texture_stride()
709 GST_ERROR_OBJECT (GST_MEMORY_CAST (mem)->allocator, in create_shader_resource_views()
738 GST_LOG_OBJECT (GST_MEMORY_CAST (mem)->allocator, in gst_d3d11_memory_ensure_shader_resource_view()
769 g_return_val_if_fail (gst_is_d3d11_memory (GST_MEMORY_CAST (mem)), 0); in gst_d3d11_memory_get_shader_resource_view_size()
793 g_return_val_if_fail (gst_is_d3d11_memory (GST_MEMORY_CAST (mem)), NULL); in gst_d3d11_memory_get_shader_resource_view()
865 GST_ERROR_OBJECT (GST_MEMORY_CAST (mem)->allocator, in create_render_target_views()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/
Dgstcudabasefilter.c108 gst_memory_unref (GST_MEMORY_CAST (filter->in_fallback)); in gst_cuda_base_filter_dispose()
113 gst_memory_unref (GST_MEMORY_CAST (filter->out_fallback)); in gst_cuda_base_filter_dispose()
130 gst_memory_unref (GST_MEMORY_CAST (filter->in_fallback)); in gst_cuda_base_filter_configure()
135 gst_memory_unref (GST_MEMORY_CAST (filter->out_fallback)); in gst_cuda_base_filter_configure()
Dgstcudamemory.c150 gst_memory_init (GST_MEMORY_CAST (mem), in gst_cuda_allocator_alloc()
153 return GST_MEMORY_CAST (mem); in gst_cuda_allocator_alloc()
260 GstMemory *memory = GST_MEMORY_CAST (mem); in gst_cuda_memory_device_memory_map()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/egl/
Dgstglmemoryegl.c94 g_return_val_if_fail (gst_is_gl_memory_egl (GST_MEMORY_CAST (mem)), in gst_gl_memory_egl_get_image()
110 g_return_val_if_fail (gst_is_gl_memory_egl (GST_MEMORY_CAST (mem)), NULL); in gst_gl_memory_egl_get_display()
169 gst_allocator_free (GST_ALLOCATOR_CAST (allocator), GST_MEMORY_CAST (mem)); in _gl_mem_egl_alloc()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/allocators/
Dgstfdmemory.c201 gst_memory_init (GST_MEMORY_CAST (sub), GST_MINI_OBJECT_FLAGS (parent) | in gst_fd_mem_share()
208 return GST_MEMORY_CAST (sub); in gst_fd_mem_share()
292 gst_memory_init (GST_MEMORY_CAST (mem), 0, GST_ALLOCATOR_CAST (allocator), in gst_fd_allocator_alloc()
/third_party/gstreamer/gstreamer/tests/examples/memory/
Dmy-memory.c41 gst_memory_init (GST_MEMORY_CAST (mem), params->flags, allocator, NULL, in _my_alloc()
106 gst_memory_init (GST_MEMORY_CAST (sub), GST_MINI_OBJECT_FLAGS (parent) | in _my_mem_share()
Dmy-vidmem.c101 gst_memory_init (GST_MEMORY_CAST (sub), GST_MINI_OBJECT_FLAGS (parent) | in _my_vidmem_share()
166 gst_memory_init (GST_MEMORY_CAST (mem), 0, _my_allocator, NULL, in my_vidmem_alloc()
/third_party/gstreamer/gstreamer/gst/
Dgstmemory.h43 #define GST_MEMORY_CAST(mem) ((GstMemory *)(mem)) macro
358 #define gst_memory_make_writable(m) GST_MEMORY_CAST (gst_mini_object_make_writable (GST_MINI…
/third_party/gstreamer/gstplugins_bad/sys/msdk/
Dgstmsdksystemmemory.c57 allocator = GST_MEMORY_CAST (mem)->allocator; in ensure_data()
243 return GST_MEMORY_CAST (mem); in gst_msdk_system_memory_new()
320 return GST_MEMORY_CAST (copy); in gst_msdk_system_memory_copy()
Dgstmsdkvideomemory.c179 return GST_MEMORY_CAST (mem); in gst_msdk_video_memory_new()
198 allocator = GST_MEMORY_CAST (mem)->allocator; in gst_video_meta_map_msdk_memory()
279 allocator = GST_MEMORY_CAST (mem)->allocator; in gst_video_meta_unmap_msdk_memory()
Dmsdk.c546 allocator = GST_MEMORY_CAST (mem)->allocator; in gst_msdk_is_msdk_buffer()
562 allocator = GST_MEMORY_CAST (mem)->allocator; in gst_msdk_get_surface_from_buffer()
/third_party/gstreamer/gstplugins_bad/sys/va/
Dgstvaallocator.c464 GstMemory *mem = GST_MEMORY_CAST (mini_object); in gst_va_dmabuf_memory_release()
1026 gst_memory_init (GST_MEMORY_CAST (mem), 0, allocator, NULL, size, in _reset_mem()
1091 GstAllocator *allocator = GST_MEMORY_CAST (mem)->allocator; in _va_map_unlocked()
1194 GstAllocator *allocator = GST_MEMORY_CAST (mem)->allocator; in _va_unmap_unlocked()
1256 gst_memory_init (GST_MEMORY_CAST (sub), GST_MINI_OBJECT_FLAGS (parent) | in _va_share()
1268 return GST_MEMORY_CAST (sub); in _va_share()
1354 GstMemory *mem = GST_MEMORY_CAST (mini_object); in gst_va_memory_release()
1403 return GST_MEMORY_CAST (mem); in gst_va_allocator_alloc()
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgstgldifferencematte.c193 gst_memory_unref (GST_MEMORY_CAST (differencematte->savedbgtexture)); in gst_gl_differencematte_gl_stop()
198 gst_memory_unref (GST_MEMORY_CAST (differencematte->newbgtexture)); in gst_gl_differencematte_gl_stop()
214 gst_memory_unref (GST_MEMORY_CAST (differencematte->midtexture[i])); in gst_gl_differencematte_gl_stop()
/third_party/gstreamer/gstplugins_base/sys/ximage/
Dximagepool.c156 gst_memory_init (GST_MEMORY_CAST (sub), GST_MINI_OBJECT_FLAGS (parent) | in ximage_memory_share()
354 gst_memory_init (GST_MEMORY_CAST (mem), GST_MEMORY_FLAG_NO_SHARE, in ximage_memory_alloc()
367 return GST_MEMORY_CAST (mem); in ximage_memory_alloc()
/third_party/gstreamer/gstplugins_base/sys/xvimage/
Dxvimageallocator.c228 gst_memory_init (GST_MEMORY_CAST (sub), GST_MINI_OBJECT_FLAGS (parent) | in gst_xvimage_memory_share()
517 gst_memory_init (GST_MEMORY_CAST (mem), 0, in gst_xvimage_allocator_alloc()
531 return GST_MEMORY_CAST (mem); in gst_xvimage_allocator_alloc()

12