orangepi-xunlong / linux-orangepi

Other
176 stars 157 forks source link

Libcamera integration with RKISP 3.x #38

Open Monstrofil opened 1 year ago

Monstrofil commented 1 year ago

I'm trying to integrate libcamera with rockchip ISP on my Orange PI 5 board (RK3588s), but I cannot find any documentation on stats and params structures.

struct isp3x_isp_meas_cfg {
    struct isp3x_rawaf_meas_cfg rawaf;
    struct isp3x_rawawb_meas_cfg rawawb;
    struct isp2x_rawaelite_meas_cfg rawae0;
    struct isp2x_rawaebig_meas_cfg rawae1;
    struct isp2x_rawaebig_meas_cfg rawae2;
    struct isp2x_rawaebig_meas_cfg rawae3;
    struct isp2x_rawhistlite_cfg rawhist0;
    struct isp2x_rawhistbig_cfg rawhist1;
    struct isp2x_rawhistbig_cfg rawhist2;
    struct isp2x_rawhistbig_cfg rawhist3;
} __attribute__ ((packed));

struct isp3x_isp_meas_cfg {
    struct isp3x_rawaf_meas_cfg rawaf;
    struct isp3x_rawawb_meas_cfg rawawb;
    struct isp2x_rawaelite_meas_cfg rawae0;
    struct isp2x_rawaebig_meas_cfg rawae1;
    struct isp2x_rawaebig_meas_cfg rawae2;
    struct isp2x_rawaebig_meas_cfg rawae3;
    struct isp2x_rawhistlite_cfg rawhist0;
    struct isp2x_rawhistbig_cfg rawhist1;
    struct isp2x_rawhistbig_cfg rawhist2;
    struct isp2x_rawhistbig_cfg rawhist3;
} __attribute__ ((packed));

Where I can find some description or samples using these structures?

Monstrofil commented 1 year ago

I managed to enable RAWAF according to data that I see in proc/rkisp-vir0, but still all values in stat_ structure are just zero's.

@orangepi-xunlong could you please take a look at this issue? Is there any documentation that you could possibly share regarding the topic?