Weird ISP behaviour with RKMPI
Posted: 2024-08-29 13:00
Hi everyone! I've managed to create my own tiny application that can control video pipeline using RKMPI. Currently im facing a problem, connected with ISP, because every time i stop VI channel, ISP also turns off and video becomes raw and unprocessed (as it was with bare V4L2 ioctls). My current command flow looks like this:
On VI init (called once):
On VI start command:
On VI stop command:
All this functions are called with proper required arguments. The RK_MPI_VI_DisableChn() causes this things in my syslogd daemon:
And it never starts again, so when i use command sequence like start->stop->start, second time i have those weird raw unprocessed images. I've also tried to use RK_MPI_VI_PauseChn(), but to no avail...
Is there any possible way to make those functions not disabling my ISP process? Or i have to manually restart ISP algorithm every time i'm recreating pipeline? All this command sequences were taken from samples/opencv example. Thanks in advance!
On VI init (called once):
Code: Select all
RK_MPI_SYS_Init();
RK_MPI_SYS_InitPTSBase();
Code: Select all
RK_MPI_VI_EnableDev();
RK_MPI_VI_SetDevBindPipe();
RK_MPI_VI_EnableChn();
Code: Select all
RK_MPI_VI_DisableChn();
RK_MPI_VI_DisableDev();
Code: Select all
RTDeviceV4L2 12:42:38-368 {ispStreamOff :503} do ispStreamOff start
RTDeviceV4L2 12:42:38-431 {ispStreamOff :514} do ispStreamOff done
RTDeviceV4L2 12:42:38-433 {close :365} do RTDeviceV4L2 close
Is there any possible way to make those functions not disabling my ISP process? Or i have to manually restart ISP algorithm every time i'm recreating pipeline? All this command sequences were taken from samples/opencv example. Thanks in advance!