Skip to content

Commit

Permalink
libavfilter/dnn: move dnn files from libavfilter to libavfilter/dnn
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Pedro Arthur <[email protected]>
  • Loading branch information
guoyejun authored and grandao committed Jul 26, 2019
1 parent ebfcd4b commit 1b9064e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
3 changes: 1 addition & 2 deletions libavfilter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions libavfilter/dnn/Makefile
Original file line number Diff line number Diff line change
@@ -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)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
*/


#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;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
*/


#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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1b9064e

Please sign in to comment.