Merge "vp8_rd_pick_best_mbsegmentation code restructure"
[libvpx.git] / vp8 / common / findnearmv.h
blob1a6c72bcdcd2ba0f01aabfad45f7ae1334a88a24
1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
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 */
12 #ifndef __INC_FINDNEARMV_H
13 #define __INC_FINDNEARMV_H
15 #include "mv.h"
16 #include "blockd.h"
17 #include "modecont.h"
18 #include "treecoder.h"
20 void vp8_find_near_mvs
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
30 vp8_prob *vp8_mv_ref_probs(
31 vp8_prob p[VP8_MVREFS-1], const int near_mv_ref_ct[4]
34 const B_MODE_INFO *vp8_left_bmi(const MODE_INFO *cur_mb, int b);
36 const B_MODE_INFO *vp8_above_bmi(const MODE_INFO *cur_mb, int b, int mi_stride);
38 #define LEFT_TOP_MARGIN (16 << 3)
39 #define RIGHT_BOTTOM_MARGIN (16 << 3)
42 #endif