Line data Source code
1 : /*
2 : * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 : *
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.
9 : */
10 :
11 : #include "vpx_config.h"
12 : #include "vp8_rtcd.h"
13 : #include "vpx_ports/x86.h"
14 : #include "vp8/encoder/block.h"
15 :
16 : int vp8_fast_quantize_b_impl_mmx(short *coeff_ptr, short *zbin_ptr,
17 : short *qcoeff_ptr, short *dequant_ptr,
18 : const short *scan_mask, short *round_ptr,
19 : short *quant_ptr, short *dqcoeff_ptr);
20 0 : void vp8_fast_quantize_b_mmx(BLOCK *b, BLOCKD *d) {
21 0 : const short *scan_mask = vp8_default_zig_zag_mask;
22 0 : short *coeff_ptr = b->coeff;
23 0 : short *zbin_ptr = b->zbin;
24 0 : short *round_ptr = b->round;
25 0 : short *quant_ptr = b->quant_fast;
26 0 : short *qcoeff_ptr = d->qcoeff;
27 0 : short *dqcoeff_ptr = d->dqcoeff;
28 0 : short *dequant_ptr = d->dequant;
29 :
30 0 : *d->eob = (char)vp8_fast_quantize_b_impl_mmx(
31 : coeff_ptr, zbin_ptr, qcoeff_ptr, dequant_ptr, scan_mask,
32 :
33 : round_ptr, quant_ptr, dqcoeff_ptr);
34 0 : }
|