• Andreas Rheinhardt's avatar
    avcodec/cbs: Add specialization for ff_cbs_(read|write)_unsigned() · a105b11a
    Andreas Rheinhardt authored
    These functions allow not only to read and write unsigned values,
    but also to check ranges and to emit trace output which can be
    beautified when processing arrays (indices like "[i]" are replaced
    by their actual numbers).
    
    Yet lots of callers actually only need something simpler:
    Their range is only implicitly restricted by the amount
    of bits used and they are not part of arrays, hence don't
    need this beautification.
    
    This commit adds specializations for these callers;
    this is very beneficial size-wise (it reduced the size
    of .text by 23312 bytes here), as a call is now cheaper.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    a105b11a
cbs_mpeg2.c 14.3 KB