chromium/third_party/libvpx/source/libvpx/vp9/common/vp9_entropymv.h

/*
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#ifndef VPX_VP9_COMMON_VP9_ENTROPYMV_H_
#define VPX_VP9_COMMON_VP9_ENTROPYMV_H_

#include "./vpx_config.h"

#include "vpx_dsp/prob.h"

#include "vp9/common/vp9_mv.h"

#ifdef __cplusplus
extern "C" {
#endif

struct VP9Common;

void vp9_init_mv_probs(struct VP9Common *cm);

void vp9_adapt_mv_probs(struct VP9Common *cm, int allow_hp);

static INLINE int use_mv_hp(const MV *ref) {}

#define MV_UPDATE_PROB

/* Symbols for coding which components are zero jointly */
#define MV_JOINTS
MV_JOINT_TYPE;

static INLINE int mv_joint_vertical(MV_JOINT_TYPE type) {}

static INLINE int mv_joint_horizontal(MV_JOINT_TYPE type) {}

/* Symbols for coding magnitude class of nonzero components */
#define MV_CLASSES
MV_CLASS_TYPE;

#define CLASS0_BITS
#define CLASS0_SIZE
#define MV_OFFSET_BITS
#define MV_FP_SIZE

#define MV_MAX_BITS
#define MV_MAX
#define MV_VALS

#define MV_IN_USE_BITS
#define MV_UPP
#define MV_LOW

extern const vpx_tree_index vp9_mv_joint_tree[];
extern const vpx_tree_index vp9_mv_class_tree[];
extern const vpx_tree_index vp9_mv_class0_tree[];
extern const vpx_tree_index vp9_mv_fp_tree[];

nmv_component;

nmv_context;

static INLINE MV_JOINT_TYPE vp9_get_mv_joint(const MV *mv) {}

MV_CLASS_TYPE vp9_get_mv_class(int z, int *offset);

nmv_component_counts;

nmv_context_counts;

void vp9_inc_mv(const MV *mv, nmv_context_counts *counts);

#ifdef __cplusplus
}  // extern "C"
#endif

#endif  // VPX_VP9_COMMON_VP9_ENTROPYMV_H_