summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_encoder.c
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2014-09-02 16:34:09 -0700
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2014-09-16 14:55:37 -0700
commit5cd0aab81a007f7195ead1b5fdb7ae8545f885b4 (patch)
tree213b88c9c06e1dbfe0e2f7b16e9a42a67c286d29 /vp9/encoder/vp9_encoder.c
parent66f812fb5676df6088c5696cf5f5cea2b9c90372 (diff)
downloadlibvpx-5cd0aab81a007f7195ead1b5fdb7ae8545f885b4.tar
libvpx-5cd0aab81a007f7195ead1b5fdb7ae8545f885b4.tar.gz
libvpx-5cd0aab81a007f7195ead1b5fdb7ae8545f885b4.tar.bz2
libvpx-5cd0aab81a007f7195ead1b5fdb7ae8545f885b4.zip
Adds high bitdepth quantization functions
Adds various high bitdepth quantization functions. Change-Id: I36fc0bf75a1bd15128ed271df8723de0ac134b0c
Diffstat (limited to 'vp9/encoder/vp9_encoder.c')
-rw-r--r--vp9/encoder/vp9_encoder.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c
index e16b0b356..9545ba0f3 100644
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -330,7 +330,8 @@ static void configure_static_seg_features(VP9_COMP *cpi) {
seg->update_map = 1;
seg->update_data = 1;
- qi_delta = vp9_compute_qdelta(rc, rc->avg_q, rc->avg_q * 0.875);
+ qi_delta = vp9_compute_qdelta(rc, rc->avg_q, rc->avg_q * 0.875,
+ cm->bit_depth);
vp9_set_segdata(seg, 1, SEG_LVL_ALT_Q, qi_delta - 2);
vp9_set_segdata(seg, 1, SEG_LVL_ALT_LF, -2);
@@ -351,7 +352,8 @@ static void configure_static_seg_features(VP9_COMP *cpi) {
seg->update_data = 1;
seg->abs_delta = SEGMENT_DELTADATA;
- qi_delta = vp9_compute_qdelta(rc, rc->avg_q, rc->avg_q * 1.125);
+ qi_delta = vp9_compute_qdelta(rc, rc->avg_q, rc->avg_q * 1.125,
+ cm->bit_depth);
vp9_set_segdata(seg, 1, SEG_LVL_ALT_Q, qi_delta + 2);
vp9_enable_segfeature(seg, 1, SEG_LVL_ALT_Q);