detokenize.h 1.33 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
#if !CONFIG_PVQ || CONFIG_VAR_TX
16
#include "av1/decoder/decoder.h"
Alex Converse's avatar
Alex Converse committed
17 18 19
#if CONFIG_ANS
#include "aom_dsp/ans.h"
#endif  // CONFIG_ANS
20
#include "av1/common/scan.h"
21
#endif  // !CONFIG_PVQ
Jingning Han's avatar
Jingning Han committed
22 23 24 25 26

#ifdef __cplusplus
extern "C" {
#endif

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

31
#if !CONFIG_PVQ || CONFIG_VAR_TX
32
int av1_decode_block_tokens(AV1_COMMON *cm, MACROBLOCKD *const xd, int plane,
33
                            const SCAN_ORDER *sc, int x, int y, TX_SIZE tx_size,
34
                            TX_TYPE tx_type, int16_t *max_scan_line,
35
                            aom_reader *r, int seg_id);
36
#endif  // !CONFIG_PVQ
Jingning Han's avatar
Jingning Han committed
37 38 39
#ifdef __cplusplus
}  // extern "C"
#endif
Yaowu Xu's avatar
Yaowu Xu committed
40
#endif  // AV1_DECODER_DETOKENIZE_H_