vp9_encodeframe.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright (c) 2010 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_ENCODEFRAME_H_
  11. #define VP9_ENCODER_VP9_ENCODEFRAME_H_
  12. #include "vpx/vpx_integer.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. struct macroblock;
  17. struct yv12_buffer_config;
  18. struct VP9_COMP;
  19. struct ThreadData;
  20. // Constants used in SOURCE_VAR_BASED_PARTITION
  21. #define VAR_HIST_MAX_BG_VAR 1000
  22. #define VAR_HIST_FACTOR 10
  23. #define VAR_HIST_BINS (VAR_HIST_MAX_BG_VAR / VAR_HIST_FACTOR + 1)
  24. #define VAR_HIST_LARGE_CUT_OFF 75
  25. #define VAR_HIST_SMALL_CUT_OFF 45
  26. void vp9_setup_src_planes(struct macroblock *x,
  27. const struct yv12_buffer_config *src,
  28. int mi_row, int mi_col);
  29. void vp9_encode_frame(struct VP9_COMP *cpi);
  30. void vp9_init_tile_data(struct VP9_COMP *cpi);
  31. void vp9_encode_tile(struct VP9_COMP *cpi, struct ThreadData *td,
  32. int tile_row, int tile_col);
  33. void vp9_set_variance_partition_thresholds(struct VP9_COMP *cpi, int q);
  34. #ifdef __cplusplus
  35. } // extern "C"
  36. #endif
  37. #endif // VP9_ENCODER_VP9_ENCODEFRAME_H_