rk_venc_cfg.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_CFG_H__
  17. #define __RK_VENC_CFG_H__
  18. #include "rk_type.h"
  19. #include "mpp_err.h"
  20. typedef void* MppEncCfg;
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. MPP_RET mpp_enc_cfg_init(MppEncCfg *cfg);
  25. MPP_RET mpp_enc_cfg_deinit(MppEncCfg cfg);
  26. MPP_RET mpp_enc_cfg_set_s32(MppEncCfg cfg, const char *name, RK_S32 val);
  27. MPP_RET mpp_enc_cfg_set_u32(MppEncCfg cfg, const char *name, RK_U32 val);
  28. MPP_RET mpp_enc_cfg_set_s64(MppEncCfg cfg, const char *name, RK_S64 val);
  29. MPP_RET mpp_enc_cfg_set_u64(MppEncCfg cfg, const char *name, RK_U64 val);
  30. MPP_RET mpp_enc_cfg_set_ptr(MppEncCfg cfg, const char *name, void *val);
  31. MPP_RET mpp_enc_cfg_set_st(MppEncCfg cfg, const char *name, void *val);
  32. MPP_RET mpp_enc_cfg_get_s32(MppEncCfg cfg, const char *name, RK_S32 *val);
  33. MPP_RET mpp_enc_cfg_get_u32(MppEncCfg cfg, const char *name, RK_U32 *val);
  34. MPP_RET mpp_enc_cfg_get_s64(MppEncCfg cfg, const char *name, RK_S64 *val);
  35. MPP_RET mpp_enc_cfg_get_u64(MppEncCfg cfg, const char *name, RK_U64 *val);
  36. MPP_RET mpp_enc_cfg_get_ptr(MppEncCfg cfg, const char *name, void **val);
  37. MPP_RET mpp_enc_cfg_get_st(MppEncCfg cfg, const char *name, void *val);
  38. void mpp_enc_cfg_show(void);
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif /*__RK_VENC_CFG_H__*/