/* * Copyright (c) 2021 Rockchip, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __RKADK_PARAM_MAP_H__ #define __RKADK_PARAM_MAP_H__ #include "rkadk_param.h" #include "rkadk_struct2ini.h" #ifdef __cplusplus extern "C" { #endif typedef struct { RKADK_U32 u32TableLen; RKADK_SI_CONFIG_MAP_S *pstMapTable; } RKADK_MAP_TABLE_CFG_S; typedef enum { RKADK_PARAM_SENSOR_MAP, RKADK_PARAM_REC_MAP, RKADK_PARAM_REC_MAIN_TIME_MAP, RKADK_PARAM_REC_MAIN_MAP, RKADK_PARAM_REC_MAIN_PARAM_MAP, RKADK_PARAM_REC_SUB_TIME_MAP, RKADK_PARAM_REC_SUB_MAP, RKADK_PARAM_REC_SUB_PARAM_MAP, RKADK_PARAM_PREVIEW_MAP, RKADK_PARAM_PREVIEW_PARAM_MAP, RKADK_PARAM_LIVE_MAP, RKADK_PARAM_LIVE_PARAM_MAP, RKADK_PARAM_PHOTO_MAP, RKADK_PARAM_VI0_MAP, RKADK_PARAM_VI1_MAP, RKADK_PARAM_VI2_MAP, RKADK_PARAM_VI3_MAP, RKADK_PARAM_DISP_MAP, RKADK_PARAM_THUMB_MAP, RKADK_PARAM_MAP_BUTT } RKADK_PARAM_MAP_TYPE_E; static RKADK_SI_CONFIG_MAP_S g_stVersionMapTable[] = { DEFINE_MAP(version, tagRKADK_PARAM_VERSION_S, string_e, version), }; /* common map table */ static RKADK_SI_CONFIG_MAP_S g_stCommCfgMapTable[] = { DEFINE_MAP(common, tagRKADK_PARAM_COMM_CFG_S, int_e, sensor_count), DEFINE_MAP(common, tagRKADK_PARAM_COMM_CFG_S, bool_e, rec_mute), DEFINE_MAP(common, tagRKADK_PARAM_COMM_CFG_S, int_e, speaker_volume), DEFINE_MAP(common, tagRKADK_PARAM_COMM_CFG_S, int_e, mic_volume), DEFINE_MAP(common, tagRKADK_PARAM_COMM_CFG_S, int_e, vpss_devcie), }; /* audio map table */ static RKADK_SI_CONFIG_MAP_S g_stAudioCfgMapTable[] = { DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, string_e, ai_audio_node), DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, int_e, ai_depth), DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, int_e, bit_width), DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, int_e, channels), DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, int_e, mic_type), DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, int_e, samplerate), DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, int_e, samples_per_frame), DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, int_e, bitrate), DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, int_e, vqe_mode), DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, string_e, vqe_config_path), DEFINE_MAP(audio, tagRKADK_PARAM_AUDIO_CFG_S, int_e, codec_type), }; /* sensor map table */ static RKADK_SI_CONFIG_MAP_S g_stSensorCfgMapTable[] = { DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, bool_e, used_isp), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, int_e, max_width), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, int_e, max_height), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, int_e, framerate), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, bool_e, flip), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, bool_e, mirror), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, bool_e, enable_wrap), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, int_e, wrap_buf_line), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, int_e, ldc), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, int_e, wdr), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, int_e, hdr), DEFINE_MAP(sensor, tagRKADK_PARAM_SENSOR_CFG_S, int_e, antifog), }; /* record map table */ static RKADK_SI_CONFIG_MAP_S g_stRecCfgMapTable[] = { DEFINE_MAP(record, tagRKADK_PARAM_REC_CFG_S, int_e, record_type), DEFINE_MAP(record, tagRKADK_PARAM_REC_CFG_S, int_e, file_type), DEFINE_MAP(record, tagRKADK_PARAM_REC_CFG_S, int_e, pre_record_time), DEFINE_MAP(record, tagRKADK_PARAM_REC_CFG_S, int_e, pre_record_mode), DEFINE_MAP(record, tagRKADK_PARAM_REC_CFG_S, int_e, lapse_multiple), DEFINE_MAP(record, tagRKADK_PARAM_REC_CFG_S, int_e, file_num), DEFINE_MAP(record, tagRKADK_PARAM_REC_CFG_S, bool_e, enable_audio), }; static RKADK_SI_CONFIG_MAP_S g_stRecTimeCfgMapTable_0[] = { DEFINE_MAP(record.0, tagRKADK_PARAM_REC_TIME_CFG_S, int_e, record_time), DEFINE_MAP(record.0, tagRKADK_PARAM_REC_TIME_CFG_S, int_e, splite_time), DEFINE_MAP(record.0, tagRKADK_PARAM_REC_TIME_CFG_S, int_e, lapse_interval), }; static RKADK_SI_CONFIG_MAP_S g_stRecCfgMapTable_0[] = { DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, max_width), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, max_height), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, width), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, height), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, bufsize), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, bitrate), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, framerate), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, gop), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, profile), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, codec_type), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, venc_chn), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, bool_e, enable_vpss), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, vpss_grp), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, int_e, vpss_chn), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, bool_e, post_aiisp), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_ATTR_S, string_e, rc_mode), }; static RKADK_SI_CONFIG_MAP_S g_stRecParamMapTable_0[] = { DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_PARAM_S, int_e, max_qp), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_PARAM_S, int_e, min_qp), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_PARAM_S, int_e, i_min_qp), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_PARAM_S, int_e, i_frame_min_qp), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_PARAM_S, int_e, frame_min_qp), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_PARAM_S, bool_e, full_range), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_PARAM_S, bool_e, scaling_list), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_PARAM_S, bool_e, hier_qp_en), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_PARAM_S, string_e, hier_qp_delta), DEFINE_MAP(record.0, tagRKADK_PARAM_VENC_PARAM_S, string_e, hier_frame_num), }; static RKADK_SI_CONFIG_MAP_S g_stRecTimeCfgMapTable_1[] = { DEFINE_MAP(record.1, tagRKADK_PARAM_REC_TIME_CFG_S, int_e, record_time), DEFINE_MAP(record.1, tagRKADK_PARAM_REC_TIME_CFG_S, int_e, splite_time), DEFINE_MAP(record.1, tagRKADK_PARAM_REC_TIME_CFG_S, int_e, lapse_interval), }; static RKADK_SI_CONFIG_MAP_S g_stRecCfgMapTable_1[] = { DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, max_width), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, max_height), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, width), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, height), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, bufsize), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, bitrate), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, framerate), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, gop), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, profile), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, codec_type), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, venc_chn), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, bool_e, enable_vpss), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, vpss_grp), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, int_e, vpss_chn), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, bool_e, post_aiisp), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_ATTR_S, string_e, rc_mode), }; static RKADK_SI_CONFIG_MAP_S g_stRecParamMapTable_1[] = { DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_PARAM_S, int_e, max_qp), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_PARAM_S, int_e, min_qp), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_PARAM_S, int_e, i_min_qp), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_PARAM_S, int_e, i_frame_min_qp), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_PARAM_S, int_e, frame_min_qp), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_PARAM_S, bool_e, full_range), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_PARAM_S, bool_e, scaling_list), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_PARAM_S, bool_e, hier_qp_en), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_PARAM_S, string_e, hier_qp_delta), DEFINE_MAP(record.1, tagRKADK_PARAM_VENC_PARAM_S, string_e, hier_frame_num), }; /* preview map table */ static RKADK_SI_CONFIG_MAP_S g_stPreviewCfgMapTable[] = { DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, max_width), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, max_height), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, width), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, height), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, bufsize), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, bitrate), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, framerate), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, gop), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, profile), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, codec_type), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, venc_chn), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, bool_e, enable_vpss), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, vpss_grp), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, int_e, vpss_chn), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, bool_e, post_aiisp), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_ATTR_S, string_e, rc_mode), }; static RKADK_SI_CONFIG_MAP_S g_stPreviewParamMapTable[] = { DEFINE_MAP(preview, tagRKADK_PARAM_VENC_PARAM_S, int_e, max_qp), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_PARAM_S, int_e, min_qp), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_PARAM_S, int_e, i_min_qp), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_PARAM_S, int_e, i_frame_min_qp), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_PARAM_S, int_e, frame_min_qp), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_PARAM_S, bool_e, full_range), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_PARAM_S, bool_e, scaling_list), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_PARAM_S, bool_e, hier_qp_en), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_PARAM_S, string_e, hier_qp_delta), DEFINE_MAP(preview, tagRKADK_PARAM_VENC_PARAM_S, string_e, hier_frame_num), }; /* live map table */ static RKADK_SI_CONFIG_MAP_S g_stLiveCfgMapTable[] = { DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, max_width), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, max_height), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, width), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, height), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, bufsize), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, bitrate), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, framerate), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, gop), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, profile), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, codec_type), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, venc_chn), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, bool_e, enable_vpss), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, vpss_grp), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, int_e, vpss_chn), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, bool_e, post_aiisp), DEFINE_MAP(live, tagRKADK_PARAM_VENC_ATTR_S, string_e, rc_mode), }; static RKADK_SI_CONFIG_MAP_S g_stLiveParamMapTable[] = { DEFINE_MAP(live, tagRKADK_PARAM_VENC_PARAM_S, int_e, max_qp), DEFINE_MAP(live, tagRKADK_PARAM_VENC_PARAM_S, int_e, min_qp), DEFINE_MAP(live, tagRKADK_PARAM_VENC_PARAM_S, int_e, i_min_qp), DEFINE_MAP(live, tagRKADK_PARAM_VENC_PARAM_S, int_e, i_frame_min_qp), DEFINE_MAP(live, tagRKADK_PARAM_VENC_PARAM_S, int_e, frame_min_qp), DEFINE_MAP(live, tagRKADK_PARAM_VENC_PARAM_S, bool_e, full_range), DEFINE_MAP(live, tagRKADK_PARAM_VENC_PARAM_S, bool_e, scaling_list), DEFINE_MAP(live, tagRKADK_PARAM_VENC_PARAM_S, bool_e, hier_qp_en), DEFINE_MAP(live, tagRKADK_PARAM_VENC_PARAM_S, string_e, hier_qp_delta), DEFINE_MAP(live, tagRKADK_PARAM_VENC_PARAM_S, string_e, hier_frame_num), }; /* photo map table */ static RKADK_SI_CONFIG_MAP_S g_stPhotoCfgMapTable[] = { DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, max_width), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, max_height), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, image_width), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, image_height), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, venc_chn), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, bool_e, enable_vpss), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, vpss_grp), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, vpss_chn), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, bool_e, post_aiisp), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, bool_e, enable_combo), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, combo_venc_chn), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, qfactor), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, bool_e, jpeg_slice), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, slice_height), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, max_slice_width), DEFINE_MAP(photo, tagRKADK_PARAM_PHOTO_CFG_S, int_e, max_slice_height), }; /* VI[0] ~ VI[3] map table */ static RKADK_SI_CONFIG_MAP_S g_stViCfgMapTable_0[] = { DEFINE_MAP(vi.0, tagRKADK_PARAM_VI_CFG_S, int_e, chn_id), DEFINE_MAP(vi.0, tagRKADK_PARAM_VI_CFG_S, string_e, device_name), DEFINE_MAP(vi.0, tagRKADK_PARAM_VI_CFG_S, int_e, buf_cnt), DEFINE_MAP(vi.0, tagRKADK_PARAM_VI_CFG_S, int_e, width), DEFINE_MAP(vi.0, tagRKADK_PARAM_VI_CFG_S, int_e, height), DEFINE_MAP(vi.0, tagRKADK_PARAM_VI_CFG_S, int_e, depth), DEFINE_MAP(vi.0, tagRKADK_PARAM_VI_CFG_S, string_e, pix_fmt), DEFINE_MAP(vi.0, tagRKADK_PARAM_VI_CFG_S, string_e, module), }; static RKADK_SI_CONFIG_MAP_S g_stViCfgMapTable_1[] = { DEFINE_MAP(vi.1, tagRKADK_PARAM_VI_CFG_S, int_e, chn_id), DEFINE_MAP(vi.1, tagRKADK_PARAM_VI_CFG_S, string_e, device_name), DEFINE_MAP(vi.1, tagRKADK_PARAM_VI_CFG_S, int_e, buf_cnt), DEFINE_MAP(vi.1, tagRKADK_PARAM_VI_CFG_S, int_e, width), DEFINE_MAP(vi.1, tagRKADK_PARAM_VI_CFG_S, int_e, height), DEFINE_MAP(vi.1, tagRKADK_PARAM_VI_CFG_S, int_e, depth), DEFINE_MAP(vi.1, tagRKADK_PARAM_VI_CFG_S, string_e, pix_fmt), DEFINE_MAP(vi.1, tagRKADK_PARAM_VI_CFG_S, string_e, module), }; static RKADK_SI_CONFIG_MAP_S g_stViCfgMapTable_2[] = { DEFINE_MAP(vi.2, tagRKADK_PARAM_VI_CFG_S, int_e, chn_id), DEFINE_MAP(vi.2, tagRKADK_PARAM_VI_CFG_S, string_e, device_name), DEFINE_MAP(vi.2, tagRKADK_PARAM_VI_CFG_S, int_e, buf_cnt), DEFINE_MAP(vi.2, tagRKADK_PARAM_VI_CFG_S, int_e, width), DEFINE_MAP(vi.2, tagRKADK_PARAM_VI_CFG_S, int_e, height), DEFINE_MAP(vi.2, tagRKADK_PARAM_VI_CFG_S, int_e, depth), DEFINE_MAP(vi.2, tagRKADK_PARAM_VI_CFG_S, string_e, pix_fmt), DEFINE_MAP(vi.2, tagRKADK_PARAM_VI_CFG_S, string_e, module), }; static RKADK_SI_CONFIG_MAP_S g_stViCfgMapTable_3[] = { DEFINE_MAP(vi.3, tagRKADK_PARAM_VI_CFG_S, int_e, chn_id), DEFINE_MAP(vi.3, tagRKADK_PARAM_VI_CFG_S, string_e, device_name), DEFINE_MAP(vi.3, tagRKADK_PARAM_VI_CFG_S, int_e, buf_cnt), DEFINE_MAP(vi.3, tagRKADK_PARAM_VI_CFG_S, int_e, width), DEFINE_MAP(vi.3, tagRKADK_PARAM_VI_CFG_S, int_e, height), DEFINE_MAP(vi.3, tagRKADK_PARAM_VI_CFG_S, int_e, depth), DEFINE_MAP(vi.3, tagRKADK_PARAM_VI_CFG_S, string_e, pix_fmt), DEFINE_MAP(vi.3, tagRKADK_PARAM_VI_CFG_S, string_e, module), }; /* display map table */ static RKADK_SI_CONFIG_MAP_S g_stDispCfgMapTable[] = { DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, x), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, y), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, width), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, height), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, frame_rate), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, rotation), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, vpss_grp), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, vpss_chn), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, string_e, img_type), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, string_e, splice_mode), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, string_e, intf_type), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, vo_device), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, vo_layer), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, vo_chn), DEFINE_MAP(display, tagRKADK_PARAM_DISP_CFG_S, int_e, layer_buflen), }; /* thumb map table */ static RKADK_SI_CONFIG_MAP_S g_stThumbCfgMapTable[] = { DEFINE_MAP(thumb, tagRKADK_PARAM_THUMB_CFG_S, int_e, thumb_width), DEFINE_MAP(thumb, tagRKADK_PARAM_THUMB_CFG_S, int_e, thumb_height), DEFINE_MAP(thumb, tagRKADK_PARAM_THUMB_CFG_S, int_e, photo_venc_chn), DEFINE_MAP(thumb, tagRKADK_PARAM_THUMB_CFG_S, int_e, record_main_venc_chn), DEFINE_MAP(thumb, tagRKADK_PARAM_THUMB_CFG_S, int_e, record_sub_venc_chn), DEFINE_MAP(thumb, tagRKADK_PARAM_THUMB_CFG_S, int_e, vpss_grp), DEFINE_MAP(thumb, tagRKADK_PARAM_THUMB_CFG_S, int_e, vpss_chn), DEFINE_MAP(thumb, tagRKADK_PARAM_THUMB_CFG_S, int_e, qfactor), }; RKADK_MAP_TABLE_CFG_S *RKADK_PARAM_GetMapTable(RKADK_U32 u32Camid, RKADK_PARAM_MAP_TYPE_E eMapTable); #ifdef __cplusplus } #endif #endif