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

Paul B Mahol onemda at gmail.com
Wed Jan 4 13:39:29 CET 2012


On 1/4/12, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> 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...

Perhaps compiler optimize it further :) , overall lgtm.


More information about the ffmpeg-devel mailing list