You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
2.1 KiB
36 lines
2.1 KiB
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd. 2020-2020. All rights reserved.
|
|
* Description: convert iapi layer struct to drv layer
|
|
* Author: sdk
|
|
* Create: 2020-04-03
|
|
*/
|
|
|
|
#ifndef __VENC_CONVERT_H__
|
|
#define __VENC_CONVERT_H__
|
|
|
|
#include "td_type.h"
|
|
#include "mpi_media_ext.h"
|
|
#include "drv_ioctl_venc.h"
|
|
#include "uapi_venc.h"
|
|
#include "mpi_venc.h"
|
|
|
|
td_void venc_get_drv_chn_create_attr(venc_ioctl_create *venc_chn_create, const uapi_venc_attr *attr);
|
|
td_void venc_convert_attr_user_to_drv(ext_venc_chan_info *drv_attr, const uapi_venc_attr *user_attr);
|
|
td_s32 venc_convert_stream_drv_to_user(uapi_venc_stream *user_stream, const venc_ioctl_acquire_stream *drv_stream);
|
|
td_s32 venc_convert_stream_user_to_drv(venc_ioctl_acquire_stream *acquire_stream, const uapi_venc_stream *user_stream);
|
|
td_void venc_convert_config_user_to_drv(ext_venc_chan_config *drv_config, const uapi_venc_config *user_config);
|
|
td_void venc_convert_config_drv_to_user(uapi_venc_config *user_config, const ext_venc_chan_config *drv_config);
|
|
td_s32 venc_convert_frame_user_to_drv(ext_drv_video_frame *drv_image, const uapi_video_frame_info *user_image);
|
|
td_s32 venc_convert_frame_drv_to_user(uapi_video_frame_info *iapi_image, const ext_drv_video_frame *drv_image);
|
|
td_void venc_convert_strategy_user_to_drv(venc_ioctl_drop_frame_strategy *venc_frm_drop_strategy,
|
|
const uapi_venc_frame_drop_strategy *frm_drop_param);
|
|
td_void venc_convert_strategy_drv_to_user(uapi_venc_frame_drop_strategy *frm_drop_param,
|
|
const venc_ioctl_drop_frame_strategy *venc_frm_drop_strategy);
|
|
td_void venc_convert_status_drv_to_user(uapi_venc_chan_status *user_status, const venc_ioctl_status *drv_status);
|
|
td_void venc_convert_attr_drv_to_user(uapi_venc_attr *user_attr, const ext_venc_chan_info *drv_attr);
|
|
td_void venc_convert_cap_drv_to_user(uapi_venc_cap *iapi_cap, const venc_ioctl_cap *drv_cap);
|
|
td_void venc_convert_rc_param_iapi_to_drv(ext_venc_rc_param *drv_rc_param, const uapi_venc_rc_param *iapi_rc_param);
|
|
td_void venc_convert_rc_param_drv_to_unf(uapi_venc_rc_param *iapi_rc_param, const ext_venc_rc_param *drv_rc_param);
|
|
|
|
#endif
|