1;
2; Copyright (c) 2020 Huawei Device Co., Ltd.
3; Licensed under the Apache License, Version 2.0 (the "License");
4; you may not use this file except in compliance with the License.
5; You may obtain a copy of the License at
6;
7;     http://www.apache.org/licenses/LICENSE-2.0
8;
9; Unless required by applicable law or agreed to in writing, software
10; distributed under the License is distributed on an "AS IS" BASIS,
11; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12; See the License for the specific language governing permissions and
13; limitations under the License.
14;
15; ============= VideoMode Specified Configure =============
16[common]
17mediamode          = "HI_PARAM_MEDIAMODE_1080P_30"
18sensorcnt           = "1"
19[common.vcap0.pipe.0]
20vcappipe_hdl       = "0"
21vivpssmode         = "2"; 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
22[common.vcap0.pipe.1]
23vcappipe_hdl       = "3"
24vivpssmode         = "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
25
26; ============= VB Configure =============
27[vb]
28max_poolcnt        = 5
29[vb.pool.0]
30image_width        = "2592"
31image_height       = "1600"
32pix_format         = "26"
33data_bitwidth      = "0"
34compress_mode      = "0"
35default_align      = "8"
36blk_count          = "3"
37[vb.pool.1]
38image_width        = "1920"
39image_height       = "1080"
40pix_format         = "26"
41data_bitwidth      = "0"
42compress_mode      = "0"
43default_align      = "8"
44blk_count          = "3"
45[vb.pool.2]
46image_width 	   = "1280"
47image_height       = "720"
48pix_format         = "26"
49data_bitwidth      = "0"
50compress_mode      = "1"
51default_align      = "8"
52blk_count          = "3"
53[vb.pool.3]
54image_width        = "2592"
55image_height       = "1536"
56pix_format         = "26"
57data_bitwidth      = "0"
58compress_mode      = "0"
59default_align      = "8"
60blk_count          = "6"
61[vb.pool.4]
62image_width        = "720"
63image_height       = "576"
64pix_format         = "26"
65data_bitwidth      = "0"
66compress_mode      = "0"
67default_align      = "8"
68blk_count          = "3"
69; ============= Vcapture 0 Configure =============
70
71[vcap0.dev]
72sensor_type        = "0"; 0 WIDE_ANGLE  1 FISH_EYE 2 TRUE_DEAPTH
73sensor_lib         = "/usr/lib/libsns_imx335.so"
74sensor_obj         = "stSnsImx335Obj"
75sensor_width       = "2592";stSize.u32Width
76sensor_height      = "1944";stSize.u32Width
77bas_width          = "2592";VI_BAS_SCALE_ATTR_S.stBasSize.u32Width
78bas_height         = "1536";VI_BAS_SCALE_ATTR_S.stBasSize.u32Height
79wdr_mode           = "0"; 0:none, 1:build in,2:qudra line, 3:2_1 line, 4:2_1 frame ;VI_WDR_ATTR_S.enWDRMode
80pipecnt            = "1"
81
82[vcap0.mipi]
83enable             = "1";
84combo_dev_t        = "0";combo_dev_t
85input_mode_t       = "0";0:INPUT_MODE_MIPI
86mipi_data_rate_t   = "0";0:MIPI_DATA_RATE_X1
87img_rect_x         = "0"
88img_rect_y         = "204"
89img_rect_w         = "2592"
90img_rect_h         = "1536"
91data_type_t        = "2"    ;2:DATA_TYPE_RAW_12BIT
92mipi_wdr_mode_t    = "0"
93lane_id_num        = "4"
94lane_id_0          = "0"
95lane_id_1          = "1"
96lane_id_2          = "2"
97lane_id_3          = "3"
98
99[vcap0.isp_pub]
100enable             = "1";
101stWndRect_x        = "0";
102stWndRect_y        = "0";
103stWndRect_w        = "2592";
104stWndRect_h        = "1536";
105outImageSize_x     = "2592";
106outImageSize_y     = "1944";
107frameRate          = "30"
108enBayer            = "0";BAYER_RGGB
109wdrMode            = "0";WDR_MODE_NONE
110snsMode            = "0"
111busId              = "0";
112
113[vcap0.pipe.0]
114chncnt             = "1"
115enPipeBypassMode   = "0";
116bYuvSkip           = "0";
117bIspBypass         = "0";
118u32MaxW            = "2592";
119u32MaxH            = "1536";
120enPixFmt           = "19";
121enCompressMode     = "0";
122enBitWidth         = "2";
123bNrEn              = "1";
124enNrRefSource      = "0";
125bSharpenEn         = "1";
126src_framerate      = "30";FRAME_RATE_CTRL_S
127dst_framerate      = "30";FRAME_RATE_CTRL_S
128bDiscardProPic     = "0";
129interrupt_type     = "2"; 0 is start, 1 is early, 2 is early_end
130earlyline          = "1436";
131
132[vcap0.pipe.0.chl.0]
133out_width          = "2592"
134out_height         = "1536"
135enPixelFormat      = "26";
136enDynamicRange     = "0";
137enVideoFormat      = "0";
138enCompressMode     = "0";
139bMirror            = "0"
140bFlip              = "0"
141u32Depth           = "0"
142src_framerate      = "30";FRAME_RATE_CTRL_S
143dst_framerate      = "30";FRAME_RATE_CTRL_S
144;