LCOV - code coverage report
Current view: top level - nnstreamer-2.4.4/ext/nnstreamer/registerer - tizensensor.c (source / functions) Coverage Total Hit
Test: nnstreamer 2.4.4-0 nnstreamer/nnstreamer#f024fa46341b2358757361f58e31340279feb181 Lines: 100.0 % 4 4
Test Date: 2025-11-14 05:41:36 Functions: 66.7 % 3 2

            Line data    Source code
       1              : /* SPDX-License-Identifier: LGPL-2.1-only */
       2              : /**
       3              :  * nnstreamer registerer for tizen sensor plugin
       4              :  * Copyright (C) 2020 Dongju Chae <dongju.chae@samsung.com>
       5              :  *
       6              :  * This library is free software; you can redistribute it and/or
       7              :  * modify it under the terms of the GNU Library General Public
       8              :  * License as published by the Free Software Foundation;
       9              :  * version 2.1 of the License.
      10              :  *
      11              :  * This library is distributed in the hope that it will be useful,
      12              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      13              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      14              :  * Library General Public License for more details.
      15              :  */
      16              : 
      17              : /**
      18              :  * @file        tizensensor.c
      19              :  * @date        22 Oct 2020
      20              :  * @brief       Registers nnstreamer extension plugin for tizen sensor
      21              :  * @see         https://github.com/nnstreamer/nnstreamer
      22              :  * @author      Dongju Chae <dongju.chae@samsung.com>
      23              :  * @bug         No known bugs except for NYI items
      24              :  */
      25              : 
      26              : #ifdef HAVE_CONFIG_H
      27              : #include <config.h>
      28              : #endif
      29              : 
      30              : #include <gst/gst.h>
      31              : 
      32              : #include <tensor_src_tizensensor.h>
      33              : 
      34              : #define NNSTREAMER_TIZEN_SENSOR_INIT(plugin,name,type) \
      35              :   do { \
      36              :     if (!gst_element_register (plugin, "tensor_" # name, GST_RANK_NONE, GST_TYPE_TENSOR_ ## type)) { \
      37              :       GST_ERROR ("Failed to register nnstreamer plugin : tensor_" # name); \
      38              :       return FALSE; \
      39              :     } \
      40              :   } while (0)
      41              : 
      42              : /**
      43              :  * @brief Function to initialize all nnstreamer elements
      44              :  */
      45              : static gboolean
      46            9 : gst_nnstreamer_tizen_sensor_init (GstPlugin * plugin)
      47              : {
      48            9 :   NNSTREAMER_TIZEN_SENSOR_INIT (plugin, src_tizensensor, SRC_TIZENSENSOR);
      49            9 :   return TRUE;
      50              : }
      51              : 
      52              : #ifndef PACKAGE
      53              : #define PACKAGE "nnstreamer_tizen_sensor"
      54              : #endif
      55              : 
      56            9 : GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
      57              :     GST_VERSION_MINOR,
      58              :     nnstreamer_tizen_sensor,
      59              :     "nnstreamer Tizen sensor framework extension",
      60              :     gst_nnstreamer_tizen_sensor_init, VERSION, "LGPL", "nnstreamer",
      61              :     "https://github.com/nnstreamer/nnstreamer");
        

Generated by: LCOV version 2.0-1