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

Guo, Yejun yejun.guo at intel.com
Wed Apr 7 15:49:59 EEST 2021



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Nicolas
> George
> Sent: 2021年4月7日 18:06
> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data
> AV_FRAME_DATA_BOUNDING_BOXES
> 
> Andreas Rheinhardt (12021-04-07):
> > Why a backup implementation?
> 
> Because:
> 
> > And a generic alignment of (say) 8 can be used as a fallback.
> 
> I believe using a pointer to VLA is more elegant than reimplementing the
> compiler's feature using _Alignof and clumsy arithmetic, but it is
> eventually for whoever writes it to decide.
> 
> Also, assuming the alignment is the same as the size is rather a safe
> assumption for elementary types.
> 

Thanks all, I might choose a simple and straight-forward method, instead of
using align keyword.


More information about the ffmpeg-devel mailing list