Commit cd44a054 authored by Yaowu Xu's avatar Yaowu Xu

Change to use 8bit for qmatrix entries

This is to reduce the size of static tables.

BUG=aomedia:1030

Change-Id: Id9a00352560af38eb381f403510ec3f3d7f1c29a
parent 1cb1c002
......@@ -52,7 +52,7 @@ extern "C" {
#define UNLIKELY(v) (v)
#endif
typedef uint16_t qm_val_t;
typedef uint8_t qm_val_t;
#define AOM_QM_BITS 5
// Note:
......
......@@ -517,8 +517,8 @@ const qm_val_t *aom_qmatrix(AV1_COMMON *cm, int qmlevel, int plane,
}
#define QM_TOTAL_SIZE 3344
static const uint16_t wt_matrix_ref[NUM_QM_LEVELS][2][QM_TOTAL_SIZE];
static const uint16_t iwt_matrix_ref[NUM_QM_LEVELS][2][QM_TOTAL_SIZE];
static const qm_val_t wt_matrix_ref[NUM_QM_LEVELS][2][QM_TOTAL_SIZE];
static const qm_val_t iwt_matrix_ref[NUM_QM_LEVELS][2][QM_TOTAL_SIZE];
void aom_qm_init(AV1_COMMON *cm) {
const int num_planes = av1_num_planes(cm);
......@@ -558,7 +558,7 @@ void aom_qm_init(AV1_COMMON *cm) {
frequency domain according to different nominal viewing
distances.
*/
static const uint16_t iwt_matrix_ref[NUM_QM_LEVELS][2][QM_TOTAL_SIZE] = {
static const qm_val_t iwt_matrix_ref[NUM_QM_LEVELS][2][QM_TOTAL_SIZE] = {
{
{ /* Luma */
/* Size 4x4 */
......@@ -7326,7 +7326,7 @@ static const uint16_t iwt_matrix_ref[NUM_QM_LEVELS][2][QM_TOTAL_SIZE] = {
},
};
static const uint16_t wt_matrix_ref[NUM_QM_LEVELS][2][QM_TOTAL_SIZE] = {
static const qm_val_t wt_matrix_ref[NUM_QM_LEVELS][2][QM_TOTAL_SIZE] = {
{
{ /* Luma */
/* Size 4x4 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment