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

Michael Niedermayer michael at niedermayer.cc
Fri Sep 2 12:02:30 EEST 2016


On Fri, Sep 02, 2016 at 10:38:39AM +0200, Timo Rothenpieler wrote:
> >> +    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 ?
> > 
> 
> Without it, every
> 
> dstY[x] = src[0][x] << 6;
> 
> would turn into
> 
> dstY[x] = ((uint16_t*)(src8[0] + srcStride[0] * srcSliceY))[x] << 6;

you misunderstood me, why do you add srcSliceY? isnt src* already
pointing to the right spot ?

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

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- 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/20160902/0f8072b6/attachment.sig>


More information about the ffmpeg-devel mailing list