[FFmpeg-devel] [PATCH] ffmpeg: redesign video resampling in case of mid-stream video size/format change
Stefano Sabatini
stefano.sabatini-lala at poste.it
Tue Apr 26 00:17:39 CEST 2011
On date Monday 2011-04-25 00:26:05 +0200, Stefano Sabatini encoded:
[...]
> New approach, this is the neatest design I can find without
> introducing filterchain re-configuration. It also fixes some problems
> in the non-libavfilter code path.
> --
> FFmpeg = Formidable Fancy Majestic Prodigious Eager Game
> From b3f4b7091122ca341b3a10b4f6edbbcb7183af2f Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> Date: Sat, 16 Apr 2011 23:14:44 +0200
> Subject: [PATCH] ffmpeg: redesign video resampling in case of mid-stream video size/format change
>
> The new design implements a new video rescaling API and supports video
> resolution/format change with and without AVFILTER_CONFIG, thus
> avoiding the need for the av_vsrc_buffer_add_frame2() hack.
>
> If libavfilter is not enabled, resampling is performed in
> do_video_out(), before to send the decoded frame to the output. In
> this case the resampling API will also perform the scaling to the
> output video size/format.
>
> If libavfilter is enabled, resampling is performed in
> pre_process_video_frame(), before the video is sent to the
> filterchain. This way we ensure that the filterchain is feeded with
> frames of the same size/format, thus avoiding the need of dynamic
> filterchain reconfiguration.
>
> Fix issues:
> roundup #2217
> trac #59
> trac #64
> trac #74
Ping.
--
FFmpeg = Fascinating and Free Mysterious Pitiful Eretic Gem
More information about the ffmpeg-devel
mailing list