rk_vdec_cfg.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright 2020 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_VDEC_CFG_H__
  17. #define __RK_VDEC_CFG_H__
  18. #include "rk_type.h"
  19. #include "mpp_err.h"
  20. typedef void* MppDecCfg;
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. MPP_RET mpp_dec_cfg_init(MppDecCfg *cfg);
  25. MPP_RET mpp_dec_cfg_deinit(MppDecCfg cfg);
  26. MPP_RET mpp_dec_cfg_set_s32(MppDecCfg cfg, const char *name, RK_S32 val);
  27. MPP_RET mpp_dec_cfg_set_u32(MppDecCfg cfg, const char *name, RK_U32 val);
  28. MPP_RET mpp_dec_cfg_set_s64(MppDecCfg cfg, const char *name, RK_S64 val);
  29. MPP_RET mpp_dec_cfg_set_u64(MppDecCfg cfg, const char *name, RK_U64 val);
  30. MPP_RET mpp_dec_cfg_set_ptr(MppDecCfg cfg, const char *name, void *val);
  31. MPP_RET mpp_dec_cfg_get_s32(MppDecCfg cfg, const char *name, RK_S32 *val);
  32. MPP_RET mpp_dec_cfg_get_u32(MppDecCfg cfg, const char *name, RK_U32 *val);
  33. MPP_RET mpp_dec_cfg_get_s64(MppDecCfg cfg, const char *name, RK_S64 *val);
  34. MPP_RET mpp_dec_cfg_get_u64(MppDecCfg cfg, const char *name, RK_U64 *val);
  35. MPP_RET mpp_dec_cfg_get_ptr(MppDecCfg cfg, const char *name, void **val);
  36. void mpp_dec_cfg_show(void);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif /*__RK_VDEC_CFG_H__*/