[FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection
Guo, Yejun
yejun.guo at intel.com
Tue Mar 2 04:36:51 EET 2021
> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Nicolas
> George
> Sent: 2021年3月1日 22:51
> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect
> for object detection
>
> Guo, Yejun (12021-03-01):
> > Hi, glad to hear there's a good solution, could you share a bit of
> > code as an example, it would be nice if I could refine my code better
> > when possible, thanks.
>
> The best choice is to go with BoundingBox boxes[], as Andreas pointed, and see
> if people who use compilers where it does not work manifest.
> Probably they will not, and if they do we can decide if we want to continue
> supporting these obsolete compilers.
thanks, I will try this one.
>
> The second best choice is to go with BoundingBox boxes[1], if it is not proven
> that the compiler can make assumptions that will break the code.
>
> The third choice would be something like:
>
> #define BOX(p, i) (((BoundingBox *)&(p)->boxes)[i])
>
> or similar. But best try to make the best choice work.
>
> Regards,
>
> --
> Nicolas George
More information about the ffmpeg-devel
mailing list