s5p_mfc_opr_v6.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h
  3. *
  4. * Header file for Samsung MFC (Multi Function Codec - FIMV) driver
  5. * Contains declarations of hw related functions.
  6. *
  7. * Copyright (c) 2012 Samsung Electronics Co., Ltd.
  8. * http://www.samsung.com/
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #ifndef S5P_MFC_OPR_V6_H_
  15. #define S5P_MFC_OPR_V6_H_
  16. #include "s5p_mfc_common.h"
  17. #include "s5p_mfc_opr.h"
  18. #define MFC_CTRL_MODE_CUSTOM MFC_CTRL_MODE_SFR
  19. #define MB_WIDTH(x_size) DIV_ROUND_UP(x_size, 16)
  20. #define MB_HEIGHT(y_size) DIV_ROUND_UP(y_size, 16)
  21. #define S5P_MFC_DEC_MV_SIZE_V6(x, y) (MB_WIDTH(x) * \
  22. (((MB_HEIGHT(y)+1)/2)*2) * 64 + 128)
  23. /* Definition */
  24. #define ENC_MULTI_SLICE_MB_MAX ((1 << 30) - 1)
  25. #define ENC_MULTI_SLICE_BIT_MIN 2800
  26. #define ENC_INTRA_REFRESH_MB_MAX ((1 << 18) - 1)
  27. #define ENC_VBV_BUF_SIZE_MAX ((1 << 30) - 1)
  28. #define ENC_H264_LOOP_FILTER_AB_MIN -12
  29. #define ENC_H264_LOOP_FILTER_AB_MAX 12
  30. #define ENC_H264_RC_FRAME_RATE_MAX ((1 << 16) - 1)
  31. #define ENC_H263_RC_FRAME_RATE_MAX ((1 << 16) - 1)
  32. #define ENC_H264_PROFILE_MAX 3
  33. #define ENC_H264_LEVEL_MAX 42
  34. #define ENC_MPEG4_VOP_TIME_RES_MAX ((1 << 16) - 1)
  35. #define FRAME_DELTA_H264_H263 1
  36. #define TIGHT_CBR_MAX 10
  37. struct s5p_mfc_hw_ops *s5p_mfc_init_hw_ops_v6(void);
  38. const struct s5p_mfc_regs *s5p_mfc_init_regs_v6_plus(struct s5p_mfc_dev *dev);
  39. #endif /* S5P_MFC_OPR_V6_H_ */