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 12 #ifndef __INC_FINDNEARMV_H 13 #define __INC_FINDNEARMV_H 14 15 #include "mv.h" 16 #include "blockd.h" 17 #include "modecont.h" 18 #include "treecoder.h" 19 20 void vp8_find_near_mvs 21 ( 22 MACROBLOCKD *xd, 23 const MODE_INFO *here, 24 MV *nearest, MV *nearby, MV *best, 25 int near_mv_ref_cts[4], 26 int refframe, 27 int *ref_frame_sign_bias 28 ); 29 30 vp8_prob *vp8_mv_ref_probs( 31 vp8_prob p[VP8_MVREFS-1], const int near_mv_ref_ct[4] 32 ); 33 34 const B_MODE_INFO *vp8_left_bmi(const MODE_INFO *cur_mb, int b); 35 36 const B_MODE_INFO *vp8_above_bmi(const MODE_INFO *cur_mb, int b, int mi_stride); 37 38 #define LEFT_TOP_MARGIN (16 << 3) 39 #define RIGHT_BOTTOM_MARGIN (16 << 3) 40 41 42 #endif 43