Merge "buf_ans: Misc cleanup." into nextgenv2
This commit is contained in:
@@ -28,7 +28,9 @@
|
|||||||
#include "vp10/common/seg_common.h"
|
#include "vp10/common/seg_common.h"
|
||||||
#include "vp10/common/tile_common.h"
|
#include "vp10/common/tile_common.h"
|
||||||
|
|
||||||
|
#if CONFIG_ANS
|
||||||
#include "vp10/encoder/buf_ans.h"
|
#include "vp10/encoder/buf_ans.h"
|
||||||
|
#endif // CONFIG_ANS
|
||||||
#include "vp10/encoder/cost.h"
|
#include "vp10/encoder/cost.h"
|
||||||
#include "vp10/encoder/bitstream.h"
|
#include "vp10/encoder/bitstream.h"
|
||||||
#include "vp10/encoder/encodemv.h"
|
#include "vp10/encoder/encodemv.h"
|
||||||
|
@@ -85,7 +85,8 @@ static INLINE void buf_ans_flush(const struct BufAnsCoder *const c,
|
|||||||
sym.cum_prob = c->buf[offset].val_start;
|
sym.cum_prob = c->buf[offset].val_start;
|
||||||
rans_write(ans, &sym);
|
rans_write(ans, &sym);
|
||||||
} else {
|
} else {
|
||||||
uabs_write(ans, c->buf[offset].val_start, c->buf[offset].prob);
|
uabs_write(ans, (uint8_t)c->buf[offset].val_start,
|
||||||
|
(AnsP8)c->buf[offset].prob);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user