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