sdk-hwV1.3/external/eyesee-mpp/framework/sun8iw21/demo/sample_Camera_takepicture
梁志勇 09427e37ea chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
..
Readme.txt chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
build.mk chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
sample_Camera_takepicture.conf chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
sample_Camera_takepicture.cpp chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
sample_Camera_takepicture.h chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
sample_Camera_takepicture_config.h chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00

Readme.txt

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

sample_Camera_takepicture测试流程


1、功能说明
1sample支持单独获取Raw单独获取JPEG同时预览支持获取JPEG获取RAW同时预览。
2三路分别使用不同的VIPP使用两个ISP对应关系如下
    - ISP0和ISP1都连接到CSI1
    - VIPP1和VIPP3连接到ISP0VIPP0和VIPP2连接到ISP1。
3VIPP通道使用推荐方案
    - Raw data is get by ScalerOutChns 0
    - JPEG data is get by ScalerOutChns 1
    - Preview data is  get by ScalerOutChns 3

2、使用方法
1修改 ipc-v5/lichee/tools/pack/chips/sun8iw12p1/configs/方案/sys_config.fex 中,
    - sys_config.fex配置参考

        vinc0_used      = 1
        vinc0_csi_sel       = 1
        vinc0_mipi_sel      = 1
        vinc0_isp_sel       = 1
        vinc0_isp_tx_ch     = 0
        vinc0_rear_sensor_sel   = 1
        vinc0_front_sensor_sel  = 1
        vinc0_sensor_list   = 0
        
        [vind0/vinc1]
        vinc1_used      = 1
        vinc1_csi_sel       = 1
        vinc1_mipi_sel      = 1
        vinc1_isp_sel       = 0
        vinc1_isp_tx_ch     = 0
        vinc1_rear_sensor_sel   = 1
        vinc1_front_sensor_sel  = 1
        vinc1_sensor_list   = 0
        
        [vind0/vinc2]
        vinc2_used      = 1
        vinc2_csi_sel       = 1
        vinc2_mipi_sel      = 1
        vinc2_isp_sel       = 1
        vinc2_isp_tx_ch     = 0
        vinc2_rear_sensor_sel   = 1
        vinc2_front_sensor_sel  = 1
        vinc2_sensor_list   = 0
        
        [vind0/vinc3]
        vinc3_used      = 1
        vinc3_csi_sel       = 1
        vinc3_mipi_sel      = 1
        vinc3_isp_sel       = 0
        vinc3_isp_tx_ch     = 0
        vinc3_rear_sensor_sel   = 1
        vinc3_front_sensor_sel  = 1
        vinc3_sensor_list   = 0

2获取4K(3840*2160) Raw格式方法修改驱动配置取消isp驱动中的规格限制patch如下
    - 修改文件 ipc-v5/lichee/linux-4.4/drivers/media/platform/sunxi-vin/vin-isp/sunxi_isp.c

        diff --git a/drivers/media/platform/sunxi-vin/vin-isp/sunxi_isp.c b/drivers/media/platform/sunxi-vin/vin-isp/sunxi_isp.c
        index eb3c0e6..b818075 100755
        --- a/drivers/media/platform/sunxi-vin/vin-isp/sunxi_isp.c
        +++ b/drivers/media/platform/sunxi-vin/vin-isp/sunxi_isp.c
        @@ -433,8 +433,8 @@ static struct isp_pix_fmt *__isp_try_format(struct isp_dev *isp,
        
                if (!isp->large_image) {
                        if (isp->id == 1) {
        -                       mf->width = clamp_t(u32, mf->width, MIN_IN_WIDTH, 3264);
        -                       mf->height = clamp_t(u32, mf->height, MIN_IN_HEIGHT, 3264);
        +                       mf->width = clamp_t(u32, mf->width, MIN_IN_WIDTH, 4224);
        +                       mf->height = clamp_t(u32, mf->height, MIN_IN_HEIGHT, 4224);
                        } else {
                                mf->width = clamp_t(u32, mf->width, MIN_IN_WIDTH, 4224);
                                mf->height = clamp_t(u32, mf->height, MIN_IN_HEIGHT, 4224);