1
0

quant_params.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*!
  2. ***************************************************************************
  3. * \file
  4. * quant_params.h
  5. *
  6. * \author
  7. * Alexis Michael Tourapis
  8. *
  9. * \brief
  10. * Headerfile for Quantization parameters
  11. **************************************************************************
  12. */
  13. #ifndef _QUANT_PARAMS_H_
  14. #define _QUANT_PARAMS_H_
  15. struct level_quant_params {
  16. int OffsetComp;
  17. int ScaleComp;
  18. int InvScaleComp;
  19. };
  20. typedef struct level_quant_params LevelQuantParams;
  21. struct quant_params {
  22. int AdaptRndWeight;
  23. int AdaptRndCrWeight;
  24. LevelQuantParams *****q_params_4x4;
  25. LevelQuantParams *****q_params_8x8;
  26. int *qp_per_matrix;
  27. int *qp_rem_matrix;
  28. short **OffsetList4x4input;
  29. short **OffsetList8x8input;
  30. short ***OffsetList4x4;
  31. short ***OffsetList8x8;
  32. };
  33. struct quant_methods {
  34. int block_y;
  35. int block_x;
  36. int qp;
  37. int* ACLevel;
  38. int* ACRun;
  39. int **fadjust;
  40. LevelQuantParams **q_params;
  41. int *coeff_cost;
  42. const byte (*pos_scan)[2];
  43. const byte *c_cost;
  44. };
  45. #endif