[FFmpeg-devel] [PATCH] swscale: add unscaled copy from yuv420p10 to p010

Michael Niedermayer michael at niedermayer.cc
Fri Sep 2 00:07:57 EEST 2016


On Thu, Sep 01, 2016 at 07:49:38PM +0200, Timo Rothenpieler wrote:
> ---
>  libswscale/swscale_unscaled.c | 42 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 42 insertions(+)
>
> diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
> index b231abe..f47e1f4 100644
> --- a/libswscale/swscale_unscaled.c
> +++ b/libswscale/swscale_unscaled.c
> @@ -197,6 +197,43 @@ static int nv12ToPlanarWrapper(SwsContext *c, const uint8_t *src[],
>      return srcSliceH;
>  }
>  
> +static int planarToP010Wrapper(SwsContext *c, const uint8_t *src8[],
> +                               int srcStride[], int srcSliceY,
> +                               int srcSliceH, uint8_t *dstParam8[],
> +                               int dstStride[])
> +{

> +    uint16_t *src[] = {
> +        (uint16_t*)(src8[0] + srcStride[0] * srcSliceY),
> +        (uint16_t*)(src8[1] + srcStride[1] * srcSliceY),
> +        (uint16_t*)(src8[2] + srcStride[2] * srcSliceY)

this looks odd, why is this needed ?


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

Does the universe only have a finite lifespan? No, its going to go on
forever, its just that you wont like living in it. -- Hiranya Peiri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160901/3f2f47cb/attachment.sig>


More information about the ffmpeg-devel mailing list