[FFmpeg-devel] [PATCH 1/2] lavc/qsv: use avpriv_ instead of ff_ as prefix for some functions

Xiang, Haihao haihao.xiang at intel.com
Mon Dec 7 04:05:05 EET 2020


On Fri, 2020-12-04 at 10:21 -0300, James Almer wrote:
> On 12/4/2020 7:24 AM, Anton Khirnov wrote:
> > Quoting Haihao Xiang (2020-11-23 09:16:13)
> > > ff_qsv_print_iopattern, ff_qsv_print_error and ff_qsv_print_warning can be
> > > used outside of lavc. In addition, ff_qsv_map_error is used in
> > > libavcodec/qsv.c only, so remove ff_ from ff_qsv_map_error and make it
> > > static.
> > > 
> > > Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>
> > > ---
> > 
> > New avpriv functions are strongly discouraged. Dependencies between
> > libavcodec and libavfilter are also not good.
> > 
> > Those should either be inline in a private header, or exported as proper
> > public API from libavutil.
> 
> Public API, or even avpriv_ symbols that depend on external 
> libraries/hardware are not a good idea and should be avoided. And these 
> are all "print error", "print warning" kind of helpers that most likely 
> have no use outside of libav*.
> 
> All of them look like can be inlined just fine, too, so he should do 
> that instead.

Thanks for the feedback.

I sent out a new version of the patch that uses inline functions instead of
avpriv functions

Regards
Haihao

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list