]> git.sesse.net Git - ffmpeg/commitdiff
libavfilter/dnn: move dnn files from libavfilter to libavfilter/dnn
authorGuo, Yejun <yejun.guo@intel.com>
Tue, 16 Jul 2019 05:55:45 +0000 (13:55 +0800)
committerPedro Arthur <bygrandao@gmail.com>
Fri, 26 Jul 2019 16:07:43 +0000 (13:07 -0300)
it is expected that there will be more files to support native mode,
so put all the dnn codes under libavfilter/dnn

The main change of this patch is to move the file location, see below:
modified:   libavfilter/Makefile
new file:   libavfilter/dnn/Makefile
renamed:    libavfilter/dnn_backend_native.c -> libavfilter/dnn/dnn_backend_native.c
renamed:    libavfilter/dnn_backend_native.h -> libavfilter/dnn/dnn_backend_native.h
renamed:    libavfilter/dnn_backend_tf.c -> libavfilter/dnn/dnn_backend_tf.c
renamed:    libavfilter/dnn_backend_tf.h -> libavfilter/dnn/dnn_backend_tf.h
renamed:    libavfilter/dnn_interface.c -> libavfilter/dnn/dnn_interface.c

Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
libavfilter/Makefile
libavfilter/dnn/Makefile [new file with mode: 0644]
libavfilter/dnn/dnn_backend_native.c [moved from libavfilter/dnn_backend_native.c with 100% similarity]
libavfilter/dnn/dnn_backend_native.h [moved from libavfilter/dnn_backend_native.h with 94% similarity]
libavfilter/dnn/dnn_backend_tf.c [moved from libavfilter/dnn_backend_tf.c with 100% similarity]
libavfilter/dnn/dnn_backend_tf.h [moved from libavfilter/dnn_backend_tf.h with 91% similarity]
libavfilter/dnn/dnn_interface.c [moved from libavfilter/dnn_interface.c with 98% similarity]

index 455c809b151ed5337629d9fc5bf62270f781c838..450d7810ef8292309961ccb0b67ccd0b76286c4d 100644 (file)
@@ -26,9 +26,8 @@ OBJS-$(HAVE_THREADS)                         += pthread.o
 
 # subsystems
 OBJS-$(CONFIG_QSVVPP)                        += qsvvpp.o
-DNN-OBJS-$(CONFIG_LIBTENSORFLOW)             += dnn_backend_tf.o
-OBJS-$(CONFIG_DNN)                           += dnn_interface.o dnn_backend_native.o $(DNN-OBJS-yes)
 OBJS-$(CONFIG_SCENE_SAD)                     += scene_sad.o
+include $(SRC_PATH)/libavfilter/dnn/Makefile
 
 # audio filters
 OBJS-$(CONFIG_ABENCH_FILTER)                 += f_bench.o
diff --git a/libavfilter/dnn/Makefile b/libavfilter/dnn/Makefile
new file mode 100644 (file)
index 0000000..1d12ade
--- /dev/null
@@ -0,0 +1,6 @@
+OBJS-$(CONFIG_DNN)                           += dnn/dnn_interface.o
+OBJS-$(CONFIG_DNN)                           += dnn/dnn_backend_native.o
+
+DNN-OBJS-$(CONFIG_LIBTENSORFLOW)             += dnn/dnn_backend_tf.o
+
+OBJS-$(CONFIG_DNN)                           += $(DNN-OBJS-yes)
similarity index 94%
rename from libavfilter/dnn_backend_native.h
rename to libavfilter/dnn/dnn_backend_native.h
index 59179557336ce4f34e4af660cfad4175c78dc06d..8ef1855e459868e2260d5ecb428f36349c9d32c3 100644 (file)
  */
 
 
-#ifndef AVFILTER_DNN_BACKEND_NATIVE_H
-#define AVFILTER_DNN_BACKEND_NATIVE_H
+#ifndef AVFILTER_DNN_DNN_BACKEND_NATIVE_H
+#define AVFILTER_DNN_DNN_BACKEND_NATIVE_H
 
-#include "dnn_interface.h"
+#include "../dnn_interface.h"
 #include "libavformat/avio.h"
 
 typedef enum {INPUT, CONV, DEPTH_TO_SPACE} DNNLayerType;
similarity index 91%
rename from libavfilter/dnn_backend_tf.h
rename to libavfilter/dnn/dnn_backend_tf.h
index 07877b1209d94428a7a4b63d941b105aee6adc08..3e4508912e616c25bdf982da0105a4b9422f04b7 100644 (file)
  */
 
 
-#ifndef AVFILTER_DNN_BACKEND_TF_H
-#define AVFILTER_DNN_BACKEND_TF_H
+#ifndef AVFILTER_DNN_DNN_BACKEND_TF_H
+#define AVFILTER_DNN_DNN_BACKEND_TF_H
 
-#include "dnn_interface.h"
+#include "../dnn_interface.h"
 
 DNNModel *ff_dnn_load_model_tf(const char *model_filename);
 
similarity index 98%
rename from libavfilter/dnn_interface.c
rename to libavfilter/dnn/dnn_interface.c
index 86fc2830246f5cbe3e509fdbc75af3f43b9eb68d..62da55f43e8e543b8b50869b399d1591d7ea9762 100644 (file)
@@ -23,7 +23,7 @@
  * Implements DNN module initialization with specified backend.
  */
 
-#include "dnn_interface.h"
+#include "../dnn_interface.h"
 #include "dnn_backend_native.h"
 #include "dnn_backend_tf.h"
 #include "libavutil/mem.h"