| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #ifndef VP9_COMMON_VP9_MVREF_COMMON_H_ | 10 #ifndef VP9_COMMON_VP9_MVREF_COMMON_H_ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // TODO(jingning): this mv clamping function should be block size dependent. | 24 // TODO(jingning): this mv clamping function should be block size dependent. |
| 25 static INLINE void clamp_mv2(MV *mv, const MACROBLOCKD *xd) { | 25 static INLINE void clamp_mv2(MV *mv, const MACROBLOCKD *xd) { |
| 26 clamp_mv(mv, xd->mb_to_left_edge - LEFT_TOP_MARGIN, | 26 clamp_mv(mv, xd->mb_to_left_edge - LEFT_TOP_MARGIN, |
| 27 xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN, | 27 xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN, |
| 28 xd->mb_to_top_edge - LEFT_TOP_MARGIN, | 28 xd->mb_to_top_edge - LEFT_TOP_MARGIN, |
| 29 xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN); | 29 xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN); |
| 30 } | 30 } |
| 31 | 31 |
| 32 void vp9_find_mv_refs(const VP9_COMMON *cm, const MACROBLOCKD *xd, | 32 void vp9_find_mv_refs(const VP9_COMMON *cm, const MACROBLOCKD *xd, |
| 33 const TileInfo *const tile, | 33 const TileInfo *const tile, |
| 34 MODE_INFO *mi, const MODE_INFO *prev_mi, | 34 MODE_INFO *mi, MV_REFERENCE_FRAME ref_frame, |
| 35 MV_REFERENCE_FRAME ref_frame, | 35 int_mv *mv_ref_list, int mi_row, int mi_col); |
| 36 int_mv *mv_ref_list, | |
| 37 int mi_row, int mi_col); | |
| 38 | 36 |
| 39 // check a list of motion vectors by sad score using a number rows of pixels | 37 // check a list of motion vectors by sad score using a number rows of pixels |
| 40 // above and a number cols of pixels in the left to select the one with best | 38 // above and a number cols of pixels in the left to select the one with best |
| 41 // score to use as ref motion vector | 39 // score to use as ref motion vector |
| 42 void vp9_find_best_ref_mvs(MACROBLOCKD *xd, int allow_hp, | 40 void vp9_find_best_ref_mvs(MACROBLOCKD *xd, int allow_hp, |
| 43 int_mv *mvlist, int_mv *nearest, int_mv *near); | 41 int_mv *mvlist, int_mv *nearest, int_mv *near); |
| 44 | 42 |
| 45 void vp9_append_sub8x8_mvs_for_idx(VP9_COMMON *cm, MACROBLOCKD *xd, | 43 void vp9_append_sub8x8_mvs_for_idx(VP9_COMMON *cm, MACROBLOCKD *xd, |
| 46 const TileInfo *const tile, | 44 const TileInfo *const tile, |
| 47 int block, int ref, int mi_row, int mi_col, | 45 int block, int ref, int mi_row, int mi_col, |
| 48 int_mv *nearest, int_mv *near); | 46 int_mv *nearest, int_mv *near); |
| 49 | 47 |
| 50 #ifdef __cplusplus | 48 #ifdef __cplusplus |
| 51 } // extern "C" | 49 } // extern "C" |
| 52 #endif | 50 #endif |
| 53 | 51 |
| 54 #endif // VP9_COMMON_VP9_MVREF_COMMON_H_ | 52 #endif // VP9_COMMON_VP9_MVREF_COMMON_H_ |
| OLD | NEW |