]> git.sesse.net Git - ffmpeg/commit
avcodec/xbmdec: get_nibble() minor speed increase, and binary reduction
authorJose Da Silva <digital@joescat.com>
Mon, 1 Feb 2021 03:51:10 +0000 (19:51 -0800)
committerPaul B Mahol <onemda@gmail.com>
Wed, 3 Feb 2021 15:03:15 +0000 (16:03 +0100)
commit7ccea3bf0959d4493959f4a22f9674144aef405b
treef454f4f208c4decb22c57ada92d0920be39b1a48
parent8c3d31fbeee157d6f529402c86371c857026fcff
avcodec/xbmdec: get_nibble() minor speed increase, and binary reduction

Replace av_isxdigit(*ptr) and convert(*ptr) with get_nibble(*ptr) which
returns a valid nibble=={0x00..0x0f} or false==255 for all other values.
This way we only need to work with *ptr once instead of twice.

Removing inline av_isxdigit(x) functions also shrinks executable size.

Signed-off-by: Joe Da Silva <digital@joescat.com>
libavcodec/xbmdec.c