190d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber/*
2f71323e297a928af368937089d3ed71239786f86Andreas Huber *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
390d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber *
4f71323e297a928af368937089d3ed71239786f86Andreas Huber *  Use of this source code is governed by a BSD-style license
5f71323e297a928af368937089d3ed71239786f86Andreas Huber *  that can be found in the LICENSE file in the root of the source
6f71323e297a928af368937089d3ed71239786f86Andreas Huber *  tree. An additional intellectual property rights grant can be found
7f71323e297a928af368937089d3ed71239786f86Andreas Huber *  in the file PATENTS.  All contributing project authors may
8f71323e297a928af368937089d3ed71239786f86Andreas Huber *  be found in the AUTHORS file in the root of the source tree.
990d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber */
1090d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber
1190d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber
12b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#ifndef VP8_COMMON_MV_H_
13b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define VP8_COMMON_MV_H_
141b362b15af34006e6a11974088a46d42b903418eJohann#include "vpx/vpx_integer.h"
1590d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber
16b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#ifdef __cplusplus
17b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianextern "C" {
18b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#endif
19b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
2090d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Hubertypedef struct
2190d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber{
2290d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber    short row;
2390d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber    short col;
2490d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber} MV;
2590d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber
261b362b15af34006e6a11974088a46d42b903418eJohanntypedef union int_mv
271b362b15af34006e6a11974088a46d42b903418eJohann{
281b362b15af34006e6a11974088a46d42b903418eJohann    uint32_t  as_int;
291b362b15af34006e6a11974088a46d42b903418eJohann    MV        as_mv;
301b362b15af34006e6a11974088a46d42b903418eJohann} int_mv;        /* facilitates faster equality tests and copies */
311b362b15af34006e6a11974088a46d42b903418eJohann
32b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#ifdef __cplusplus
33b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian}  // extern "C"
3490d3ed91ae9228e1c8bab561b6138d4cb8c1e4fdAndreas Huber#endif
35b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
36b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#endif  // VP8_COMMON_MV_H_
37