dnn: add a new interface DNNModel.get_output

Multimedia / FFmpeg - Guo, Yejun [intel.com] - 21 September 2020 13:26 UTC

for some cases (for example, super resolution), the DNN model changes the frame size which impacts the filter behavior, so the filter needs to know the out frame size at very beginning.

Currently, the filter reuses DNNModule.execute_model to query the out frame size, it is not clear from interface perspective, so add a new explict interface DNNModel.get_output for such query.

e71d73b096 dnn: add a new interface DNNModel.get_output
libavfilter/dnn/dnn_backend_native.c | 66 ++++++++++++++++++++++++++++------
libavfilter/dnn/dnn_backend_openvino.c | 66 ++++++++++++++++++++++++++++------
libavfilter/dnn/dnn_backend_tf.c | 66 ++++++++++++++++++++++++++++------
libavfilter/dnn_interface.h | 3 ++
libavfilter/vf_dnn_processing.c | 17 +++------
libavfilter/vf_sr.c | 25 ++++++-------
6 files changed, 185 insertions(+), 58 deletions(-)

  • Share