]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/dnn/dnn_backend_native_layer_depth2space.h
libavformat/avidec: check memory allocation
[ffmpeg] / libavfilter / dnn / dnn_backend_native_layer_depth2space.h
index 7a051af9186a2d4e347400b0dbd767cfe95fe273..648a927f2dffeda0d96ee27a3ba03155e507cea2 100644 (file)
@@ -24,8 +24,8 @@
  */
 
 
-#ifndef AVFILTER_DNN_DNN_BACKEND_NATIVE_DEPTH2SPACE_H
-#define AVFILTER_DNN_DNN_BACKEND_NATIVE_DEPTH2SPACE_H
+#ifndef AVFILTER_DNN_DNN_BACKEND_NATIVE_LAYER_DEPTH2SPACE_H
+#define AVFILTER_DNN_DNN_BACKEND_NATIVE_LAYER_DEPTH2SPACE_H
 
 #include "../dnn_interface.h"
 #include "libavformat/avio.h"
@@ -34,6 +34,8 @@ typedef struct DepthToSpaceParams{
     int block_size;
 } DepthToSpaceParams;
 
-int depth_to_space(DnnOperand *operands, const int32_t *input_operand_indexes, int32_t output_operand_index, int block_size);
+int dnn_load_layer_depth2space(Layer *layer, AVIOContext *model_file_context, int file_size, int operands_num);
+int dnn_execute_layer_depth2space(DnnOperand *operands, const int32_t *input_operand_indexes,
+                                  int32_t output_operand_index, const void *parameters, NativeContext *ctx);
 
 #endif