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. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel