vp9_rdopt.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. void vp9_rd_pick_inter_mode_sb(struct VP9_COMP *cpi,
  26. struct TileDataEnc *tile_data,
  27. struct macroblock *x, int mi_row, int mi_col,
  28. struct RD_COST *rd_cost, BLOCK_SIZE bsize,
  29. PICK_MODE_CONTEXT *ctx, int64_t best_rd_so_far);
  30. void vp9_rd_pick_inter_mode_sb_seg_skip(
  31. struct VP9_COMP *cpi, struct TileDataEnc *tile_data, struct macroblock *x,
  32. struct RD_COST *rd_cost, BLOCK_SIZE bsize, PICK_MODE_CONTEXT *ctx,
  33. int64_t best_rd_so_far);
  34. int vp9_internal_image_edge(struct VP9_COMP *cpi);
  35. int vp9_active_h_edge(struct VP9_COMP *cpi, int mi_row, int mi_step);
  36. int vp9_active_v_edge(struct VP9_COMP *cpi, int mi_col, int mi_step);
  37. int vp9_active_edge_sb(struct VP9_COMP *cpi, int mi_row, int mi_col);
  38. void vp9_rd_pick_inter_mode_sub8x8(struct VP9_COMP *cpi,
  39. struct TileDataEnc *tile_data,
  40. struct macroblock *x, int mi_row, int mi_col,
  41. struct RD_COST *rd_cost, BLOCK_SIZE bsize,
  42. PICK_MODE_CONTEXT *ctx,
  43. int64_t best_rd_so_far);
  44. #ifdef __cplusplus
  45. } // extern "C"
  46. #endif
  47. #endif // VP9_ENCODER_VP9_RDOPT_H_