2 * Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
17 #include "entropymv.h"
19 #include "vpx_ports/mem.h"
30 // 16 Y blocks, 4 U blocks, 4 V blocks each with 16 entries
34 // 16 Y blocks, 4 U blocks, 4 V blocks each with 16 entries
36 short(*quant_shift)[4];
38 short(*zrun_zbin_boost);
41 // Zbin Over Quant value
44 unsigned char **base_src;
55 DECLARE_ALIGNED(16, short, src_diff[400]); // 16x16 Y 8x8 U 8x8 V 4x4 2nd Y
56 DECLARE_ALIGNED(16, short, coeff[400]); // 16x16 Y 8x8 U 8x8 V 4x4 2nd Y
58 // 16 Y blocks, 4 U blocks, 4 V blocks, 1 DC 2nd order block each with 16 entries
61 YV12_BUFFER_CONFIG src;
67 int searches_per_step;
76 int mvcosts[2][MVvals+1];
78 int mvsadcosts[2][MVvals+1];
80 int mbmode_cost[2][MB_MODE_COUNT];
81 int intra_uv_mode_cost[2][MB_MODE_COUNT];
82 unsigned int bmode_costs[10][10][10];
83 unsigned int inter_bmode_costs[B_MODE_COUNT];
85 // These define limits to motion vector components to prevent them from extending outside the UMV borders
91 int vector_range; // Used to monitor limiting range of recent vectors to guide search.
96 unsigned char *active_ptr;
99 unsigned int token_costs[BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [vp8_coef_tokens];
102 void (*vp8_short_fdct4x4)(short *input, short *output, int pitch);
103 void (*vp8_short_fdct8x4)(short *input, short *output, int pitch);
104 void (*short_walsh4x4)(short *input, short *output, int pitch);
105 void (*quantize_b)(BLOCK *b, BLOCKD *d);