detokenize.h 1.31 KB
Newer Older
Jingning Han's avatar
Jingning Han committed
1
/*
Yaowu Xu's avatar
Yaowu Xu committed
2
 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Jingning Han's avatar
Jingning Han committed
3
 *
Yaowu Xu's avatar
Yaowu Xu committed
4
5
6
7
8
9
 * This source code is subject to the terms of the BSD 2 Clause License and
 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
 * was not distributed with this source code in the LICENSE file, you can
 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
 * Media Patent License 1.0 was not distributed with this source code in the
 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
Jingning Han's avatar
Jingning Han committed
10
11
 */

Yaowu Xu's avatar
Yaowu Xu committed
12
13
#ifndef AV1_DECODER_DETOKENIZE_H_
#define AV1_DECODER_DETOKENIZE_H_
Jingning Han's avatar
Jingning Han committed
14

15
#include "av1/decoder/decoder.h"
Alex Converse's avatar
Alex Converse committed
16
17
18
#if CONFIG_ANS
#include "aom_dsp/ans.h"
#endif  // CONFIG_ANS
19
#include "av1/common/scan.h"
Jingning Han's avatar
Jingning Han committed
20
21
22
23
24

#ifdef __cplusplus
extern "C" {
#endif

25
#if CONFIG_PALETTE
Yaowu Xu's avatar
Yaowu Xu committed
26
void av1_decode_palette_tokens(MACROBLOCKD *const xd, int plane, aom_reader *r);
27
28
#endif  // CONFIG_PALETTE

Yaowu Xu's avatar
Yaowu Xu committed
29
int av1_decode_block_tokens(MACROBLOCKD *const xd, int plane,
30
                            const SCAN_ORDER *sc, int x, int y, TX_SIZE tx_size,
Yaowu Xu's avatar
Yaowu Xu committed
31
                            TX_TYPE tx_type,
Alex Converse's avatar
Alex Converse committed
32
#if CONFIG_ANS
Yaowu Xu's avatar
Yaowu Xu committed
33
                            struct AnsDecoder *const r,
Alex Converse's avatar
Alex Converse committed
34
#else
Yaowu Xu's avatar
Yaowu Xu committed
35
                            aom_reader *r,
Alex Converse's avatar
Alex Converse committed
36
#endif  // CONFIG_ANS
Yaowu Xu's avatar
Yaowu Xu committed
37
                            int seg_id);
Jingning Han's avatar
Jingning Han committed
38
39
40
41
42

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

Yaowu Xu's avatar
Yaowu Xu committed
43
#endif  // AV1_DECODER_DETOKENIZE_H_