[Common] remove media type header
authorJaeyun <jy1210.jung@samsung.com>
Mon, 11 Mar 2019 08:23:23 +0000 (17:23 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Wed, 27 Mar 2019 09:28:23 +0000 (18:28 +0900)
Only tensor-converter needs media format header.
Remove unnecessary header include in common files.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gst/nnstreamer/nnstreamer_plugin_api.h
gst/nnstreamer/no_audio_define.h [deleted file]
gst/nnstreamer/tensor_common.h

index c9ac46e..474e65c 100644 (file)
@@ -28,7 +28,6 @@
 
 #include <glib.h>
 #include <gst/gst.h>
-#include <gst/video/video-format.h>
 #include <tensor_typedef.h>
 
 G_BEGIN_DECLS
diff --git a/gst/nnstreamer/no_audio_define.h b/gst/nnstreamer/no_audio_define.h
deleted file mode 100644 (file)
index ee3e956..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * NNStreamer Common API Header for Plug-Ins
- * Copyright (C) 2019 Jijoong Moon <jijoong.moon@samsung.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- */
-/**
- * @file  no_audio_define.h
- * @date  07 Mar 2019
- * @brief Define collection of audio variables and functions for no audio support
- * @see https://github.com/nnsuite/nnstreamer
- * @author  Jijoong Moon <jijoong.moon@samsung.com>
- * @bug No known bugs except for NYI items
- *
- */
-#ifndef __NO_AUDIO_DEFINE_H__
-#define __NO_AUDIO_DEFINE_H__
-
-/**
- * @brief Macro for gst_tensor_config_from_audio_info
- */
-#define gst_tensor_config_from_audio_info(...) do { \
-    GST_ERROR ("\n This binary does not support audio type. Please build NNStreamer with disable-audio-support : false\n"); \
-    return FALSE; \
-  } while(0)
-
-/**
- * @brief Macro for gst_audio_format_from_string
- */
-#define gst_audio_format_from_string(...) GST_AUDIO_FORMAT_UNKNOWN
-
-/**
- * @brief Macro for gst_audio_format_to_string
- */
-#define gst_audio_format_to_string(...) "Unknown"
-
-/**
- * @brief Macro for gst_audio_info_init
- */
-#define gst_audio_info_init(...) do { \
-    GST_ERROR ("\n This binary does not support audio type. Please build NNStreamer with disable-audio-support : false\n"); \
-  } while(0)
-
-/**
- * @brief Macro for gst_audio_info_from_caps
- */
-#define gst_audio_info_from_caps(...) FALSE
-
-/**
- * @brief Macro for GstAudioInfo structure
- */
-#define GstAudioInfo gsize
-
-/**
- * @brief Macro for GST_AUDIO_INFO_BPF
- */
-#define GST_AUDIO_INFO_BPF(...) 1
-
-/**
- * @brief GstAudioFormat ( There are more variables in audio-format.h )
- */
-typedef enum _GstAudioFormat
-{
-  GST_AUDIO_FORMAT_UNKNOWN,
-  GST_AUDIO_FORMAT_S8,
-  GST_AUDIO_FORMAT_U8,
-  GST_AUDIO_FORMAT_S16,
-  GST_AUDIO_FORMAT_U16,
-  GST_AUDIO_FORMAT_S32,
-  GST_AUDIO_FORMAT_U32,
-  GST_AUDIO_FORMAT_F32,
-  GST_AUDIO_FORMAT_F64
-} GstAudioFormat;
-
-/**
- * @brief Macro for GST_AUDIO_CAPS_MAKE
- */
-#define GST_AUDIO_CAPS_MAKE(format) \
-      "audio/x-raw, " \
-          "format = (string) " format
-#endif
index 29715d2..4a6782e 100644 (file)
 #define nns_memset memset
 #endif
 
-#ifdef NO_AUDIO
-#include <no_audio_define.h>
-#else
-#include <gst/audio/audio-info.h>
-#include <gst/audio/audio-format.h>
-#define gst_tensor_config_from_audio_info(...) _gst_tensor_config_from_audio_info(__VA_ARGS__)
-#endif
-
 G_BEGIN_DECLS
 
 /**