chromium/third_party/libaom/source/libaom/av1/common/entropy.h

/*
 * Copyright (c) 2016, Alliance for Open Media. All rights reserved.
 *
 * 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.
 */

#ifndef AOM_AV1_COMMON_ENTROPY_H_
#define AOM_AV1_COMMON_ENTROPY_H_

#include "config/aom_config.h"

#include "aom/aom_integer.h"
#include "aom_dsp/prob.h"

#include "av1/common/common.h"
#include "av1/common/common_data.h"
#include "av1/common/enums.h"

#ifdef __cplusplus
extern "C" {
#endif

#define TOKEN_CDF_Q_CTXS

#define TXB_SKIP_CONTEXTS

#define EOB_COEF_CONTEXTS

#define SIG_COEF_CONTEXTS_2D
#define SIG_COEF_CONTEXTS_1D
#define SIG_COEF_CONTEXTS_EOB
#define SIG_COEF_CONTEXTS

#define COEFF_BASE_CONTEXTS
#define DC_SIGN_CONTEXTS

#define BR_TMP_OFFSET
#define BR_REF_CAT
#define LEVEL_CONTEXTS

#define NUM_BASE_LEVELS

#define BR_CDF_SIZE
#define COEFF_BASE_RANGE

#define COEFF_CONTEXT_BITS
#define COEFF_CONTEXT_MASK
#define MAX_BASE_BR_RANGE

#define BASE_CONTEXT_POSITION_NUM

enum {} UENUM1BYTE();

#define DCT_MAX_VALUE
#define DCT_MAX_VALUE_HIGH10
#define DCT_MAX_VALUE_HIGH12

/* Coefficients are predicted via a 3-dimensional probability table indexed on
 * REF_TYPES, COEF_BANDS and COEF_CONTEXTS. */
#define REF_TYPES

struct AV1Common;
struct frame_contexts;
void av1_reset_cdf_symbol_counters(struct frame_contexts *fc);
void av1_default_coef_probs(struct AV1Common *cm);
void av1_init_mode_probs(struct frame_contexts *fc);

struct frame_contexts;

ENTROPY_CONTEXT;

static inline int combine_entropy_contexts(ENTROPY_CONTEXT a,
                                           ENTROPY_CONTEXT b) {}

static inline int get_entropy_context(TX_SIZE tx_size, const ENTROPY_CONTEXT *a,
                                      const ENTROPY_CONTEXT *l) {}

static inline TX_SIZE get_txsize_entropy_ctx(TX_SIZE txsize) {}

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

#endif  // AOM_AV1_COMMON_ENTROPY_H_