2013-06-29 11:50:45 -07:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2013-12-15 18:00:43 -08:00
|
|
|
#ifndef VP9_ENCODER_VP9_SUBEXP_H_
|
|
|
|
#define VP9_ENCODER_VP9_SUBEXP_H_
|
2013-06-29 11:50:45 -07:00
|
|
|
|
2014-01-18 12:16:11 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-07-17 14:09:05 -07:00
|
|
|
#include "vpx_dsp/prob.h"
|
2015-05-14 20:33:48 -07:00
|
|
|
|
2015-07-20 14:13:38 -07:00
|
|
|
struct vpx_writer;
|
2015-05-14 20:33:48 -07:00
|
|
|
|
2015-07-20 14:13:38 -07:00
|
|
|
void vp9_write_prob_diff_update(struct vpx_writer *w,
|
2015-07-20 13:49:15 -07:00
|
|
|
vpx_prob newp, vpx_prob oldp);
|
2013-06-29 11:50:45 -07:00
|
|
|
|
2015-07-20 14:13:38 -07:00
|
|
|
void vp9_cond_prob_diff_update(struct vpx_writer *w, vpx_prob *oldp,
|
2015-05-14 20:33:48 -07:00
|
|
|
const unsigned int ct[2]);
|
2013-06-29 11:50:45 -07:00
|
|
|
|
|
|
|
int vp9_prob_diff_update_savings_search(const unsigned int *ct,
|
2015-07-20 13:49:15 -07:00
|
|
|
vpx_prob oldp, vpx_prob *bestp,
|
|
|
|
vpx_prob upd);
|
2013-06-29 11:50:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
int vp9_prob_diff_update_savings_search_model(const unsigned int *ct,
|
2016-06-08 22:55:53 -07:00
|
|
|
const vpx_prob oldp,
|
2015-07-20 13:49:15 -07:00
|
|
|
vpx_prob *bestp,
|
|
|
|
vpx_prob upd,
|
2014-12-02 18:16:06 -08:00
|
|
|
int stepsize);
|
2013-06-29 11:50:45 -07:00
|
|
|
|
2014-01-18 12:16:11 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
|
|
|
|
2013-12-15 18:00:43 -08:00
|
|
|
#endif // VP9_ENCODER_VP9_SUBEXP_H_
|