Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 1 | /* |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 2 | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 3 | * |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 4 | * 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 Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 10 | */ |
| 11 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 12 | #ifndef AV1_DECODER_DSUBEXP_H_ |
| 13 | #define AV1_DECODER_DSUBEXP_H_ |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 14 | |
Alex Converse | 4fb213f | 2016-09-26 13:09:09 -0700 | [diff] [blame] | 15 | #include "aom_dsp/bitreader.h" |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
Michael Bebenita | 6048d05 | 2016-08-25 14:40:54 -0700 | [diff] [blame] | 21 | #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 | |
| 27 | void av1_diff_update_prob_(aom_reader *r, aom_prob *p ACCT_STR_PARAM); |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 28 | |
| 29 | #ifdef __cplusplus |
| 30 | } // extern "C" |
| 31 | #endif |
Michael Bebenita | 6048d05 | 2016-08-25 14:40:54 -0700 | [diff] [blame] | 32 | #if CONFIG_GLOBAL_MOTION |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 33 | // 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 Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 37 | int aom_read_primitive_symmetric(aom_reader *r, unsigned int mag_bits); |
Michael Bebenita | 6048d05 | 2016-08-25 14:40:54 -0700 | [diff] [blame] | 38 | #endif // CONFIG_GLOBAL_MOTION |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 39 | #endif // AV1_DECODER_DSUBEXP_H_ |