[FFmpeg-devel] [PATCH] avcodec/qsv: export session management functionality

nablet developer sdk at nablet.com
Wed Apr 13 10:37:12 CEST 2016


> On 13 Apr 2016, at 14:33, wm4 <nfxjfg at googlemail.com> wrote:
> 
> On Wed, 13 Apr 2016 14:14:37 +0600
> nablet developer <sdk at nablet.com> wrote:
> 
>>> Why would this API need to be exported?  
>> 
>> previously QuickSync was used only by libavcodec and its components - e.g. there are QSV encoder and decoders for AVC and MPEG-2. so it was OK that QuickSync initialisation and cleanup functions were local for libavcodec.
>> 
>> but right now we're adding QuickSync VPP component to libavfilter, so mentioned functions now become shared at least between libavcodec and libavfilter.
>> therefore, patch to add QSV VPP filter was rejected because it accessed libavcodec functions which were local, and it was suggested that such functions are need to be exported from libavcodec, so libavfilter can use them.
> 
> Wouldn't it be better to keep it internal then? Sharing code between
> the sub-libs is unfortunately messy, but possible. For example, you
> could create a dummy .c file in libavfilter that includes the
> libavcodec one. Not beautiful, but might be better than making the API
> public. Not sure what other devs think about this.

I suppose it might cause linking issues in static builds (duplicated symbols).

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel



More information about the ffmpeg-devel mailing list