summaryrefslogtreecommitdiff
path: root/vp8/encoder/onyx_if.c
diff options
context:
space:
mode:
authorPaul Wilkins <paulwilkins@google.com>2011-12-16 10:23:01 +0000
committerPaul Wilkins <paulwilkins@google.com>2011-12-19 09:36:19 +0000
commitdf4e79f7f7b1c5f62fdb80575bab6ce1b2be7928 (patch)
tree9be1bbb96562dfb3756738d9c469a7a0155f6073 /vp8/encoder/onyx_if.c
parentec670bc5584674ebd37801cf5d1e0ae3540b01b7 (diff)
downloadlibvpx-df4e79f7f7b1c5f62fdb80575bab6ce1b2be7928.tar
libvpx-df4e79f7f7b1c5f62fdb80575bab6ce1b2be7928.tar.gz
libvpx-df4e79f7f7b1c5f62fdb80575bab6ce1b2be7928.tar.bz2
libvpx-df4e79f7f7b1c5f62fdb80575bab6ce1b2be7928.zip
Extend to 256 Q steps.
This commit extends the number of Q steps to 256 from 128. The q_trans[] array has been altered to distribute available Q index values (using the current 64 steps available as input parameters) evenly across the available range. This is coupled with the fact that each Q step where possible now equates to a fixed % change in the quantizer. This may want refinement later especially in terms of the granularity at the high quality end but is a reasonable starting point. Change-Id: I2aaa6874fa10ce05c958dd182947ce39f6f1eecb
Diffstat (limited to 'vp8/encoder/onyx_if.c')
-rw-r--r--vp8/encoder/onyx_if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index 9a5ce38a6..fe8f1ab78 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -1857,7 +1857,7 @@ void vp8_alloc_compressor_data(VP8_COMP *cpi)
//
// Table that converts 0-63 Q range values passed in outside to the Qindex
// range used internally.
-/*#if CONFIG_EXTEND_QRANGE
+#if CONFIG_EXTEND_QRANGE
static const int q_trans[] =
{
0, 4, 8, 12, 16, 20, 24, 28,
@@ -1869,7 +1869,7 @@ static const int q_trans[] =
192, 196, 200, 204, 208, 212, 216, 220,
224, 228, 232, 236, 240, 244, 249, 255,
};
-#else*/
+#else
static const int q_trans[] =
{
0, 1, 2, 3, 4, 5, 7, 8,
@@ -1881,7 +1881,7 @@ static const int q_trans[] =
82, 85, 88, 91, 94, 97, 100, 103,
106, 109, 112, 115, 118, 121, 124, 127,
};
-//#endif
+#endif
int vp8_reverse_trans(int x)
{