blob: 60aa7df2d2fe5be021e1061adee445ffc799133d [file] [log] [blame]
Yaowu Xuc27fc142016-08-22 16:08:15 -07001/*
Yaowu Xu2ab7ff02016-09-02 12:04:54 -07002 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Yaowu Xuc27fc142016-08-22 16:08:15 -07003 *
Yaowu Xu2ab7ff02016-09-02 12:04:54 -07004 * This source code is subject to the terms of the BSD 2 Clause License and
5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6 * was not distributed with this source code in the LICENSE file, you can
7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8 * Media Patent License 1.0 was not distributed with this source code in the
9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
Yaowu Xuc27fc142016-08-22 16:08:15 -070010 */
11
Yaowu Xuf883b422016-08-30 14:01:10 -070012#ifndef AV1_DECODER_DSUBEXP_H_
13#define AV1_DECODER_DSUBEXP_H_
Yaowu Xuc27fc142016-08-22 16:08:15 -070014
Alex Converse4fb213f2016-09-26 13:09:09 -070015#include "aom_dsp/bitreader.h"
Yaowu Xuc27fc142016-08-22 16:08:15 -070016
17#ifdef __cplusplus
18extern "C" {
19#endif
20
Michael Bebenita6048d052016-08-25 14:40:54 -070021#if CONFIG_ACCOUNTING
22#define av1_diff_update_prob(r, p, str) av1_diff_update_prob_(r, p, str)
23#else
24#define av1_diff_update_prob(r, p, str) av1_diff_update_prob_(r, p)
25#endif
26
27void av1_diff_update_prob_(aom_reader *r, aom_prob *p ACCT_STR_PARAM);
Yaowu Xuc27fc142016-08-22 16:08:15 -070028
29#ifdef __cplusplus
30} // extern "C"
31#endif
Michael Bebenita6048d052016-08-25 14:40:54 -070032#if CONFIG_GLOBAL_MOTION
Yaowu Xuc27fc142016-08-22 16:08:15 -070033// mag_bits is number of bits for magnitude. The alphabet is of size
34// 2 * 2^mag_bits + 1, symmetric around 0, where one bit is used to
35// indicate 0 or non-zero, mag_bits bits are used to indicate magnitide
36// and 1 more bit for the sign if non-zero.
Yaowu Xuf883b422016-08-30 14:01:10 -070037int aom_read_primitive_symmetric(aom_reader *r, unsigned int mag_bits);
Michael Bebenita6048d052016-08-25 14:40:54 -070038#endif // CONFIG_GLOBAL_MOTION
Yaowu Xuf883b422016-08-30 14:01:10 -070039#endif // AV1_DECODER_DSUBEXP_H_