]> granicus.if.org Git - libvpx/commit
vp10: code sign bit before absolute value in non-arithcoded header.
authorRonald S. Bultje <rsbultje@gmail.com>
Tue, 8 Sep 2015 18:26:42 +0000 (14:26 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 16 Sep 2015 23:35:03 +0000 (19:35 -0400)
commita3df343cda2b6f3d554138ce5dae831e2f946d0c
treeec3c040c3add312e37c58f00fde4377a0554af21
parent3c8e04e93928b978dc6df84cf0f77939d7a2e64b
vp10: code sign bit before absolute value in non-arithcoded header.

For reading, this makes the operation branchless, although it still
requires two shifts. For writing, this makes the operation as fast
as writing an unsigned value, branchlessly. This is also how other
codecs typically code signed, non-arithcoded bitstream elements.

See issue 1039.

Change-Id: I6a8182cc88a16842fb431688c38f6b52d7f24ead
vp10/decoder/decodeframe.c
vp10/encoder/bitstream.c
vpx_dsp/bitreader_buffer.c
vpx_dsp/bitreader_buffer.h
vpx_dsp/bitwriter_buffer.c
vpx_dsp/bitwriter_buffer.h