aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorGuo, Yejun <yejun.guo@intel.com>2020-09-10 22:29:57 +0800
committerGuo, Yejun <yejun.guo@intel.com>2020-09-21 21:26:56 +0800
commitfce3e3e137843d86411f8868f18e1c3f472de0e5 (patch)
tree4ad669abc4ea7fc78220f4b24f0455fb17a8234b /libavformat
parent2003e32f62d94ba75b59d70632c9f2862b383591 (diff)
downloadffmpeg-fce3e3e137843d86411f8868f18e1c3f472de0e5.tar.gz
dnn: put DNNModel.set_input and DNNModule.execute_model together
suppose we have a detect and classify filter in the future, the detect filter generates some bounding boxes (BBox) as AVFrame sidedata, and the classify filter executes DNN model for each BBox. For each BBox, we need to crop the AVFrame, copy data to DNN model input and do the model execution. So we have to save the in_frame at DNNModel.set_input and use it at DNNModule.execute_model, such saving is not feasible when we support async execute_model. This patch sets the in_frame as execution_model parameter, and so all the information are put together within the same function for each inference. It also makes easy to support BBox async inference.
Diffstat (limited to 'libavformat')
0 files changed, 0 insertions, 0 deletions