Fork VP9 and VP10 codebase
[platform/upstream/libvpx.git] / vp10 / encoder / vp9_subexp.h
1 /*
2  *  Copyright (c) 2013 The WebM project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10
11
12 #ifndef VP9_ENCODER_VP9_SUBEXP_H_
13 #define VP9_ENCODER_VP9_SUBEXP_H_
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 #include "vpx_dsp/prob.h"
20
21 struct vpx_writer;
22
23 void vp10_write_prob_diff_update(struct vpx_writer *w,
24                                 vpx_prob newp, vpx_prob oldp);
25
26 void vp10_cond_prob_diff_update(struct vpx_writer *w, vpx_prob *oldp,
27                                const unsigned int ct[2]);
28
29 int vp10_prob_diff_update_savings_search(const unsigned int *ct,
30                                         vpx_prob oldp, vpx_prob *bestp,
31                                         vpx_prob upd);
32
33
34 int vp10_prob_diff_update_savings_search_model(const unsigned int *ct,
35                                               const vpx_prob *oldp,
36                                               vpx_prob *bestp,
37                                               vpx_prob upd,
38                                               int stepsize);
39
40 #ifdef __cplusplus
41 }  // extern "C"
42 #endif
43
44 #endif  // VP9_ENCODER_VP9_SUBEXP_H_