vp9_rdopt.h 2.3 KB

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