Home
last modified time | relevance | path

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

/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/
Dgstglmemorypbo.c60 #define GL_MEM_HEIGHT(gl_mem) _get_plane_height (&gl_mem->mem.info, gl_mem->mem.plane) argument
61 #define GL_MEM_STRIDE(gl_mem) GST_VIDEO_INFO_PLANE_STRIDE (&gl_mem->mem.info, gl_mem->mem.plane) argument
137 _upload_pbo_memory (GstGLMemoryPBO * gl_mem, GstMapInfo * info, in _upload_pbo_memory() argument
140 GstGLContext *context = gl_mem->mem.mem.context; in _upload_pbo_memory()
144 if (!GST_MEMORY_FLAG_IS_SET (gl_mem, GST_GL_BASE_MEMORY_TRANSFER_NEED_UPLOAD)) in _upload_pbo_memory()
153 gl_mem->mem.tex_id, pbo_id, gl_mem->mem.tex_width, in _upload_pbo_memory()
154 GL_MEM_HEIGHT (gl_mem)); in _upload_pbo_memory()
157 gst_gl_memory_texsubimage (GST_GL_MEMORY_CAST (gl_mem), NULL); in _upload_pbo_memory()
185 _gl_mem_create (GstGLMemoryPBO * gl_mem, GError ** error) in _gl_mem_create() argument
187 GstGLContext *context = gl_mem->mem.mem.context; in _gl_mem_create()
[all …]
Dgstglmemory.c60 #define GL_MEM_WIDTH(gl_mem) _get_plane_width (&gl_mem->info, gl_mem->plane) argument
61 #define GL_MEM_HEIGHT(gl_mem) _get_plane_height (&gl_mem->info, gl_mem->plane) argument
62 #define GL_MEM_STRIDE(gl_mem) GST_VIDEO_INFO_PLANE_STRIDE (&gl_mem->info, gl_mem->plane) argument
134 _calculate_unpack_length (GstGLMemory * gl_mem, GstGLContext * context) in _calculate_unpack_length() argument
140 gl_mem->tex_scaling[0] = 1.0f; in _calculate_unpack_length()
141 gl_mem->tex_scaling[1] = 1.0f; in _calculate_unpack_length()
142 gl_mem->unpack_length = 1; in _calculate_unpack_length()
143 gl_mem->tex_width = GL_MEM_WIDTH (gl_mem); in _calculate_unpack_length()
145 gst_gl_format_type_from_sized_gl_format (gl_mem->tex_format, &tex_format, in _calculate_unpack_length()
149 GST_ERROR ("Unsupported texture type %d", gl_mem->tex_format); in _calculate_unpack_length()
[all …]
Dgstglrenderbuffer.c82 _gl_rbo_create (GstGLRenderbuffer * gl_mem, GError ** error) in _gl_rbo_create() argument
84 if (!gl_mem->renderbuffer_wrapped) { in _gl_rbo_create()
85 GstGLContext *context = gl_mem->mem.context; in _gl_rbo_create()
90 tex_format = gl_mem->renderbuffer_format; in _gl_rbo_create()
92 if (gl_mem->renderbuffer_format == GST_GL_RGB565) { in _gl_rbo_create()
101 gl_mem->renderbuffer_id = in _gl_rbo_create()
103 gst_gl_renderbuffer_get_width (gl_mem), in _gl_rbo_create()
104 gst_gl_renderbuffer_get_height (gl_mem)); in _gl_rbo_create()
107 "format:%u dimensions:%ux%u", gl_mem->renderbuffer_id, internal_format, in _gl_rbo_create()
108 gst_gl_renderbuffer_get_width (gl_mem), in _gl_rbo_create()
[all …]
Dgstglbuffer.c92 _gl_buffer_create (GstGLBuffer * gl_mem, GError ** error) in _gl_buffer_create() argument
94 const GstGLFuncs *gl = gl_mem->mem.context->gl_vtable; in _gl_buffer_create()
96 gl->GenBuffers (1, &gl_mem->id); in _gl_buffer_create()
97 gl->BindBuffer (gl_mem->target, gl_mem->id); in _gl_buffer_create()
98 if (HAVE_BUFFER_STORAGE (gl_mem->mem.context)) { in _gl_buffer_create()
112 if (gl_mem->usage_hints == GL_STREAM_DRAW) { in _gl_buffer_create()
114 "buffer %p %u", gl_mem, gl_mem->id); in _gl_buffer_create()
118 gl->BufferStorage (gl_mem->target, gl_mem->mem.mem.maxsize, NULL, flags); in _gl_buffer_create()
120 gl->BufferData (gl_mem->target, gl_mem->mem.mem.maxsize, NULL, in _gl_buffer_create()
121 gl_mem->usage_hints); in _gl_buffer_create()
[all …]
Dgstglmemory.h281 gboolean gst_gl_memory_copy_into (GstGLMemory *gl_mem,
296 gboolean gst_gl_memory_read_pixels (GstGLMemory * gl_mem,
299 void gst_gl_memory_texsubimage (GstGLMemory * gl_mem,
304 gint gst_gl_memory_get_texture_width (GstGLMemory * gl_mem);
306 gint gst_gl_memory_get_texture_height (GstGLMemory * gl_mem);
308 GstGLFormat gst_gl_memory_get_texture_format (GstGLMemory * gl_mem);
310 GstGLTextureTarget gst_gl_memory_get_texture_target (GstGLMemory * gl_mem);
312 guint gst_gl_memory_get_texture_id (GstGLMemory * gl_mem);
Dgstglbasememory.c220 gst_gl_base_memory_alloc_data (GstGLBaseMemory * gl_mem) in gst_gl_base_memory_alloc_data() argument
222 GstMemory *mem = (GstMemory *) gl_mem; in gst_gl_base_memory_alloc_data()
224 if (gl_mem->data) in gst_gl_base_memory_alloc_data()
228 "pointer of size %" G_GSIZE_FORMAT, gl_mem, gl_mem->alloc_size); in gst_gl_base_memory_alloc_data()
229 gl_mem->alloc_data = g_try_malloc (gl_mem->alloc_size); in gst_gl_base_memory_alloc_data()
231 if (gl_mem->alloc_data == NULL) in gst_gl_base_memory_alloc_data()
234 gl_mem->data = _align_data (gl_mem->alloc_data, mem->align); in gst_gl_base_memory_alloc_data()
237 "data %p", gl_mem, gl_mem->alloc_data, gl_mem->data); in gst_gl_base_memory_alloc_data()
Dgstglrenderbuffer.h163 gint gst_gl_renderbuffer_get_width (GstGLRenderbuffer * gl_mem);
166 gint gst_gl_renderbuffer_get_height (GstGLRenderbuffer * gl_mem);
169 GstGLFormat gst_gl_renderbuffer_get_format (GstGLRenderbuffer * gl_mem);
172 guint gst_gl_renderbuffer_get_id (GstGLRenderbuffer * gl_mem);
Dgstglmemorypbo.h77 void gst_gl_memory_pbo_download_transfer (GstGLMemoryPBO * gl_mem);
79 void gst_gl_memory_pbo_upload_transfer (GstGLMemoryPBO * gl_mem);
82 gboolean gst_gl_memory_pbo_copy_into_texture (GstGLMemoryPBO *gl_mem,
Dgstglbasememory.h407 gboolean gst_gl_base_memory_alloc_data (GstGLBaseMemory * gl_mem);
Dgstglupload.c428 GstGLMemory *gl_mem; in _gl_memory_upload_perform() local
435 gl_mem = (GstGLMemory *) mem; in _gl_memory_upload_perform()
437 gl_mem->mem.context)) in _gl_memory_upload_perform()
449 upload->input_target = gl_mem->tex_target; in _gl_memory_upload_perform()
450 if (upload->output_target != gl_mem->tex_target) { in _gl_memory_upload_perform()
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Dgstglmemory.c109 GstGLMemory *gl_mem; in create_memory() local
126 gl_mem = (GstGLMemory *) mem; in create_memory()
133 &gl_mem->info)); in create_memory()
134 fail_unless_equals_int (plane, gl_mem->plane); in create_memory()
135 fail_if (gl_mem->mem.context != context); in create_memory()
136 fail_if (gl_mem->tex_id == 0); in create_memory()
172 GstGLMemory *gl_mem, *gl_mem2; in GST_START_TEST() local
178 gl_mem = (GstGLMemory *) mem; in GST_START_TEST()
182 fail_unless (gl_mem->mem.context == context); in GST_START_TEST()
183 fail_unless_equals_int (gl_mem->tex_id, gl_mem2->tex_id); in GST_START_TEST()
[all …]
Dgstglupload.c319 GstGLMemory *gl_mem; in GST_START_TEST() local
339 gl_mem = (GstGLMemory *) gst_gl_base_memory_alloc (base_mem_alloc, in GST_START_TEST()
344 gst_memory_map ((GstMemory *) gl_mem, &map_info, in GST_START_TEST()
348 gst_memory_unmap ((GstMemory *) gl_mem, &map_info); in GST_START_TEST()
350 gst_buffer_append_memory (buffer, (GstMemory *) gl_mem); in GST_START_TEST()
/third_party/gstreamer/gstplugins_bad/sys/applemedia/
Diosurfaceglmemory.c47 GstGLMemory *gl_mem = (GstGLMemory *) bmem; in _io_surface_gl_memory_create() local
48 GstGLContext *context = gl_mem->mem.context; in _io_surface_gl_memory_create()
52 target = gst_gl_texture_target_to_gl (gl_mem->tex_target); in _io_surface_gl_memory_create()
53 gl->GenTextures (1, &gl_mem->tex_id); in _io_surface_gl_memory_create()
54 gl->BindTexture (target, gl_mem->tex_id); in _io_surface_gl_memory_create()
57 GST_LOG ("generated texture id:%d", gl_mem->tex_id); in _io_surface_gl_memory_create()
63 _io_surface_gl_memory_destroy (GstGLBaseMemory * gl_mem) in _io_surface_gl_memory_destroy() argument
66 (gst_io_surface_gl_memory_allocator_parent_class)->destroy (gl_mem); in _io_surface_gl_memory_destroy()
67 _io_surface_gl_memory_set_surface ((GstIOSurfaceGLMemory *) gl_mem, NULL); in _io_surface_gl_memory_destroy()
74 GstGLMemory *gl_mem = (GstGLMemory *) bmem; in _io_surface_gl_memory_allocator_map() local
[all …]
Diosglmemory.c41 _ios_gl_memory_destroy (GstGLBaseMemory * gl_mem) in _ios_gl_memory_destroy() argument
43 GstIOSGLMemory *mem = (GstIOSGLMemory *) gl_mem; in _ios_gl_memory_destroy()
48 (gst_ios_gl_memory_allocator_parent_class)->destroy (gl_mem); in _ios_gl_memory_destroy()
55 GstGLMemory *gl_mem = (GstGLMemory *) bmem; in _ios_gl_memory_allocator_map() local
56 GstIOSGLMemory *mem = (GstIOSGLMemory *) gl_mem; in _ios_gl_memory_allocator_map()
59 return &gl_mem->tex_id; in _ios_gl_memory_allocator_map()
145 mem->gl_mem.tex_id = tex_id; in _ios_gl_memory_new()
146 mem->gl_mem.texture_wrapped = TRUE; in _ios_gl_memory_new()
147 gst_gl_memory_init (&mem->gl_mem, _ios_gl_memory_allocator, NULL, context, in _ios_gl_memory_new()
Diosurfaceglmemory.h45 GstGLMemory gl_mem; member
Diosglmemory.h45 GstGLMemory gl_mem; member
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/egl/
Dgstglmemoryegl.c77 _gl_mem_get_parent (GstGLMemoryEGL * gl_mem) in _gl_mem_get_parent() argument
79 GstGLMemoryEGL *parent = (GstGLMemoryEGL *) gl_mem->mem.mem.mem.parent; in _gl_mem_get_parent()
80 return parent ? parent : gl_mem; in _gl_mem_get_parent()
177 _gl_mem_create (GstGLMemoryEGL * gl_mem, GError ** error) in _gl_mem_create() argument
179 GstGLContext *context = gl_mem->mem.mem.context; in _gl_mem_create()
191 if (!alloc_class->create ((GstGLBaseMemory *) gl_mem, error)) in _gl_mem_create()
194 if (gl_mem->image == NULL) { in _gl_mem_create()
195 gl_mem->image = gst_egl_image_from_texture (context, in _gl_mem_create()
196 (GstGLMemory *) gl_mem, NULL); in _gl_mem_create()
198 if (!gl_mem->image) { in _gl_mem_create()
[all …]
Dgsteglimage.c427 gst_egl_image_from_texture (GstGLContext * context, GstGLMemory * gl_mem, in gst_egl_image_from_texture() argument
433 if (gl_mem->tex_target != GST_GL_TEXTURE_TARGET_2D) { in gst_egl_image_from_texture()
442 (EGLClientBuffer) (guintptr) gl_mem->tex_id, attribs); in gst_egl_image_from_texture()
446 return gst_egl_image_new_wrapped (context, img, gl_mem->tex_format, NULL, in gst_egl_image_from_texture()
Dgsteglimage.h82 GstGLMemory * gl_mem,
/third_party/gstreamer/gstplugins_good/ext/qt/
Dgstqtoverlay.cc420 GstGLMemory *gl_mem; in gst_qt_overlay_prepare_output_buffer() local
430 gl_mem = (GstGLMemory *) mem; in gst_qt_overlay_prepare_output_buffer()
431 if (!gst_gl_context_can_share (gl_mem->mem.context, bfilter->context)) { in gst_qt_overlay_prepare_output_buffer()
435 gl_mem->mem.context, bfilter->context); in gst_qt_overlay_prepare_output_buffer()
Dqtglrenderer.cc217 gl_mem(NULL), in GstQuickRenderer()
592 gl_mem = (GstGLMemory *) gst_gl_base_memory_alloc (gl_allocator, gl_params); in renderGstGL()
623 GstGLMemory *tmp = gl_mem; in generateOutput()
624 gl_mem = NULL; in generateOutput()
Dqtglrenderer.h103 GstGLMemory *gl_mem; in QT_FORWARD_DECLARE_CLASS() local
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/
Dgstnvbaseenc.c2048 GstGLMemoryPBO *gl_mem = (GstGLMemoryPBO *) data->mem; in register_cuda_resource() local
2049 gl_buf_obj = gl_mem->pbo; in register_cuda_resource()
2150 GstGLMemoryPBO *gl_mem; in _map_gl_input_buffer() local
2156 gl_mem = (GstGLMemoryPBO *) gst_buffer_peek_memory (data->buffer, i); in _map_gl_input_buffer()
2157 g_return_if_fail (gst_is_gl_memory_pbo ((GstMemory *) gl_mem)); in _map_gl_input_buffer()
2159 gl_buf_obj = (GstGLBuffer *) gl_mem->pbo; in _map_gl_input_buffer()
2163 gst_gl_memory_pbo_upload_transfer (gl_mem); in _map_gl_input_buffer()
2164 gst_gl_memory_pbo_download_transfer (gl_mem); in _map_gl_input_buffer()
2167 gl_mem->mem.tex_id); in _map_gl_input_buffer()
2175 gl_mem->mem.tex_id); in _map_gl_input_buffer()
[all …]
Dgstnvdecoder.c500 GstGLMemoryPBO *gl_mem = (GstGLMemoryPBO *) mem; in gst_nv_decoder_register_cuda_resource() local
501 GstGLBuffer *gl_buffer = gl_mem->pbo; in gst_nv_decoder_register_cuda_resource()
Dgstnvdec.c88 GstGLMemoryPBO *gl_mem = (GstGLMemoryPBO *) data->mem; in register_cuda_resource() local
89 gl_buf_obj = gl_mem->pbo; in register_cuda_resource()