/
Alx89
/
OpenCV
Обзор
Документация
Войти
/
Alx89
/
OpenCV
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.x
modules/gapi/src/streaming/gstreamer/gstreamer_buffer_utils.cpp
27 строк
855 B
Anastasiya(Asya) Pronina
Merge pull request #20709 from AsyaPronina:asyadev/integrate_gstreamer_source
06 дек 2021, 19:54
Не верифицирован
06 дек 2021, 19:54
8dd6882
Код
Авторство
О чём код?
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2021 Intel Corporation #include "gstreamer_buffer_utils.hpp" #include "gstreamerptr.hpp" #include <opencv2/gapi/own/assert.hpp> #ifdef HAVE_GSTREAMER namespace cv { namespace gapi { namespace wip { namespace gstreamer_utils { void mapBufferToFrame(GstBuffer& buffer, GstVideoInfo& info, GstVideoFrame& frame, GstMapFlags mapFlags) { bool mapped = gst_video_frame_map(&frame, &info, &buffer, mapFlags); GAPI_Assert(mapped && "Failed to map GStreamer buffer to system memory as video-frame!"); } } // namespace gstreamer_utils } // namespace wip } // namespace gapi } // namespace cv #endif // HAVE_GSTREAMER