[FFmpeg-devel] [PATCH 4/4] dnn: add a new interface DNNModel.get_output
Guo, Yejun
yejun.guo at intel.com
Fri Sep 18 10:56:08 EEST 2020
> -----Original Message-----
> From: Guo, Yejun <yejun.guo at intel.com>
> Sent: 2020年9月14日 14:29
> To: ffmpeg-devel at ffmpeg.org
> Cc: Guo, Yejun <yejun.guo at intel.com>
> Subject: [PATCH 4/4] dnn: add a new interface DNNModel.get_output
>
> 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.
>
> Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
> ---
> 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(-)
will push next Monday if no other comments, thanks.
More information about the ffmpeg-devel
mailing list