vp9_subexp.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef VP9_ENCODER_VP9_SUBEXP_H_
  11. #define VP9_ENCODER_VP9_SUBEXP_H_
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #include "vpx_dsp/prob.h"
  16. struct vpx_writer;
  17. void vp9_write_prob_diff_update(struct vpx_writer *w, vpx_prob newp,
  18. vpx_prob oldp);
  19. void vp9_cond_prob_diff_update(struct vpx_writer *w, vpx_prob *oldp,
  20. const unsigned int ct[2]);
  21. int vp9_prob_diff_update_savings_search(const unsigned int *ct, vpx_prob oldp,
  22. vpx_prob *bestp, vpx_prob upd);
  23. int vp9_prob_diff_update_savings_search_model(const unsigned int *ct,
  24. const vpx_prob oldp,
  25. vpx_prob *bestp, vpx_prob upd,
  26. int stepsize);
  27. #ifdef __cplusplus
  28. } // extern "C"
  29. #endif
  30. #endif // VP9_ENCODER_VP9_SUBEXP_H_