vp9_rdopt.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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_RDOPT_H_
  11. #define VP9_ENCODER_VP9_RDOPT_H_
  12. #include "vp9/common/vp9_blockd.h"
  13. #include "vp9/encoder/vp9_block.h"
  14. #include "vp9/encoder/vp9_context_tree.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. struct TileInfo;
  19. struct VP9_COMP;
  20. struct macroblock;
  21. struct RD_COST;
  22. void vp9_rd_pick_intra_mode_sb(struct VP9_COMP *cpi, struct macroblock *x,
  23. struct RD_COST *rd_cost, BLOCK_SIZE bsize,
  24. PICK_MODE_CONTEXT *ctx, int64_t best_rd);
  25. unsigned int vp9_get_sby_perpixel_variance(VP9_COMP *cpi,
  26. const struct buf_2d *ref,
  27. BLOCK_SIZE bs);
  28. #if CONFIG_VP9_HIGHBITDEPTH
  29. unsigned int vp9_high_get_sby_perpixel_variance(VP9_COMP *cpi,
  30. const struct buf_2d *ref,
  31. BLOCK_SIZE bs, int bd);
  32. #endif
  33. void vp9_rd_pick_inter_mode_sb(struct VP9_COMP *cpi,
  34. struct TileDataEnc *tile_data,
  35. struct macroblock *x,
  36. int mi_row, int mi_col,
  37. struct RD_COST *rd_cost,
  38. BLOCK_SIZE bsize, PICK_MODE_CONTEXT *ctx,
  39. int64_t best_rd_so_far);
  40. void vp9_rd_pick_inter_mode_sb_seg_skip(struct VP9_COMP *cpi,
  41. struct TileDataEnc *tile_data,
  42. struct macroblock *x,
  43. struct RD_COST *rd_cost,
  44. BLOCK_SIZE bsize,
  45. PICK_MODE_CONTEXT *ctx,
  46. int64_t best_rd_so_far);
  47. void vp9_rd_pick_inter_mode_sub8x8(struct VP9_COMP *cpi,
  48. struct TileDataEnc *tile_data,
  49. struct macroblock *x,
  50. int mi_row, int mi_col,
  51. struct RD_COST *rd_cost,
  52. BLOCK_SIZE bsize, PICK_MODE_CONTEXT *ctx,
  53. int64_t best_rd_so_far);
  54. #ifdef __cplusplus
  55. } // extern "C"
  56. #endif
  57. #endif // VP9_ENCODER_VP9_RDOPT_H_