dsubexp.h 1019 Bytes
Newer Older
Jingning Han's avatar
Jingning Han committed
1
2
3
4
5
6
7
8
9
10
11
/*
 *  Copyright (c) 2013 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.
 */


12
13
#ifndef VP10_DECODER_DSUBEXP_H_
#define VP10_DECODER_DSUBEXP_H_
Jingning Han's avatar
Jingning Han committed
14

15
#include "vp10/decoder/bitreader.h"
Jingning Han's avatar
Jingning Han committed
16
17
18
19
20

#ifdef __cplusplus
extern "C" {
#endif

21
void vp10_diff_update_prob(vp10_reader *r, vpx_prob* p);
Jingning Han's avatar
Jingning Han committed
22
23
24
25
26

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

27
28
29
30
31
// mag_bits is number of bits for magnitude. The alphabet is of size
// 2 * 2^mag_bits + 1, symmetric around 0, where one bit is used to
// indicate 0 or non-zero, mag_bits bits are used to indicate magnitide
// and 1 more bit for the sign if non-zero.
int vp10_read_primitive_symmetric(vp10_reader *r, unsigned int mag_bits);
32
#endif  // VP10_DECODER_DSUBEXP_H_