[FFmpeg-devel] [PATCH] Optimization of original IFF codec

Måns Rullgård mans
Sun Apr 25 19:47:46 CEST 2010


Sebastian Vater <cdgs.basty at googlemail.com> writes:

> Hi Ronald!
>
> You mean it this way (see new noindent patch)?
>
> +    } else { // PIX_FMT_BGR32
> +    for(y = 0; y < avctx->height; y++ ) {
> +        uint8_t *row = &s->frame.data[0][ y*s->frame.linesize[0] ];
> +        memset(row, 0, (avctx->width << 2));
> +        for (plane = 0; plane < avctx->bits_per_coded_sample && buf < buf_end; plane++) {
> +                decodeplane32((uint32_t *) row, buf, FFMIN(s->planesize, buf_end - buf), avctx->bits_per_coded_sample, plane);
> +            buf += s->planesize;
> +        }
> +    }
> +    }

This block can be indented properly from the start since it's all new.
Same for others like it.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list