LCOV - code coverage report
Current view: top level - nnstreamer-2.4.2/gst/edge - edge_elements.c (source / functions) Coverage Total Hit
Test: nnstreamer 2.4.2-0 nnstreamer/nnstreamer.git#5d55fc62547faa02e861af5ef93cc1c89800934a Lines: 71.4 % 7 5
Test Date: 2024-09-25 09:08:39 Functions: 66.7 % 3 2

            Line data    Source code
       1              : /* SPDX-License-Identifier: LGPL-2.1-only */
       2              : /**
       3              :  * Copyright (C) 2022 Samsung Electronics Co., Ltd.
       4              :  *
       5              :  * @file    edge_elements.c
       6              :  * @date    02 Aug 2022
       7              :  * @brief   Register edge plugins
       8              :  * @author  Yechan Choi <yechan9.choi@samsung.com>
       9              :  * @see     http://github.com/nnstreamer/nnstreamer
      10              :  * @bug     No known bugs
      11              :  *
      12              :  */
      13              : #include <gst/gst.h>
      14              : 
      15              : #include "edge_sink.h"
      16              : #include "edge_src.h"
      17              : 
      18              : /**
      19              :  * @brief The entry point of the Gstreamer Edge plugin
      20              :  */
      21              : static gboolean
      22           31 : plugin_init (GstPlugin * plugin)
      23              : {
      24           31 :   if (!gst_element_register (plugin, GST_EDGE_ELEM_NAME_SINK, GST_RANK_NONE,
      25              :           GST_TYPE_EDGESINK)) {
      26            0 :     return FALSE;
      27              :   }
      28              : 
      29           31 :   if (!gst_element_register (plugin, GST_EDGE_ELEM_NAME_SRC, GST_RANK_NONE,
      30              :           GST_TYPE_EDGESRC)) {
      31            0 :     return FALSE;
      32              :   }
      33              : 
      34           31 :   return TRUE;
      35              : }
      36              : 
      37              : #ifndef PACKAGE
      38              : #define PACKAGE GST_EDGE_PACKAGE
      39              : #endif
      40              : 
      41           31 : GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, edge,
      42              :     "A collection of GStreamer plugins to support NNStreamer edge feature",
      43              :     plugin_init, VERSION, "LGPL", PACKAGE,
      44              :     "https://github.com/nnstreamer/nnstreamer")
        

Generated by: LCOV version 2.0-1