[FFmpeg-devel] [PATCH]Support decoding Avid 1:1 10-bit RGB Packer

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jan 4 13:35:45 CET 2012


Nicolas George <nicolas.george <at> normalesup.org> writes:

> > +            if (avctx->codec_id==CODEC_ID_AVRP) {
> > +                pixel = av_le2ne32(*src++);
> > +            } else {
> > +                pixel = av_be2ne32(*src++);
> > +            }
> 
> How does it affect the speed?

I am unable to measure an overall speed difference if I replace above block with
"pixel = av_le2ne32(*src++);"
START_TIMER shows less cycles with the if-else...

I will apply if there are no more comments.

Carl Eugen



More information about the ffmpeg-devel mailing list