chromium/third_party/libaom/source/libaom/aom_dsp/prob.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_AOM_DSP_PROB_H_
#define AOM_AOM_DSP_PROB_H_

#include <assert.h>
#include <stdio.h>

#include "config/aom_config.h"

#include "aom_dsp/aom_dsp_common.h"
#include "aom_dsp/entcode.h"
#include "aom_ports/bitops.h"
#include "aom_ports/mem.h"

#ifdef __cplusplus
extern "C" {
#endif

aom_cdf_prob;

#define CDF_SIZE(x)
#define CDF_PROB_BITS
#define CDF_PROB_TOP
/*The value stored in an iCDF is CDF_PROB_TOP minus the actual cumulative
  probability (an "inverse" CDF).
  This function converts from one representation to the other (and is its own
  inverse).*/
#define AOM_ICDF(x)

#define AOM_CDF2(a0)
#define AOM_CDF3(a0, a1)
#define AOM_CDF4(a0, a1, a2)
#define AOM_CDF5(a0, a1, a2, a3)
#define AOM_CDF6(a0, a1, a2, a3, a4)
#define AOM_CDF7(a0, a1, a2, a3, a4, a5)
#define AOM_CDF8(a0, a1, a2, a3, a4, a5, a6)
#define AOM_CDF9(a0, a1, a2, a3, a4, a5, a6, a7)
#define AOM_CDF10(a0, a1, a2, a3, a4, a5, a6, a7, a8)
#define AOM_CDF11(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9)
#define AOM_CDF12(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
#define AOM_CDF13(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11)
#define AOM_CDF14(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12)
#define AOM_CDF15(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13)
#define AOM_CDF16(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, \
                  a14)

static inline uint8_t get_prob(unsigned int num, unsigned int den) {}

static inline void update_cdf(aom_cdf_prob *cdf, int8_t val, int nsymbs) {}

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

#endif  // AOM_AOM_DSP_PROB_H_