8487a68baf
Fixed some further QIndex related issues and replaced some tables (eg zbin and rounding) Also Added function (currently disabled by default) to populate the main AC and DC quantizer tables. Using the original AC range the resulting computed DC values give behavior broadly comparable on the DERF set. That is not to say that the equations will hold good over a more extended range. The purpose of this code is to make it easier to experiment with further alterations to the Q range and distribution of Q values plus the relative weights given to AC and DC. The function find_fp_qindex() ensures that changes to the Q tables are reflected in the value passed in to the first pass code. Slight experimental adjustment to static segment Q offset. Change-Id: I36186267d55dfc2a3d565d0cff7218ef300d1cd5
25 lines
830 B
C
25 lines
830 B
C
/*
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
|
|
#include "string.h"
|
|
#include "blockd.h"
|
|
#include "onyxc_int.h"
|
|
|
|
#if CONFIG_EXTEND_QRANGE
|
|
extern void vp8_init_quant_tables();
|
|
#endif
|
|
extern int vp8_ac_yquant(int QIndex);
|
|
extern int vp8_dc_quant(int QIndex, int Delta);
|
|
extern int vp8_dc2quant(int QIndex, int Delta);
|
|
extern int vp8_ac2quant(int QIndex, int Delta);
|
|
extern int vp8_dc_uv_quant(int QIndex, int Delta);
|
|
extern int vp8_ac_uv_quant(int QIndex, int Delta);
|