[FFmpeg-devel] [PATCH]lavc/psd: Support 1bpp images
Gonzalo GarramuƱo
ggarra13 at gmail.com
Tue Jan 10 20:45:18 EET 2017
El 10/01/2017 a las 10:21, Carl Eugen Hoyos escribiĆ³:
> }
> + } else if (avctx->pix_fmt == AV_PIX_FMT_MONOWHITE) {
> + ptr = picture->data[0];
> + for (y = 0; y < s->height; y++) {
> + memcpy(ptr, ptr_data, s->width + 7 >> 3);
> + ptr_data += s->width + 7 >> 3;
> + ptr += picture->linesize[0];
> + }
Just a nitpick. I would put s->width + 7 >> 3 in a variable outside the
loop and use it in memcpy and in the ptr_data.
More information about the ffmpeg-devel
mailing list