rk_venc_rc.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright 2015 Rockchip Electronics Co. LTD
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef __RK_VENC_RC_H__
  17. #define __RK_VENC_RC_H__
  18. #include "rk_type.h"
  19. #define MPP_ENC_MIN_BPS (SZ_1K)
  20. #define MPP_ENC_MAX_BPS (SZ_1M * 200)
  21. /* Rate control parameter */
  22. typedef enum MppEncRcMode_e {
  23. MPP_ENC_RC_MODE_VBR,
  24. MPP_ENC_RC_MODE_CBR,
  25. MPP_ENC_RC_MODE_FIXQP,
  26. MPP_ENC_RC_MODE_AVBR,
  27. MPP_ENC_RC_MODE_SMTRC,
  28. MPP_ENC_RC_MODE_BUTT
  29. } MppEncRcMode;
  30. typedef enum MppEncRcPriority_e {
  31. MPP_ENC_RC_BY_BITRATE_FIRST,
  32. MPP_ENC_RC_BY_FRM_SIZE_FIRST,
  33. MPP_ENC_RC_PRIORITY_BUTT
  34. } MppEncRcPriority;
  35. typedef enum MppEncRcDropFrmMode_e {
  36. MPP_ENC_RC_DROP_FRM_DISABLED,
  37. MPP_ENC_RC_DROP_FRM_NORMAL,
  38. MPP_ENC_RC_DROP_FRM_PSKIP,
  39. MPP_ENC_RC_DROP_FRM_BUTT
  40. } MppEncRcDropFrmMode;
  41. typedef enum MppEncRcSuperFrameMode_t {
  42. MPP_ENC_RC_SUPER_FRM_NONE,
  43. MPP_ENC_RC_SUPER_FRM_DROP,
  44. MPP_ENC_RC_SUPER_FRM_REENC,
  45. MPP_ENC_RC_SUPER_FRM_BUTT
  46. } MppEncRcSuperFrameMode;
  47. typedef enum MppEncRcGopMode_e {
  48. MPP_ENC_RC_NORMAL_P,
  49. MPP_ENC_RC_SMART_P,
  50. MPP_ENC_RC_GOP_MODE_BUTT,
  51. } MppEncRcGopMode;
  52. typedef enum MppEncRcIntraRefreshMode_e {
  53. MPP_ENC_RC_INTRA_REFRESH_ROW = 0,
  54. MPP_ENC_RC_INTRA_REFRESH_COL,
  55. MPP_ENC_RC_INTRA_REFRESH_BUTT
  56. } MppEncRcRefreshMode;
  57. #endif /*__RK_VENC_RC_H__*/