1233d2500723e5594f3e7c70896ffeeef32b9c950ywan/*
2233d2500723e5594f3e7c70896ffeeef32b9c950ywan *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3233d2500723e5594f3e7c70896ffeeef32b9c950ywan *
4233d2500723e5594f3e7c70896ffeeef32b9c950ywan *  Use of this source code is governed by a BSD-style license
5233d2500723e5594f3e7c70896ffeeef32b9c950ywan *  that can be found in the LICENSE file in the root of the source
6233d2500723e5594f3e7c70896ffeeef32b9c950ywan *  tree. An additional intellectual property rights grant can be found
7233d2500723e5594f3e7c70896ffeeef32b9c950ywan *  in the file PATENTS.  All contributing project authors may
8233d2500723e5594f3e7c70896ffeeef32b9c950ywan *  be found in the AUTHORS file in the root of the source tree.
9233d2500723e5594f3e7c70896ffeeef32b9c950ywan */
10233d2500723e5594f3e7c70896ffeeef32b9c950ywan
11233d2500723e5594f3e7c70896ffeeef32b9c950ywan
12233d2500723e5594f3e7c70896ffeeef32b9c950ywan#ifndef VP8_COMMON_MV_H_
13233d2500723e5594f3e7c70896ffeeef32b9c950ywan#define VP8_COMMON_MV_H_
14233d2500723e5594f3e7c70896ffeeef32b9c950ywan#include "vpx/vpx_integer.h"
15233d2500723e5594f3e7c70896ffeeef32b9c950ywan
16233d2500723e5594f3e7c70896ffeeef32b9c950ywan#ifdef __cplusplus
17233d2500723e5594f3e7c70896ffeeef32b9c950ywanextern "C" {
18233d2500723e5594f3e7c70896ffeeef32b9c950ywan#endif
19233d2500723e5594f3e7c70896ffeeef32b9c950ywan
20233d2500723e5594f3e7c70896ffeeef32b9c950ywantypedef struct
21233d2500723e5594f3e7c70896ffeeef32b9c950ywan{
22233d2500723e5594f3e7c70896ffeeef32b9c950ywan    short row;
23233d2500723e5594f3e7c70896ffeeef32b9c950ywan    short col;
24233d2500723e5594f3e7c70896ffeeef32b9c950ywan} MV;
25233d2500723e5594f3e7c70896ffeeef32b9c950ywan
26233d2500723e5594f3e7c70896ffeeef32b9c950ywantypedef union int_mv
27233d2500723e5594f3e7c70896ffeeef32b9c950ywan{
28233d2500723e5594f3e7c70896ffeeef32b9c950ywan    uint32_t  as_int;
29233d2500723e5594f3e7c70896ffeeef32b9c950ywan    MV        as_mv;
30233d2500723e5594f3e7c70896ffeeef32b9c950ywan} int_mv;        /* facilitates faster equality tests and copies */
31233d2500723e5594f3e7c70896ffeeef32b9c950ywan
32233d2500723e5594f3e7c70896ffeeef32b9c950ywan#ifdef __cplusplus
33233d2500723e5594f3e7c70896ffeeef32b9c950ywan}  // extern "C"
34233d2500723e5594f3e7c70896ffeeef32b9c950ywan#endif
35233d2500723e5594f3e7c70896ffeeef32b9c950ywan
36233d2500723e5594f3e7c70896ffeeef32b9c950ywan#endif  // VP8_COMMON_MV_H_
37