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 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 void vp9_build_inter_predictor(const uint8_t *src, int src_stride, | 33 void vp9_build_inter_predictor(const uint8_t *src, int src_stride, |
34 uint8_t *dst, int dst_stride, | 34 uint8_t *dst, int dst_stride, |
35 const MV *mv_q3, | 35 const MV *mv_q3, |
36 const struct scale_factors *sf, | 36 const struct scale_factors *sf, |
37 int w, int h, int do_avg, | 37 int w, int h, int do_avg, |
38 const InterpKernel *kernel, | 38 const InterpKernel *kernel, |
39 enum mv_precision precision, | 39 enum mv_precision precision, |
40 int x, int y); | 40 int x, int y); |
41 | 41 |
| 42 #if CONFIG_VP9_HIGHBITDEPTH |
| 43 void vp9_high_build_inter_predictor(const uint8_t *src, int src_stride, |
| 44 uint8_t *dst, int dst_stride, |
| 45 const MV *mv_q3, |
| 46 const struct scale_factors *sf, |
| 47 int w, int h, int do_avg, |
| 48 const InterpKernel *kernel, |
| 49 enum mv_precision precision, |
| 50 int x, int y, int bd); |
| 51 #endif |
| 52 |
42 static INLINE int scaled_buffer_offset(int x_offset, int y_offset, int stride, | 53 static INLINE int scaled_buffer_offset(int x_offset, int y_offset, int stride, |
43 const struct scale_factors *sf) { | 54 const struct scale_factors *sf) { |
44 const int x = sf ? sf->scale_value_x(x_offset, sf) : x_offset; | 55 const int x = sf ? sf->scale_value_x(x_offset, sf) : x_offset; |
45 const int y = sf ? sf->scale_value_y(y_offset, sf) : y_offset; | 56 const int y = sf ? sf->scale_value_y(y_offset, sf) : y_offset; |
46 return y * stride + x; | 57 return y * stride + x; |
47 } | 58 } |
48 | 59 |
49 static INLINE void setup_pred_plane(struct buf_2d *dst, | 60 static INLINE void setup_pred_plane(struct buf_2d *dst, |
50 uint8_t *src, int stride, | 61 uint8_t *src, int stride, |
51 int mi_row, int mi_col, | 62 int mi_row, int mi_col, |
(...skipping 11 matching lines...) Expand all Loading... |
63 | 74 |
64 void vp9_setup_pre_planes(MACROBLOCKD *xd, int idx, | 75 void vp9_setup_pre_planes(MACROBLOCKD *xd, int idx, |
65 const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col, | 76 const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col, |
66 const struct scale_factors *sf); | 77 const struct scale_factors *sf); |
67 | 78 |
68 #ifdef __cplusplus | 79 #ifdef __cplusplus |
69 } // extern "C" | 80 } // extern "C" |
70 #endif | 81 #endif |
71 | 82 |
72 #endif // VP9_COMMON_VP9_RECONINTER_H_ | 83 #endif // VP9_COMMON_VP9_RECONINTER_H_ |
OLD | NEW |