vp9_encodemb.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_ENCODEMB_H_
  11. #define VPX_VP9_ENCODER_VP9_ENCODEMB_H_
  12. #include "./vpx_config.h"
  13. #include "vp9/encoder/vp9_block.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. struct encode_b_args {
  18. MACROBLOCK *x;
  19. int enable_coeff_opt;
  20. ENTROPY_CONTEXT *ta;
  21. ENTROPY_CONTEXT *tl;
  22. int8_t *skip;
  23. #if CONFIG_MISMATCH_DEBUG
  24. int mi_row;
  25. int mi_col;
  26. int output_enabled;
  27. #endif
  28. };
  29. int vp9_optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size,
  30. int ctx);
  31. void vp9_encode_sb(MACROBLOCK *x, BLOCK_SIZE bsize, int mi_row, int mi_col,
  32. int output_enabled);
  33. void vp9_encode_sby_pass1(MACROBLOCK *x, BLOCK_SIZE bsize);
  34. void vp9_xform_quant_fp(MACROBLOCK *x, int plane, int block, int row, int col,
  35. BLOCK_SIZE plane_bsize, TX_SIZE tx_size);
  36. void vp9_xform_quant_dc(MACROBLOCK *x, int plane, int block, int row, int col,
  37. BLOCK_SIZE plane_bsize, TX_SIZE tx_size);
  38. void vp9_xform_quant(MACROBLOCK *x, int plane, int block, int row, int col,
  39. BLOCK_SIZE plane_bsize, TX_SIZE tx_size);
  40. void vp9_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane);
  41. void vp9_encode_block_intra(int plane, int block, int row, int col,
  42. BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg);
  43. void vp9_encode_intra_block_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane,
  44. int enable_optimize_b);
  45. #ifdef __cplusplus
  46. } // extern "C"
  47. #endif
  48. #endif // VPX_VP9_ENCODER_VP9_ENCODEMB_H_