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

Timo Rothenpieler timo at rothenpieler.org
Fri Sep 2 12:08:55 EEST 2016


Am 02.09.2016 um 11:02 schrieb Michael Niedermayer:
> 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 ?

Looking at the other functions, it indeed seems like it is.
Thanks, completely missed that.


More information about the ffmpeg-devel mailing list