]> granicus.if.org Git - libvpx/blob - vp10/encoder/subexp.h
Merge changes from topic 'rm-loopfilter-count-param'
[libvpx] / vp10 / encoder / 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 VP10_ENCODER_SUBEXP_H_
13 #define VP10_ENCODER_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 int vp10_cond_prob_diff_update_savings(vpx_prob *oldp,
41                                        const unsigned int ct[2]);
42 #ifdef __cplusplus
43 }  // extern "C"
44 #endif
45
46 #endif  // VP10_ENCODER_SUBEXP_H_