OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "./vpx_dsp_rtcd.h" | 11 #include "./vpx_dsp_rtcd.h" |
12 | 12 |
13 #include "vpx_config.h" | 13 #include "vpx_config.h" |
14 #include "vp8_rtcd.h" | 14 #include "vp8_rtcd.h" |
15 #include "encodemb.h" | 15 #include "encodemb.h" |
16 #include "vp8/common/reconinter.h" | 16 #include "vp8/common/reconinter.h" |
17 #include "quantize.h" | 17 #include "vp8/encoder/quantize.h" |
18 #include "tokenize.h" | 18 #include "tokenize.h" |
19 #include "vp8/common/invtrans.h" | 19 #include "vp8/common/invtrans.h" |
20 #include "vpx_mem/vpx_mem.h" | 20 #include "vpx_mem/vpx_mem.h" |
21 #include "rdopt.h" | 21 #include "rdopt.h" |
22 | 22 |
23 void vp8_subtract_b(BLOCK *be, BLOCKD *bd, int pitch) { | 23 void vp8_subtract_b(BLOCK *be, BLOCKD *bd, int pitch) { |
24 unsigned char *src_ptr = (*(be->base_src) + be->src); | 24 unsigned char *src_ptr = (*(be->base_src) + be->src); |
25 short *diff_ptr = be->src_diff; | 25 short *diff_ptr = be->src_diff; |
26 unsigned char *pred_ptr = bd->predictor; | 26 unsigned char *pred_ptr = bd->predictor; |
27 int src_stride = be->src_stride; | 27 int src_stride = be->src_stride; |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 | 584 |
585 vp8_subtract_mby(x->src_diff, *(b->base_src), | 585 vp8_subtract_mby(x->src_diff, *(b->base_src), |
586 b->src_stride, x->e_mbd.dst.y_buffer, x->e_mbd.dst.y_stride); | 586 b->src_stride, x->e_mbd.dst.y_buffer, x->e_mbd.dst.y_stride); |
587 | 587 |
588 transform_mby(x); | 588 transform_mby(x); |
589 | 589 |
590 vp8_quantize_mby(x); | 590 vp8_quantize_mby(x); |
591 | 591 |
592 vp8_inverse_transform_mby(&x->e_mbd); | 592 vp8_inverse_transform_mby(&x->e_mbd); |
593 } | 593 } |
OLD | NEW |