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 #ifndef VP9_COMMON_VP9_RECONINTER_H_ | 11 #ifndef VP9_COMMON_VP9_RECONINTER_H_ |
12 #define VP9_COMMON_VP9_RECONINTER_H_ | 12 #define VP9_COMMON_VP9_RECONINTER_H_ |
13 | 13 |
14 #include "vpx/vpx_integer.h" | 14 #include "vpx/vpx_integer.h" |
15 #include "vp9/common/vp9_onyxc_int.h" | 15 #include "vp9/common/vp9_onyxc_int.h" |
16 | 16 |
17 struct subpix_fn_table; | 17 struct subpix_fn_table; |
18 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col, | 18 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col, |
19 BLOCK_SIZE bsize); | 19 BLOCK_SIZE bsize); |
20 | 20 |
21 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col, | 21 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col, |
22 BLOCK_SIZE bsize); | 22 BLOCK_SIZE bsize); |
23 | 23 |
24 void vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, | 24 void vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, |
25 BLOCK_SIZE bsize); | 25 BLOCK_SIZE bsize); |
26 | 26 |
27 void vp9_setup_interp_filters(MACROBLOCKD *xd, | 27 void vp9_dec_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, |
28 INTERPOLATION_TYPE filter, | 28 BLOCK_SIZE bsize); |
29 VP9_COMMON *cm); | |
30 | 29 |
31 void vp9_build_inter_predictor(const uint8_t *src, int src_stride, | 30 void vp9_build_inter_predictor(const uint8_t *src, int src_stride, |
32 uint8_t *dst, int dst_stride, | 31 uint8_t *dst, int dst_stride, |
33 const MV *mv_q3, | 32 const MV *mv_q3, |
34 const struct scale_factors *scale, | 33 const struct scale_factors *scale, |
35 int w, int h, int do_avg, | 34 int w, int h, int do_avg, |
36 const struct subpix_fn_table *subpix, | 35 const struct subpix_fn_table *subpix, |
37 enum mv_precision precision); | 36 enum mv_precision precision); |
38 | 37 |
39 static int scaled_buffer_offset(int x_offset, int y_offset, int stride, | 38 static int scaled_buffer_offset(int x_offset, int y_offset, int stride, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 93 |
95 static void set_scale_factors(MACROBLOCKD *xd, int ref0, int ref1, | 94 static void set_scale_factors(MACROBLOCKD *xd, int ref0, int ref1, |
96 struct scale_factors sf[MAX_REF_FRAMES]) { | 95 struct scale_factors sf[MAX_REF_FRAMES]) { |
97 xd->scale_factor[0] = sf[ref0 >= 0 ? ref0 : 0]; | 96 xd->scale_factor[0] = sf[ref0 >= 0 ? ref0 : 0]; |
98 xd->scale_factor[1] = sf[ref1 >= 0 ? ref1 : 0]; | 97 xd->scale_factor[1] = sf[ref1 >= 0 ? ref1 : 0]; |
99 } | 98 } |
100 | 99 |
101 void vp9_setup_scale_factors(VP9_COMMON *cm, int i); | 100 void vp9_setup_scale_factors(VP9_COMMON *cm, int i); |
102 | 101 |
103 #endif // VP9_COMMON_VP9_RECONINTER_H_ | 102 #endif // VP9_COMMON_VP9_RECONINTER_H_ |
OLD | NEW |