[FFmpeg-devel] [PATCH 3/3] avcodec/scpr: optimize shift loop.
michael at niedermayer.cc
Sat Sep 9 21:03:40 EEST 2017
On Sat, Sep 09, 2017 at 03:11:00PM +0100, Derek Buitenhuis wrote:
> On 9/8/2017 11:15 PM, James Almer wrote:
> > It reads eight bytes at a time if the buffer is sufficiently aligned,
> > then finishes reading the remaining bytes one at a time.
> > If the buffer is unaligned, it reads everything one byte at a time like
> > it used to.
> > See ff_h2645_extract_rbsp() and add_bytes_c() for another example of
> > this optimization.
> So put a comment, or at least put it in the commit message.
> It isn't exactly straightforward; it's like reading Hex Rays output.
ill repost the patch with comments
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: Digital signature
More information about the ffmpeg-devel