[FFmpeg-devel] [PATCH 11/12] swscale/internal: add typedefs for input reading functions

Michael Niedermayer michael at niedermayer.cc
Mon Oct 7 01:30:19 EEST 2024


On Sat, Oct 05, 2024 at 09:24:02PM +0200, Niklas Haas wrote:
> From: Niklas Haas <git at haasn.dev>
> 
> Sponsored-by: Sovereign Tech Fund
> Signed-off-by: Niklas Haas <git at haasn.dev>
> ---
>  libswscale/swscale_internal.h | 47 +++++++++++++++++++++++------------
>  1 file changed, 31 insertions(+), 16 deletions(-)
> 
> diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
> index 0e9d37b5b0..e87b073d57 100644
> --- a/libswscale/swscale_internal.h
> +++ b/libswscale/swscale_internal.h
> @@ -292,6 +292,31 @@ typedef void (*yuv2anyX_fn)(struct SwsContext *c, const int16_t *lumFilter,
>                              const int16_t **alpSrc, uint8_t **dest,
>                              int dstW, int y);
>  
> +/**
> + * Unscaled conversion of luma/alpha plane to YV12 for horizontal scaler.
> + */
> +typedef void (*planar1_YV12_fn)(uint8_t *dst, const uint8_t *src, const uint8_t *src2,
> +                                const uint8_t *src3, int width, uint32_t *pal,
> +                                void *opaque);
> +
> +/**
> + * Unscaled conversion of chroma plane to YV12 for horizontal scaler.
> + */
> +typedef void (*planar2_YV12_fn)(uint8_t *dst, uint8_t *dst2, const uint8_t *src,
> +                                const uint8_t *src2, const uint8_t *src3,
> +                                int width, uint32_t *pal, void *opaque);
> +

iam not 100% sure the names are perfect but the patch is ok, we can rename
them later, if someone has a better name (i dont have one ATM)

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- 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/20241007/13782086/attachment.sig>


More information about the ffmpeg-devel mailing list