[FFmpeg-devel] [PATCH] MVI demuxer / Motion Pixels decoder

Gregory Montoir cyx
Wed Jul 2 19:04:50 CEST 2008


Gregory Montoir wrote:
> Michael Niedermayer wrote:
>> [...]
>>> Index: libavcodec/bitstream.h
>>> ===================================================================
>>> --- libavcodec/bitstream.h    (r?vision 14030)
>>> +++ libavcodec/bitstream.h    (copie de travail)
>>
>> maybe it would be better to bswap32 the input into a temporary buffer
>> iam not sure, i need to think about this more.
>> Is this faster than a bswap32 and a temp buffer?
> 
> good idea.
> using read_time() in mp_decode_frame gives (on a pentium m 1.7) :
> 
> [...]
 >
> so, as it's faster and less ugly code wise, I changed the code to bswap 
> the bitstream.

Looks like I overlooked dsputil.c... attached a new patch using the 
bswap_buf dsp func.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ffmpeg-mvi-3.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080702/e75166ff/attachment.txt>



More information about the ffmpeg-devel mailing list