[FFmpeg-devel] [PATCH V7 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

Guo, Yejun yejun.guo at intel.com
Thu Apr 8 17:59:17 EEST 2021



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Nicolas
> George
> Sent: 2021年4月8日 22:54
> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH V7 4/6] lavu: add side data
> AV_FRAME_DATA_BOUNDING_BOXES
> 
> Guo, Yejun (12021-04-08):
> > I'm afraid that we could not make sure all such filters (including filters in the
> > future) to do the rescale. And in the previous discussion, I got to know that
> > 'many other existing side-data types are invalidated by scaling'.
> >
> > So, we need frame_width and frame_height here.
> 
> But the crop or pad filters will also invalidate the information, and in
> a different way. How should frame_width and frame_height be used to
> solve all?

thanks for the new info, my idea was to rescale the bounding box for the frame
size change. Looks that we can just output a warning message and don't do the
classification if the size changes, otherwise, the filter will give wrong result.

> 
> Regards,
> 
> --
>   Nicolas George


More information about the ffmpeg-devel mailing list