blob: 111ccd63c7226f15cec8452458354718a089cf9d [file] [log] [blame]
John Koleszar0ea50ce2010-05-18 11:58:33 -04001/*
John Koleszarc2140b82010-09-09 08:16:39 -04002 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar0ea50ce2010-05-18 11:58:33 -04003 *
John Koleszar94c52e42010-06-18 12:39:21 -04004 * Use of this source code is governed by a BSD-style license
John Koleszar09202d82010-06-04 16:19:40 -04005 * 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
John Koleszar94c52e42010-06-18 12:39:21 -04007 * in the file PATENTS. All contributing project authors may
John Koleszar09202d82010-06-04 16:19:40 -04008 * be found in the AUTHORS file in the root of the source tree.
John Koleszar0ea50ce2010-05-18 11:58:33 -04009 */
10
11
James Zerne903cac2013-12-15 18:20:21 -080012#ifndef VP8_COMMON_MV_H_
13#define VP8_COMMON_MV_H_
Scott LaVarnway6b255012011-05-12 10:50:16 -040014#include "vpx/vpx_integer.h"
John Koleszar0ea50ce2010-05-18 11:58:33 -040015
James Zernaceba822014-01-18 12:16:11 -080016#ifdef __cplusplus
17extern "C" {
18#endif
19
John Koleszar0ea50ce2010-05-18 11:58:33 -040020typedef struct
21{
22 short row;
23 short col;
24} MV;
25
John Koleszar0b0bc8d2012-01-12 16:55:44 -080026typedef union int_mv
Scott LaVarnway6b255012011-05-12 10:50:16 -040027{
28 uint32_t as_int;
29 MV as_mv;
30} int_mv; /* facilitates faster equality tests and copies */
31
James Zernaceba822014-01-18 12:16:11 -080032#ifdef __cplusplus
33} // extern "C"
34#endif
35
James Zerne903cac2013-12-15 18:20:21 -080036#endif // VP8_COMMON_MV_H_