/third_party/gstreamer/gstplugins_bad/sys/v4l2codecs/ |
D | gstv4l2codecpool.c | 39 GstVideoMeta *vmeta; in gst_v4l2_codec_pool_create_empty_buffer() local 42 vmeta = gst_buffer_add_video_meta (buffer, 0, GST_VIDEO_FORMAT_NV12, 1, 1); in gst_v4l2_codec_pool_create_empty_buffer() 43 GST_META_FLAG_SET (vmeta, GST_META_FLAG_POOLED); in gst_v4l2_codec_pool_create_empty_buffer() 54 GstVideoMeta *vmeta; in gst_v4l2_codec_pool_acquire_buffer() local 87 vmeta = gst_buffer_get_video_meta (buf); in gst_v4l2_codec_pool_acquire_buffer() 88 vmeta->format = GST_VIDEO_INFO_FORMAT (self->vinfo); in gst_v4l2_codec_pool_acquire_buffer() 89 vmeta->width = GST_VIDEO_INFO_WIDTH (self->vinfo); in gst_v4l2_codec_pool_acquire_buffer() 90 vmeta->height = GST_VIDEO_INFO_HEIGHT (self->vinfo); in gst_v4l2_codec_pool_acquire_buffer() 91 vmeta->n_planes = GST_VIDEO_INFO_N_PLANES (self->vinfo); in gst_v4l2_codec_pool_acquire_buffer() 92 memcpy (vmeta->offset, self->vinfo->offset, sizeof (vmeta->offset)); in gst_v4l2_codec_pool_acquire_buffer() [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/ |
D | gstvideometa.c | 176 GstVideoMeta *vmeta = (GstVideoMeta *) meta; in gst_buffer_get_video_meta() local 177 if (vmeta->id == 0) in gst_buffer_get_video_meta() 178 return vmeta; /* Early out for id 0 */ in gst_buffer_get_video_meta() 179 if (out == NULL || vmeta->id < out->id) in gst_buffer_get_video_meta() 180 out = vmeta; in gst_buffer_get_video_meta() 208 GstVideoMeta *vmeta = (GstVideoMeta *) meta; in gst_buffer_get_video_meta_id() local 209 if (vmeta->id == id) in gst_buffer_get_video_meta_id() 210 return vmeta; in gst_buffer_get_video_meta_id() 657 GstVideoGLTextureUploadMeta *vmeta = (GstVideoGLTextureUploadMeta *) meta; in gst_video_gl_texture_upload_meta_init() local 659 vmeta->texture_orientation = in gst_video_gl_texture_upload_meta_init() [all …]
|
D | video-overlay-composition.c | 704 GstVideoMeta *vmeta; in gst_video_overlay_rectangle_new_raw() local 713 vmeta = gst_buffer_get_video_meta (pixels); in gst_video_overlay_rectangle_new_raw() 714 g_return_val_if_fail (vmeta, NULL); in gst_video_overlay_rectangle_new_raw() 715 g_return_val_if_fail (vmeta->format == in gst_video_overlay_rectangle_new_raw() 717 vmeta->format == GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_YUV, NULL); in gst_video_overlay_rectangle_new_raw() 718 g_return_val_if_fail (vmeta->flags == GST_VIDEO_FRAME_FLAG_NONE, NULL); in gst_video_overlay_rectangle_new_raw() 720 format = vmeta->format; in gst_video_overlay_rectangle_new_raw() 721 width = vmeta->width; in gst_video_overlay_rectangle_new_raw() 722 height = vmeta->height; in gst_video_overlay_rectangle_new_raw()
|
/third_party/gstreamer/gstplugins_bad/ext/onnx/ |
D | gstonnxclient.cpp | 248 GstVideoMeta * vmeta, std::string labelPath, float scoreThreshold) in run() argument 253 doRun < float >(img_data, vmeta, labelPath, scoreThreshold) in run() 254 : doRun < int >(img_data, vmeta, labelPath, scoreThreshold); in run() 257 void GstOnnxClient::parseDimensions (GstVideoMeta * vmeta) in parseDimensions() argument 259 int32_t newWidth = fixedInputImageSize ? width : vmeta->width; in parseDimensions() 260 int32_t newHeight = fixedInputImageSize ? height : vmeta->height; in parseDimensions() 271 GstOnnxClient::doRun (uint8_t * img_data, GstVideoMeta * vmeta, in doRun() argument 278 parseDimensions (vmeta); in doRun() 301 switch (vmeta->format) { in doRun() 332 uint32_t stride = vmeta->stride[0]; in doRun()
|
D | gstonnxclient.h | 84 GstVideoMeta * vmeta, 93 void parseDimensions(GstVideoMeta * vmeta); 95 doRun(uint8_t * img_data, GstVideoMeta * vmeta, std::string labelPath,
|
D | gstonnxobjectdetector.cpp | 630 GstVideoMeta *vmeta = gst_buffer_get_video_meta (buf); in gst_onnx_object_detector_process() local 632 if (!vmeta) { in gst_onnx_object_detector_process() 638 auto boxes = GST_ONNX_MEMBER (self)->run (info.data, vmeta, in gst_onnx_object_detector_process()
|
/third_party/gstreamer/gstplugins_bad/gst/codecalpha/ |
D | gstalphacombine.c | 310 GstVideoMeta *vmeta; in gst_alpha_combine_sink_chain() local 325 vmeta = gst_buffer_get_video_meta (alpha_buffer); in gst_alpha_combine_sink_chain() 326 if (vmeta) { in gst_alpha_combine_sink_chain() 328 if (gst_buffer_find_memory (alpha_buffer, vmeta->offset[GST_VIDEO_COMP_Y], in gst_alpha_combine_sink_chain() 333 alpha_stride = vmeta->stride[GST_VIDEO_COMP_Y]; in gst_alpha_combine_sink_chain() 349 vmeta = gst_buffer_get_video_meta (buffer); in gst_alpha_combine_sink_chain() 350 if (!vmeta) in gst_alpha_combine_sink_chain() 351 vmeta = gst_buffer_add_video_meta (buffer, 0, in gst_alpha_combine_sink_chain() 360 vmeta->offset[alpha_plane_idx] = alpha_skip; in gst_alpha_combine_sink_chain() 361 vmeta->stride[alpha_plane_idx] = alpha_stride; in gst_alpha_combine_sink_chain() [all …]
|
/third_party/gstreamer/gstplugins_base/tests/icles/ |
D | test-overlay-blending.c | 187 GstVideoMeta *vmeta; in buffer_cb() local 198 vmeta = gst_buffer_get_video_meta (logo_buf); in buffer_cb() 200 calculate_position (&x, &y, vmeta->width, vmeta->height, ++count); in buffer_cb() 205 vmeta->width, vmeta->height, GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE); in buffer_cb()
|
/third_party/gstreamer/gstplugins_base/tests/examples/overlaycomposition/ |
D | overlaycomposition.c | 233 GstVideoMeta *vmeta; in draw_overlay() local 239 vmeta = gst_buffer_get_video_meta (logo_buf); in draw_overlay() 240 calculate_position (&x, &y, vmeta->width, vmeta->height, ++count); in draw_overlay() 243 vmeta->width, vmeta->height, GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE); in draw_overlay()
|
/third_party/gstreamer/gstplugins_bad/sys/msdk/ |
D | gstmsdkbufferpool.c | 237 GstVideoMeta *vmeta; in gst_msdk_buffer_pool_alloc_buffer() local 247 vmeta = gst_buffer_add_video_meta_full (buf, GST_VIDEO_FRAME_FLAG_NONE, in gst_msdk_buffer_pool_alloc_buffer() 253 if (!gst_video_meta_set_alignment (vmeta, priv->alignment)) { in gst_msdk_buffer_pool_alloc_buffer() 260 vmeta->map = gst_video_meta_map_msdk_memory; in gst_msdk_buffer_pool_alloc_buffer() 261 vmeta->unmap = gst_video_meta_unmap_msdk_memory; in gst_msdk_buffer_pool_alloc_buffer()
|
D | gstmsdkvpp.c | 735 GstVideoMeta *vmeta; in import_dmabuf_to_msdk_surface() local 749 vmeta = gst_buffer_get_video_meta (buf); in import_dmabuf_to_msdk_surface() 750 if (vmeta) { in import_dmabuf_to_msdk_surface() 751 if (GST_VIDEO_INFO_FORMAT (&vinfo) != vmeta->format || in import_dmabuf_to_msdk_surface() 752 GST_VIDEO_INFO_WIDTH (&vinfo) != vmeta->width || in import_dmabuf_to_msdk_surface() 753 GST_VIDEO_INFO_HEIGHT (&vinfo) != vmeta->height || in import_dmabuf_to_msdk_surface() 754 GST_VIDEO_INFO_N_PLANES (&vinfo) != vmeta->n_planes) { in import_dmabuf_to_msdk_surface() 760 GST_VIDEO_INFO_PLANE_OFFSET (&vinfo, i) = vmeta->offset[i]; in import_dmabuf_to_msdk_surface() 761 GST_VIDEO_INFO_PLANE_STRIDE (&vinfo, i) = vmeta->stride[i]; in import_dmabuf_to_msdk_surface()
|
D | gstmsdkenc.c | 1583 GstVideoMeta *vmeta; in import_dmabuf_to_msdk_surface() local 1595 vmeta = gst_buffer_get_video_meta (buf); in import_dmabuf_to_msdk_surface() 1596 if (vmeta) { in import_dmabuf_to_msdk_surface() 1597 if (GST_VIDEO_INFO_FORMAT (&vinfo) != vmeta->format || in import_dmabuf_to_msdk_surface() 1598 GST_VIDEO_INFO_WIDTH (&vinfo) != vmeta->width || in import_dmabuf_to_msdk_surface() 1599 GST_VIDEO_INFO_HEIGHT (&vinfo) != vmeta->height || in import_dmabuf_to_msdk_surface() 1600 GST_VIDEO_INFO_N_PLANES (&vinfo) != vmeta->n_planes) { in import_dmabuf_to_msdk_surface() 1606 GST_VIDEO_INFO_PLANE_OFFSET (&vinfo, i) = vmeta->offset[i]; in import_dmabuf_to_msdk_surface() 1607 GST_VIDEO_INFO_PLANE_STRIDE (&vinfo, i) = vmeta->stride[i]; in import_dmabuf_to_msdk_surface()
|
/third_party/gstreamer/gstplugins_good/ext/vpx/ |
D | gstvpxdec.c | 398 GstVideoMeta *vmeta; in gst_vpx_dec_prepare_image() local 414 vmeta = gst_buffer_get_video_meta (buffer); in gst_vpx_dec_prepare_image() 415 vmeta->format = GST_VIDEO_INFO_FORMAT (info); in gst_vpx_dec_prepare_image() 416 vmeta->width = GST_VIDEO_INFO_WIDTH (info); in gst_vpx_dec_prepare_image() 417 vmeta->height = GST_VIDEO_INFO_HEIGHT (info); in gst_vpx_dec_prepare_image() 418 vmeta->n_planes = GST_VIDEO_INFO_N_PLANES (info); in gst_vpx_dec_prepare_image() 421 vmeta->stride[comp] = img->stride[comp]; in gst_vpx_dec_prepare_image() 422 vmeta->offset[comp] = in gst_vpx_dec_prepare_image()
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/ |
D | gstgloverlaycompositor.c | 347 GstVideoMeta *vmeta; in gst_gl_composition_overlay_upload() local 372 vmeta = gst_buffer_get_video_meta (comp_buffer); in gst_gl_composition_overlay_upload() 373 gst_video_info_set_format (&vinfo, vmeta->format, vmeta->width, in gst_gl_composition_overlay_upload() 374 vmeta->height); in gst_gl_composition_overlay_upload() 375 vinfo.stride[0] = vmeta->stride[0]; in gst_gl_composition_overlay_upload()
|
D | gstglupload.c | 1635 GstVideoMeta *vmeta; in _directviv_upload_perform_gl_thread() local 1681 vmeta = gst_buffer_get_video_meta (directviv->inbuf); in _directviv_upload_perform_gl_thread() 1682 if (vmeta) { in _directviv_upload_perform_gl_thread() 1683 width = vmeta->stride[0]; in _directviv_upload_perform_gl_thread() 1687 height = vmeta->offset[1] / width; in _directviv_upload_perform_gl_thread()
|
/third_party/gstreamer/gstplugins_base/ext/theora/ |
D | gsttheoradec.c | 695 GstVideoMeta *vmeta; in theora_handle_image() local 698 vmeta = gst_buffer_get_video_meta (frame->output_buffer); in theora_handle_image() 701 if (!vmeta) in theora_handle_image() 702 vmeta = gst_buffer_add_video_meta (frame->output_buffer, in theora_handle_image() 710 g_assert (vmeta->format == dec->output_state->info.finfo->format); in theora_handle_image() 711 g_assert (vmeta->width == dec->info.frame_width); in theora_handle_image() 712 g_assert (vmeta->height == dec->info.frame_height); in theora_handle_image()
|
/third_party/gstreamer/gstplugins_bad/sys/d3d11/ |
D | gstd3d11overlaycompositor.cpp | 122 GstVideoMeta *vmeta; in gst_d3d11_composition_overlay_new() local 162 vmeta = gst_buffer_get_video_meta (buf); in gst_d3d11_composition_overlay_new() 163 if (!vmeta) { in gst_d3d11_composition_overlay_new() 168 if (!gst_video_meta_map (vmeta, in gst_d3d11_composition_overlay_new() 193 gst_video_meta_unmap (vmeta, 0, &info); in gst_d3d11_composition_overlay_new()
|
/third_party/gstreamer/gstplugins_base/tests/check/libs/ |
D | video.c | 1341 GstVideoMeta *vmeta; in GST_START_TEST() local 1459 vmeta = gst_buffer_get_video_meta (pix1); in GST_START_TEST() 1460 fail_unless (vmeta != NULL); in GST_START_TEST() 1461 w = vmeta->width; in GST_START_TEST() 1462 h = vmeta->height; in GST_START_TEST() 1465 fail_unless_equals_int (vmeta->format, in GST_START_TEST() 1477 vmeta = gst_buffer_get_video_meta (pix2); in GST_START_TEST() 1478 fail_unless (vmeta != NULL); in GST_START_TEST() 1479 w = vmeta->width; in GST_START_TEST() 1480 h = vmeta->height; in GST_START_TEST() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/wayland/ |
D | gstwaylandsink.c | 699 GstVideoMeta *vmeta; in gst_wayland_sink_show_frame() local 750 vmeta = gst_buffer_get_video_meta (buffer); in gst_wayland_sink_show_frame() 751 if (vmeta) { in gst_wayland_sink_show_frame() 754 for (i = 0; i < vmeta->n_planes; i++) { in gst_wayland_sink_show_frame() 755 sink->video_info.offset[i] = vmeta->offset[i]; in gst_wayland_sink_show_frame() 756 sink->video_info.stride[i] = vmeta->stride[i]; in gst_wayland_sink_show_frame()
|
/third_party/gstreamer/gst_libav/ext/libav/ |
D | gstavviddec.c | 1844 GstVideoMeta *vmeta = gst_buffer_get_video_meta (out_frame->output_buffer); in gst_ffmpegviddec_video_frame() local 1845 if (vmeta) { in gst_ffmpegviddec_video_frame() 1847 g_assert ((gint) vmeta->width == GST_VIDEO_INFO_WIDTH (info)); in gst_ffmpegviddec_video_frame() 1848 g_assert ((gint) vmeta->height == GST_VIDEO_INFO_HEIGHT (info)); in gst_ffmpegviddec_video_frame() 2335 GstVideoMeta *vmeta = gst_buffer_get_video_meta (tmp); in gst_ffmpegviddec_decide_allocation() local 2339 for (i = 0; i < vmeta->n_planes; i++) { in gst_ffmpegviddec_decide_allocation() 2340 if (vmeta->stride[i] != ffmpegdec->stride[i]) { in gst_ffmpegviddec_decide_allocation()
|
/third_party/gstreamer/gstplugins_bad/ext/assrender/ |
D | gstassrender.c | 1069 GstVideoMeta *vmeta; in gst_ass_render_composite_overlay() local 1109 vmeta = gst_buffer_add_video_meta (buffer, GST_VIDEO_FRAME_FLAG_NONE, in gst_ass_render_composite_overlay() 1112 if (!gst_video_meta_map (vmeta, 0, &map, &data, &stride, GST_MAP_READWRITE)) { in gst_ass_render_composite_overlay() 1120 gst_video_meta_unmap (vmeta, 0, &map); in gst_ass_render_composite_overlay()
|
/third_party/gstreamer/gstplugins_good/sys/v4l2/ |
D | gstv4l2bufferpool.c | 1295 GstVideoMeta *vmeta; in gst_v4l2_buffer_pool_dqbuf() local 1348 vmeta = gst_buffer_get_video_meta (outbuf); in gst_v4l2_buffer_pool_dqbuf() 1357 if (vmeta) { in gst_v4l2_buffer_pool_dqbuf() 1358 vmeta->offset[i] = size; in gst_v4l2_buffer_pool_dqbuf()
|
D | gstv4l2object.c | 5204 GstVideoMeta *vmeta; in gst_v4l2_object_try_import() local 5218 vmeta = gst_buffer_get_video_meta (buffer); in gst_v4l2_object_try_import() 5219 if (!vmeta && obj->need_video_meta) { in gst_v4l2_object_try_import() 5226 if (vmeta) { in gst_v4l2_object_try_import() 5229 gst_video_meta_get_plane_height (vmeta, plane_height); in gst_v4l2_object_try_import() 5231 if (!gst_v4l2_object_match_buffer_layout (obj, vmeta->n_planes, in gst_v4l2_object_try_import() 5232 vmeta->offset, vmeta->stride, gst_buffer_get_size (buffer), in gst_v4l2_object_try_import()
|
/third_party/gstreamer/gstplugins_bad/sys/kms/ |
D | gstkmssink.c | 1438 GstVideoMeta *vmeta; in ensure_internal_pool() local 1447 if ((vmeta = gst_buffer_get_video_meta (inbuf))) { in ensure_internal_pool() 1448 vinfo.width = vmeta->width; in ensure_internal_pool() 1449 vinfo.height = vmeta->height; in ensure_internal_pool()
|
/third_party/gstreamer/gstplugins_bad/ |
D | ChangeLog | 58495 We have to pass the "height" as height = vmeta->offset[1] / width to the 68443 waylandsink: Port to vmeta and GstVideoFrame
|