vsrc_0 = {
vsrc_id = 0,
mode = "uxga", -- 这个用默认的
hdr_mode = "linear", -- options: "linear", "2x" or "3x"
fps = 30,
bits= 0,
}
chan_0 = {
id = 0,
vsrc = vsrc_0,
vsrc_ctx = 0,
img_stats_src_chan = "chan_0",
sensor_ctrl = 1,
max_padding_width = 0,
idsp_fps = 0,
lens_warp = 0,
max_main_input_width = 0, -- 0: VIN raw width
blend_left = 0,
blend_right = 0,
mctf_cmpr = 1,
mctf_10bit_ref = 0,
main_burst_tile = 1,
extra_downscale = 0,
main = {
max_output = {4096, 0}, -- output width
input = {0, 0, 1600, 1296}, -- full VIN
output = {0, 0, 1600, 1296},
},
second = {
max_output = {0, 0}, -- output width
input = {0, 0, 0, 0}, -- full main
output = {0, 0, 720, 480},
},
third = {
max_output = {0, 0}, -- output width
input = {0, 0, 0, 0}, -- full main
output = {0, 0, 1280, 720},
},
fourth = {
max_output = {0, 0},
input = {0, 0, 0, 0},
output = {0, 0, 0, 0},
},
fifth = {
max_output = {0, 0},
input = {0, 0, 0, 0}, -- full main
output = {0, 0, 1280, 720},
},
pyramid = {
input_buf_id = 4, -- 0: Main, 1: Second, 2: Third, 3: Fourth, 4: Fifth
scale_type = 0, -- 0: 1/sqrt(2); 1: 1/2; 2: Arbitrary size
buf_addr = 0x0,
buf_size = 0x0,
manual_feed = 0,
item_num = 0,
layer_map = 0x3F,
layers = {
{
crop_win = {0, 0, 0 ,0},
},
{
crop_win = {0, 0, 0 ,0},
},
{
crop_win = {0, 0, 0 ,0},
},
{
crop_win = {0, 0, 0 ,0},
},
{
crop_win = {0, 0, 0 ,0},
},
{
crop_win = {0, 0, 0 ,0},
},
},
},
}
stream_0 = {
id = 0,
max_size = {1600, 1296},
max_M = 1,
fast_seek_enable = 0,
two_ref_enable = 0,
max_svct_layers_minus_1 = 0,
max_num_minus_1_ltrs = 0,
codec_enable = 0, -- 0: H264/H265/MJPEG; 1: H265/MJPEG; 2: H264/MJPEG; 3: MJPEG
}
stream_1 = {
id = 1,
max_size = {1920, 1080},
max_M = 1,
fast_seek_enable = 0,
two_ref_enable = 0,
max_svct_layers_minus_1 = 0,
max_num_minus_1_ltrs = 0,
codec_enable = 0, -- 0: H264/H265/MJPEG; 1: H265/MJPEG; 2: H264/MJPEG; 3: MJPEG
}
stream_2 = {
id = 2,
max_size = {720, 480},
max_M = 1,
fast_seek_enable = 0,
two_ref_enable = 0,
max_svct_layers_minus_1 = 0,
max_num_minus_1_ltrs = 0,
codec_enable = 0, -- 0: H264/H265/MJPEG; 1: H265/MJPEG; 2: H264/MJPEG; 3: MJPEG
}
_resource_config_ = {
version = 1,
log_level = 0, -- 0: error; 1: warning; 2: info; 3: debug
channels = {
chan_0,
},
canvas = {
{
type = "encode",
size = {1600, 1296}, -- min size to contain source buffers
source = {"chan_0.main",},
extra_dram_buf = 0,
},
{
type = "encode",
size = {0, 0},
source = {"chan_0.second",},
extra_dram_buf = 0,
},
{
type = "prev",
size = {0, 0},
source = {"chan_0.third", },
vout_id = 1,
extra_dram_buf = 0,
},
},
streams = {
stream_0,
stream_1,
stream_2,
},
}
return _resource_config_
如上图,这么长的代码,要截成一张图。
两种方法:
- 如果屏幕竖屏参容下代码,则直接用系统/微信/QQ截图即可
- 将代码复制到CSDN的代码段内,再用浏览器的截图插件选择区域截长图
- chrome插件FireShot