; ; Copyright (c) 2020 Huawei Device Co., Ltd. ; 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. ; ; ============= VideoMode Specified Configure ============= [common] mediamode = "HI_PARAM_MEDIAMODE_1080P_30" [common.vcap.pipe.0] vcappipe_hdl = "0" vivpssmode = "3"; 0:vi offline,vpss offline, 1:vi offline,vpss online,2:vi online,vpss offline,3:vi online,vpss online,4:vi parallel,vpss offline,5:vi parallel,vpss parallel,6:butt [common.vcap.pipe.1] vcappipe_hdl = "3" vivpssmode = "0"; 0:vi offline,vpss offline, 1:vi offline,vpss online,2:vi online,vpss offline,3:vi online,vpss online,4:vi parallel,vpss offline,5:vi parallel,vpss parallel,6:butt ; ============= VB Configure ============= [vb] max_poolcnt = 2 [vb.pool.0] image_width = "1920" image_height = "1080" pix_format = "26" data_bitwidth = "0" compress_mode = "0" default_align = "8" blk_count = "3" [vb.pool.1] image_width = "1280" image_height = "720" pix_format = "26" data_bitwidth = "0" compress_mode = "0" default_align = "8" blk_count = "3" [vb.pool.2] image_width = "1280" image_height = "720" pix_format = "26" data_bitwidth = "0" compress_mode = "1" default_align = "8" blk_count = "3" ; ============= Vcapture Configure ============= [vcap.dev] sensocnt = "1" sensor_type0 = "6" sensor_mode = "0" sensor_width = "1920";stSize.u32Width sensor_height = "1080";stSize.u32Width bas_width = "1920";VI_BAS_SCALE_ATTR_S.stBasSize.u32Width bas_height = "1080";VI_BAS_SCALE_ATTR_S.stBasSize.u32Height wdr_mode = "0"; 0:none, 1:build in,2:qudra line, 3:2_1 line, 4:2_1 frame ;VI_WDR_ATTR_S.enWDRMode data_type = "2"; 0:RAW_8BIT, 1:RAW_10BIT, 2:RAW_12BIT, 3: RAW_14BIT, 4:RAW_16BIT, 5:YUV420_8BIT_NORMAL, 6:YUV420_8BIT_LEGACY, 7: YUV422_8BIT, 8:DATA_TYPE_BUTT; componentmask0 = "4293918720"; 0xFFF00000 ; au32ComponentMask componentmask1 = "0" ; 0x00000000;au32ComponentMask pipecnt = "2" [vcap.mipi] enable = "1"; combo_dev_t = "0";combo_dev_t input_mode_t = "0";0:INPUT_MODE_MIPI mipi_data_rate_t = "0";0:MIPI_DATA_RATE_X1 img_rect_x = "0" img_rect_y = "0" img_rect_w = "1920" img_rect_h = "1080" data_type_t = "1" ;2:DATA_TYPE_RAW_12BIT mipi_wdr_mode_t = "0" lane_id_num = "2" lane_id_0 = "0" lane_id_1 = "2" lane_id_2 = "-1" lane_id_3 = "-1" [vcap.isp_pub] enable = "1"; stWndRect_x = "0"; stWndRect_y = "0"; stWndRect_w = "1920"; stWndRect_h = "1080"; outImageSize_x = "1920"; outImageSize_y = "1080"; frameRate = "30" enBayer = "0";BAYER_RGGB wdrMode = "0";WDR_MODE_NONE snsMode = "0";0 [vcap.pipe.0] chncnt = "1" enPipeBypassMode = "0"; bYuvSkip = "0"; bIspBypass = "0"; u32MaxW = "1920"; u32MaxH = "1080"; enPixFmt = "19"; enCompressMode = "0"; enBitWidth = "2"; bNrEn = "1"; enNrRefSource = "0"; bSharpenEn = "1"; src_framerate = "30";FRAME_RATE_CTRL_S dst_framerate = "30";FRAME_RATE_CTRL_S bDiscardProPic = "0"; [vcap.pipe.0.chl.0] out_width = "1920" out_height = "1080" enPixelFormat = "26"; enDynamicRange = "0"; enVideoFormat = "0"; enCompressMode = "0"; bMirror = "0" bFlip = "0" u32Depth = "0" src_framerate = "30";FRAME_RATE_CTRL_S dst_framerate = "30";FRAME_RATE_CTRL_S [vcap.pipe.1] chncnt = "1" enPipeBypassMode = "0"; bYuvSkip = "0"; bIspBypass = "0"; u32MaxW = "1920"; u32MaxH = "1080"; enPixFmt = "19"; enCompressMode = "0"; enBitWidth = "2"; bNrEn = "1"; enNrRefSource = "0"; bSharpenEn = "1"; src_framerate = "30";FRAME_RATE_CTRL_S dst_framerate = "30";FRAME_RATE_CTRL_S bDiscardProPic = "0"; [vcap.pipe.1.chl.0] out_width = "1920" out_height = "1080" enPixelFormat = "26"; enDynamicRange = "0"; enVideoFormat = "0"; enCompressMode = "0"; bMirror = "0" bFlip = "0" u32Depth = "0" src_framerate = "30";FRAME_RATE_CTRL_S dst_framerate = "30";FRAME_RATE_CTRL_S ; ============= Vprocessor Configure ============= [vpss.0] vportcnt = "2" max_width = "1920" max_height = "1080" src_framerate = "30" dst_framerate = "30" pix_format = "26" [vpss.0.vport.0] enable = "1" res_width = "1920" res_height = "1080" src_framerate = "30" dst_framerate = "30" video_format = "0" pix_format = "26" compressMode = "0" depth = "0" mirror = "0" flip = "0" [vpss.0.vport.1] enable = "1" res_width = "1280" res_height = "720" src_framerate = "30" dst_framerate = "30" video_format = "0" pix_format = "26" compressMode = "0" depth = "0" mirror = "0" flip = "0" [vpss.0.vport.2] enable = "1" res_width = "720" res_height = "576" src_framerate = "30" dst_framerate = "30" video_format = "0" pix_format = "26" compressMode = "0" depth = "0" mirror = "0" flip = "0" [vpss.0.extvport.0] enable = "0" res_width = "160" res_height = "120" src_framerate = "30" dst_framerate = "30" video_format = "0" pix_format = "26" compressMode = "0" depth = "0" mirror = "0" flip = "0" ; ============= Vcoder Configure ============= [venc] venccnt ="4" [venc.0] res_width = "1920" res_height = "1080" bufsize = "1258290"; 1920*1080*3/4 bytes gop = "30" src_framerate = "30" dst_framerate = "30" h265bitrate = "10240"; kbps h264bitrate = "12288" stat_time = "2"; second [venc.1] res_width = "640" res_height = "360" bufsize = "230400"; 640*480*3/4 bytes gop = "30" src_framerate = "30" dst_framerate = "30" h265bitrate = "2048"; kbps h264bitrate = "2048" stat_time = "2"; second [venc.2] res_width = "1920" res_height = "1080" bufsize = "1258290"; gop = "0" src_framerate = "30" dst_framerate = "30" h265bitrate = "0"; kbps h264bitrate = "0" stat_time = "2"; second [venc.3] res_width = "320" res_height = "180" bufsize = "57600"; bytes gop = "0" src_framerate = "30" dst_framerate = "30" h265bitrate = "0"; Kbps h264bitrate = "0" stat_time = "2"; second