Home
last modified time | relevance | path

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

12

/third_party/gstreamer/gstplugins_bad/gst-libs/gst/vulkan/
Dgstvkbufferpool.c45 GstVideoInfo v_info; member
91 if (!gst_video_info_from_caps (&priv->v_info, caps)) in gst_vulkan_buffer_pool_set_config()
94 GST_LOG_OBJECT (pool, "%dx%d, caps %" GST_PTR_FORMAT, priv->v_info.width, in gst_vulkan_buffer_pool_set_config()
95 priv->v_info.height, caps); in gst_vulkan_buffer_pool_set_config()
100 priv->v_info.size = 0; in gst_vulkan_buffer_pool_set_config()
101 for (i = 0; i < GST_VIDEO_INFO_N_PLANES (&priv->v_info); i++) { in gst_vulkan_buffer_pool_set_config()
102 priv->alloc_sizes[i] = GST_VIDEO_INFO_COMP_HEIGHT (&priv->v_info, i) * in gst_vulkan_buffer_pool_set_config()
103 GST_VIDEO_INFO_PLANE_STRIDE (&priv->v_info, i); in gst_vulkan_buffer_pool_set_config()
104 priv->v_info.offset[i] = priv->v_info.size; in gst_vulkan_buffer_pool_set_config()
105 priv->v_info.size += priv->alloc_sizes[i]; in gst_vulkan_buffer_pool_set_config()
[all …]
Dgstvkimagebufferpool.c46 GstVideoInfo v_info; member
93 if (!gst_video_info_from_caps (&priv->v_info, caps)) in gst_vulkan_image_buffer_pool_set_config()
96 GST_LOG_OBJECT (pool, "%dx%d, caps %" GST_PTR_FORMAT, priv->v_info.width, in gst_vulkan_image_buffer_pool_set_config()
97 priv->v_info.height, caps); in gst_vulkan_image_buffer_pool_set_config()
106 priv->v_info.size = 0; in gst_vulkan_image_buffer_pool_set_config()
107 for (i = 0; i < GST_VIDEO_INFO_N_PLANES (&priv->v_info); i++) { in gst_vulkan_image_buffer_pool_set_config()
113 vk_format = gst_vulkan_format_from_video_info (&priv->v_info, i); in gst_vulkan_image_buffer_pool_set_config()
114 width = GST_VIDEO_INFO_COMP_WIDTH (&priv->v_info, i); in gst_vulkan_image_buffer_pool_set_config()
115 height = GST_VIDEO_INFO_COMP_HEIGHT (&priv->v_info, i); in gst_vulkan_image_buffer_pool_set_config()
127 priv->v_info.offset[i] = priv->v_info.size; in gst_vulkan_image_buffer_pool_set_config()
[all …]
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Dgstglmemory.c103 create_memory (const gchar * allocator_name, const GstVideoInfo * v_info, in create_memory() argument
113 allocator_name, GST_VIDEO_INFO_NAME (v_info), in create_memory()
114 GST_VIDEO_INFO_WIDTH (v_info), GST_VIDEO_INFO_HEIGHT (v_info), plane); in create_memory()
120 params = gst_gl_video_allocation_params_new (context, NULL, v_info, plane, in create_memory()
132 fail_unless_equals_int (TRUE, gst_video_info_is_equal (v_info, in create_memory()
149 GstVideoInfo v_info; in GST_START_TEST() local
152 gst_video_info_set_format (&v_info, formats[i].format, formats[i].width, in GST_START_TEST()
154 mem = create_memory (GST_GL_MEMORY_ALLOCATOR_NAME, &v_info, in GST_START_TEST()
157 mem = create_memory (GST_GL_MEMORY_PBO_ALLOCATOR_NAME, &v_info, in GST_START_TEST()
170 GstVideoInfo v_info; in GST_START_TEST() local
[all …]
/third_party/gstreamer/gstplugins_bad/tests/check/libs/
Dvkimage.c60 create_image_mem (GstVideoInfo * v_info) in create_image_mem() argument
67 vk_format = gst_vulkan_format_from_video_info (v_info, 0); in create_image_mem()
72 GST_VIDEO_INFO_COMP_WIDTH (v_info, 0), in create_image_mem()
73 GST_VIDEO_INFO_COMP_HEIGHT (v_info, 0), VK_IMAGE_TILING_LINEAR, in create_image_mem()
84 GstVideoInfo v_info; in GST_START_TEST() local
87 gst_video_info_set_format (&v_info, GST_VIDEO_FORMAT_RGBA, 16, 16); in GST_START_TEST()
88 vk_mem = create_image_mem (&v_info); in GST_START_TEST()
95 check_size ((GstMemory *) vk_mem, v_info.size); in GST_START_TEST()
100 check_size ((GstMemory *) vk_mem->vk_mem, v_info.size); in GST_START_TEST()
111 GstVideoInfo v_info; in GST_START_TEST() local
[all …]
/third_party/gstreamer/gstplugins_good/ext/qt/
Dgstqsgtexture.cc49 gst_video_info_init (&this->v_info); in GstQSGTexture()
75 gst_video_info_from_caps (&this->v_info, caps); in setCaps()
125 if (GST_VIDEO_INFO_FORMAT (&this->v_info) == GST_VIDEO_FORMAT_UNKNOWN) in bind()
135 if (!gst_video_frame_map (&this->v_frame, &this->v_info, this->buffer_, in bind()
223 if (GST_VIDEO_INFO_FORMAT (&this->v_info) == GST_VIDEO_FORMAT_UNKNOWN) in textureSize()
226 GST_TRACE ("%p get texture size %ux%u", this, this->v_info.width, in textureSize()
227 this->v_info.height); in textureSize()
229 return QSize (this->v_info.width, this->v_info.height); in textureSize()
236 const bool has_alpha = GST_VIDEO_FORMAT_INFO_HAS_ALPHA(this->v_info.finfo); in hasAlphaChannel()
Dqtwindow.cc62 GstVideoInfo v_info; member
188 width = GST_VIDEO_INFO_WIDTH (&this->priv->v_info); in afterRendering()
189 height = GST_VIDEO_INFO_HEIGHT (&this->priv->v_info); in afterRendering()
190 info = &this->priv->v_info; in afterRendering()
390 GstVideoInfo v_info; in qt_window_set_caps() local
399 if (!gst_video_info_from_caps (&v_info, caps)) in qt_window_set_caps()
406 qt_window->priv->v_info = v_info; in qt_window_set_caps()
Dqtitem.cc76 GstVideoInfo v_info; member
401 stream_width = (gdouble) GST_VIDEO_INFO_WIDTH (&this->priv->v_info); in mapPointToStreamSize()
402 stream_height = (gdouble) GST_VIDEO_INFO_HEIGHT (&this->priv->v_info); in mapPointToStreamSize()
575 qt_item->priv->v_info = qt_item->priv->new_v_info; in setBuffer()
577 if (!_calculate_par (qt_item, &qt_item->priv->v_info)) { in setBuffer()
702 GstVideoInfo v_info; in setCaps() local
713 if (!gst_video_info_from_caps (&v_info, caps)) in setCaps()
722 qt_item->priv->new_v_info = v_info; in setCaps()
Dgstqtsink.cc429 if (GST_VIDEO_INFO_FPS_N (&qt_sink->v_info) > 0) { in gst_qt_sink_get_times()
432 GST_VIDEO_INFO_FPS_D (&qt_sink->v_info), in gst_qt_sink_get_times()
433 GST_VIDEO_INFO_FPS_N (&qt_sink->v_info)); in gst_qt_sink_get_times()
446 if (!gst_video_info_from_caps (&qt_sink->v_info, caps)) in gst_qt_sink_set_caps()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/
Dgstglmemory.c940 params->parent.alloc_params, params->v_info, params->plane, in _default_gl_tex_alloc()
1196 const GstAllocationParams * alloc_params, const GstVideoInfo * v_info, in gst_gl_video_allocation_params_init_full() argument
1207 g_return_val_if_fail (v_info != NULL, FALSE); in gst_gl_video_allocation_params_init_full()
1216 params->v_info = g_new0 (GstVideoInfo, 1); in gst_gl_video_allocation_params_init_full()
1217 *params->v_info = *v_info; in gst_gl_video_allocation_params_init_full()
1219 params->v_info->offset[i] = v_info->offset[i]; in gst_gl_video_allocation_params_init_full()
1220 params->v_info->stride[i] = v_info->stride[i]; in gst_gl_video_allocation_params_init_full()
1246 const GstAllocationParams * alloc_params, const GstVideoInfo * v_info, in gst_gl_video_allocation_params_new() argument
1260 v_info, plane, valign, target, tex_format, NULL, 0, NULL, NULL)) { in gst_gl_video_allocation_params_new()
1287 const GstAllocationParams * alloc_params, const GstVideoInfo * v_info, in gst_gl_video_allocation_params_new_wrapped_data() argument
[all …]
Dgstglbufferpool.c163 gst_video_info_align (priv->gl_params->v_info, priv->gl_params->valign); in gst_gl_buffer_pool_set_config()
223 priv->gl_params->v_info->size = 0; in gst_gl_buffer_pool_set_config()
224 for (p = 0; p < GST_VIDEO_INFO_N_PLANES (priv->gl_params->v_info); p++) { in gst_gl_buffer_pool_set_config()
225 priv->gl_params->v_info->offset[p] = priv->gl_params->v_info->size; in gst_gl_buffer_pool_set_config()
226 priv->gl_params->v_info->size += in gst_gl_buffer_pool_set_config()
227 gst_gl_get_plane_data_size (priv->gl_params->v_info, in gst_gl_buffer_pool_set_config()
232 priv->gl_params->v_info->size, min_buffers, max_buffers); in gst_gl_buffer_pool_set_config()
Dgstglmemory.h131 GstVideoInfo *v_info; member
149 const GstVideoInfo * v_info,
161 const GstVideoInfo * v_info,
169 … const GstVideoInfo * v_info,
181 … const GstVideoInfo * v_info,
193 … const GstVideoInfo * v_info,
/third_party/gstreamer/gstplugins_good/ext/gtk/
Dgtkgstbasewidget.c102 width = GST_VIDEO_INFO_WIDTH (&widget->v_info); in _apply_par()
103 height = GST_VIDEO_INFO_HEIGHT (&widget->v_info); in _apply_par()
142 widget->v_info = widget->pending_v_info; in _queue_draw()
166 if (!_calculate_par (widget, &widget->v_info)) { in _update_par()
344 stream_width = (gdouble) GST_VIDEO_INFO_WIDTH (&base_widget->v_info); in gtk_gst_base_widget_display_size_to_stream_size()
345 stream_height = (gdouble) GST_VIDEO_INFO_HEIGHT (&base_widget->v_info); in gtk_gst_base_widget_display_size_to_stream_size()
356 if (*stream_x > GST_VIDEO_INFO_WIDTH (&base_widget->v_info)) in gtk_gst_base_widget_display_size_to_stream_size()
357 *stream_x = GST_VIDEO_INFO_WIDTH (&base_widget->v_info); in gtk_gst_base_widget_display_size_to_stream_size()
367 if (*stream_y > GST_VIDEO_INFO_HEIGHT (&base_widget->v_info)) in gtk_gst_base_widget_display_size_to_stream_size()
368 *stream_y = GST_VIDEO_INFO_HEIGHT (&base_widget->v_info); in gtk_gst_base_widget_display_size_to_stream_size()
[all …]
Dgtkgstbasewidget.h59 GstVideoInfo v_info; member
92 … gtk_gst_base_widget_set_format (GtkGstBaseWidget * widget, GstVideoInfo * v_info);
Dgstgtkbasesink.c497 if (GST_VIDEO_INFO_FPS_N (&gtk_sink->v_info) > 0) { in gst_gtk_base_sink_get_times()
500 GST_VIDEO_INFO_FPS_D (&gtk_sink->v_info), in gst_gtk_base_sink_get_times()
501 GST_VIDEO_INFO_FPS_N (&gtk_sink->v_info)); in gst_gtk_base_sink_get_times()
514 if (!gst_video_info_from_caps (&gtk_sink->v_info, caps)) in gst_gtk_base_sink_set_caps()
526 if (!gtk_gst_base_widget_set_format (gtk_sink->widget, &gtk_sink->v_info)) { in gst_gtk_base_sink_set_caps()
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgltestsrc.c170 const GstVideoInfo * v_info) in _src_shader_init() argument
319 const GstVideoInfo * v_info) in _src_smpte_init() argument
512 return _src_shader_init (impl, context, v_info); in _src_smpte_init()
600 const GstVideoInfo * v_info) in _src_uni_color_init() argument
605 src->base.v_info = *v_info; in _src_uni_color_init()
717 const GstVideoInfo * v_info) in _src_checkers_init() argument
765 (gfloat) GST_VIDEO_INFO_WIDTH (v_info)); in _src_checkers_init()
767 (gfloat) GST_VIDEO_INFO_HEIGHT (v_info)); in _src_checkers_init()
770 return _src_shader_init (impl, context, v_info); in _src_checkers_init()
819 const GstVideoInfo * v_info) in _src_snow_init() argument
[all …]
Dgltestsrc.h67 GstVideoInfo v_info; member
74 gboolean (*init) (gpointer impl, GstGLContext * context, const GstVideoInfo * v_info);
Dgstgloverlay.c674 GstVideoInfo v_info; in gst_gl_overlay_load_jpeg() local
691 gst_video_info_set_format (&v_info, GST_VIDEO_FORMAT_Y444, in gst_gl_overlay_load_jpeg()
694 gst_video_info_set_format (&v_info, GST_VIDEO_FORMAT_RGB, in gst_gl_overlay_load_jpeg()
699 gst_video_info_align (&v_info, &v_align); in gst_gl_overlay_load_jpeg()
706 NULL, &v_info, 0, &v_align, GST_GL_TEXTURE_TARGET_2D, GST_GL_RGBA); in gst_gl_overlay_load_jpeg()
721 j = map_info.data + v_info.stride[0] * i; in gst_gl_overlay_load_jpeg()
736 GstVideoInfo v_info; in gst_gl_overlay_load_png() local
815 gst_video_info_set_format (&v_info, GST_VIDEO_FORMAT_RGBA, width, height); in gst_gl_overlay_load_png()
821 NULL, &v_info, 0, NULL, GST_GL_TEXTURE_TARGET_2D, GST_GL_RGBA); in gst_gl_overlay_load_png()
Dgstglvideoflip.c446 GstVideoInfo v_info; in _input_sink_probe() local
450 if (gst_video_info_from_caps (&v_info, caps)) in _input_sink_probe()
452 (gfloat) GST_VIDEO_INFO_WIDTH (&v_info) / in _input_sink_probe()
453 (gfloat) GST_VIDEO_INFO_HEIGHT (&v_info); in _input_sink_probe()
/third_party/gstreamer/gstplugins_bad/ext/vulkan/
Dvksink.c422 if (GST_VIDEO_INFO_FPS_N (&vk_sink->v_info) > 0) { in gst_vulkan_sink_get_times()
425 GST_VIDEO_INFO_FPS_D (&vk_sink->v_info), in gst_vulkan_sink_get_times()
426 GST_VIDEO_INFO_FPS_N (&vk_sink->v_info)); in gst_vulkan_sink_get_times()
534 GstVideoInfo v_info; in gst_vulkan_sink_set_caps() local
538 if (!gst_video_info_from_caps (&v_info, caps)) in gst_vulkan_sink_set_caps()
541 if (!_configure_display_from_info (vk_sink, &v_info)) in gst_vulkan_sink_set_caps()
551 vk_sink->v_info = v_info; in gst_vulkan_sink_set_caps()
609 stream_width = (gdouble) GST_VIDEO_INFO_WIDTH (&vk_sink->v_info); in _display_size_to_stream_size()
610 stream_height = (gdouble) GST_VIDEO_INFO_HEIGHT (&vk_sink->v_info); in _display_size_to_stream_size()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/qt/qglwtextureshare/
Dqglrenderer.cpp161 GstVideoInfo v_info; in paintGL() local
174 gst_video_info_set_format (&v_info, v_meta->format, v_meta->width, in paintGL()
177 gst_video_frame_map (&v_frame, &v_info, this->frame, in paintGL()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/generic/cube/
Dmain.cpp87 GstVideoInfo v_info; in drawCallback() local
92 gst_video_info_from_caps (&v_info, caps); in drawCallback()
94 if (!gst_video_frame_map (&v_frame, &v_info, buf, (GstMapFlags) (GST_MAP_READ | GST_MAP_GL))) { in drawCallback()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/generic/cubeyuv/
Dmain.cpp108 GstVideoInfo v_info; in drawCallback() local
113 gst_video_info_from_caps (&v_info, caps); in drawCallback()
115 if (!gst_video_frame_map (&v_frame, &v_info, buf, (GstMapFlags) (GST_MAP_READ | GST_MAP_GL))) { in drawCallback()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/qt/qglwidgetvideooverlay/
Dpipeline.cpp169 GstVideoInfo v_info; in drawCallback() local
174 gst_video_info_from_caps (&v_info, caps); in drawCallback()
176 if (!gst_video_frame_map (&v_frame, &v_info, buf, (GstMapFlags) (GST_MAP_READ | GST_MAP_GL))) { in drawCallback()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/qt/mousevideooverlay/
Dpipeline.cpp184 GstVideoInfo v_info; in drawCallback() local
189 gst_video_info_from_caps (&v_info, caps); in drawCallback()
191 if (!gst_video_frame_map (&v_frame, &v_info, buf, (GstMapFlags) (GST_MAP_READ | GST_MAP_GL))) { in drawCallback()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/generic/doublecube/
Dmain.cpp110 GstVideoInfo v_info; in drawCallback() local
115 gst_video_info_from_caps (&v_info, caps); in drawCallback()
117 if (!gst_video_frame_map (&v_frame, &v_info, buf, (GstMapFlags) (GST_MAP_READ | GST_MAP_GL))) { in drawCallback()

12