ref: 48178d2cf284a7cdc4cb7973dab190e386de5af1
parent: de53e6de4958aea839a9b64c78c631775a1784ab
parent: 612104bb8dd3b40a635deebaca445f00aa069220
author: Ronald S. Bultje <[email protected]>
date: Tue Oct 6 06:49:30 EDT 2015
Merge "vp10: extend range for delta Q values."
--- a/vp10/decoder/decodeframe.c
+++ b/vp10/decoder/decodeframe.c
@@ -1125,7 +1125,8 @@
}
static INLINE int read_delta_q(struct vpx_read_bit_buffer *rb) {
- return vpx_rb_read_bit(rb) ? vpx_rb_read_inv_signed_literal(rb, 4) : 0;
+ return vpx_rb_read_bit(rb) ?
+ vpx_rb_read_inv_signed_literal(rb, CONFIG_MISC_FIXES ? 6 : 4) : 0;
}
static void setup_quantization(VP10_COMMON *const cm, MACROBLOCKD *const xd,
--- a/vp10/encoder/bitstream.c
+++ b/vp10/encoder/bitstream.c
@@ -733,7 +733,7 @@
static void write_delta_q(struct vpx_write_bit_buffer *wb, int delta_q) {
if (delta_q != 0) {
vpx_wb_write_bit(wb, 1);
- vpx_wb_write_inv_signed_literal(wb, delta_q, 4);
+ vpx_wb_write_inv_signed_literal(wb, delta_q, CONFIG_MISC_FIXES ? 6 : 4);
} else {
vpx_wb_write_bit(wb, 0);
}