2
0

vp9_encodemb.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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_ENCODEMB_H_
  11. #define 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. };
  24. int vp9_optimize_b(MACROBLOCK *mb, int plane, int block, TX_SIZE tx_size,
  25. int ctx);
  26. void vp9_encode_sb(MACROBLOCK *x, BLOCK_SIZE bsize);
  27. void vp9_encode_sby_pass1(MACROBLOCK *x, BLOCK_SIZE bsize);
  28. void vp9_xform_quant_fp(MACROBLOCK *x, int plane, int block, int row, int col,
  29. BLOCK_SIZE plane_bsize, TX_SIZE tx_size);
  30. void vp9_xform_quant_dc(MACROBLOCK *x, int plane, int block, int row, int col,
  31. BLOCK_SIZE plane_bsize, TX_SIZE tx_size);
  32. void vp9_xform_quant(MACROBLOCK *x, int plane, int block, int row, int col,
  33. BLOCK_SIZE plane_bsize, TX_SIZE tx_size);
  34. void vp9_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane);
  35. void vp9_encode_block_intra(int plane, int block, int row, int col,
  36. BLOCK_SIZE plane_bsize, TX_SIZE tx_size, void *arg);
  37. void vp9_encode_intra_block_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane,
  38. int enable_optimize_b);
  39. #ifdef __cplusplus
  40. } // extern "C"
  41. #endif
  42. #endif // VP9_ENCODER_VP9_ENCODEMB_H_