[FFmpeg-devel] [PATCH v3 1/1] avfilter/buffersink: Add video frame allocation callback

James Almer jamrial at gmail.com
Sun Jul 23 22:16:41 EEST 2023


On 7/23/2023 4:06 PM, Nicolas George wrote:
> James Almer (12023-07-23):
>> Does the AVBuffersinkAllocVideoFrameFunc function have access to the
>> AVFilterLink ff_default_get_video_buffer() gets? I assume it'd be needed to
>> get values like pixel format. If so, it should be documented how, but maybe
>> it's easier to just pass link here instead of the AVFilterContext, and let
>> the caller access link->dst if needed.
> 
> The API of buffersink already exposes all the necessary format
> information.

What about when FF_FILTER_FLAG_HWFRAME_AWARE filters are present in the 
graph? hw_frames_ctx from AVFilterLink can't be accessed from outside 
lavfi. Is vf_hwdownload meant to be added to the graph before buffersink?


More information about the ffmpeg-devel mailing list