[FFmpeg-devel] [PATCH v8 06/10] swscale: introduce new, dynamic scaling API
Michael Niedermayer
michael at niedermayer.cc
Sat Nov 23 23:43:25 EET 2024
On Thu, Nov 21, 2024 at 02:19:28PM +0100, Niklas Haas wrote:
> From: Niklas Haas <git at haasn.dev>
>
> As part of a larger, ongoing effort to modernize and partially rewrite
> libswscale, it was decided and generally agreed upon to introduce a new
> public API for libswscale. This API is designed to be less stateful, more
> explicitly defined, and considerably easier to use than the existing one.
>
> Most of the API work has been already accomplished in the previous commits,
> this commit merely introduces the ability to use sws_scale_frame()
> dynamically, without prior sws_init_context() calls. Instead, the new API
> takes frame properties from the frames themselves, and the implementation is
> based on the new SwsGraph API, which we simply reinitialize as needed.
>
> This high-level wrapper also recreates the logic that used to live inside
> vf_scale for scaling interlaced frames, enabling it to be reused more easily
> by end users.
>
> Finally, this function is designed to simply copy refs directly when nothing
> needs to be done, substantially improving throughput of the noop fast path.
>
> Sponsored-by: Sovereign Tech Fund
> Signed-off-by: Niklas Haas <git at haasn.dev>
> ---
> libswscale/swscale.c | 196 ++++++++++++++++++++++++++++++++--
> libswscale/swscale.h | 89 +++++++++++----
> libswscale/swscale_internal.h | 9 +-
> libswscale/utils.c | 4 +
> libswscale/x86/output.asm | 2 +-
> 5 files changed, 271 insertions(+), 29 deletions(-)
should be ok
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241123/1c8338f7/attachment.sig>
More information about the ffmpeg-devel
mailing list