Clamp decoded feature data
authorJohn Koleszar <jkoleszar@google.com>
Tue, 27 Nov 2012 19:16:15 +0000 (11:16 -0800)
committerJohn Koleszar <jkoleszar@google.com>
Wed, 28 Nov 2012 00:38:31 +0000 (16:38 -0800)
commita1f15814be0eb9921a6b5bb102354df7eeb936b2
treee854df01ab8110d6bf52370fae3caa9444386d1f
parent1760c39bcee3a6fc8e5998619bc7970755b528f6
Clamp decoded feature data

Not all segment feature data elements are full-range powers of two, so
there are values that can be encoded that are invalid. Add a new function
to clamp values to the maximum allowed.

Change-Id: Ie47cb80ef2d54292e6b8db9f699c57214a915bc4
vp9/common/vp9_seg_common.c
vp9/common/vp9_seg_common.h
vp9/decoder/vp9_dboolhuff.c
vp9/decoder/vp9_dboolhuff.h
vp9/decoder/vp9_decodframe.c
vp9/encoder/vp9_bitstream.c
vp9/encoder/vp9_boolhuff.c
vp9/encoder/vp9_boolhuff.h