Modes of Operation - 1.1 English

Video Scene Change Detection LogiCORE IP Product Guide (PG322)

Document ID
PG322
Release Date
2023-11-10
Version
1.1 English
The Video Scene Change DetectionIP supports two modes of operation, which require two different programming models.
Auto Restart Mode (Default)
The driver initialization routine configures the Video Scene Change Detection for auto restart mode. In this mode, after the current frame is processed the core automatically triggers the start of the next frame processing. Consequently, the core keeps on processing frames without any software intervention, with settings applied when the core was started. You can switch to Auto Restart Mode, at any time, by disabling the interrupts, using the XV_scenechange_InterruptDisable API.
Interrupt Mode
In this mode, the interrupt (IRQ) port of the core needs to be connected to a system interrupt controller. When an interrupt is triggered, the core interrupt service routine (ISR) checks to confirm if current frame processing is complete. It then calls a user programmable callback function, if any. In the callback function, the register settings for the next frame should be programmed, that is, what source memory buffer address a frame should read next from. Finally, the interrupt service routine triggers the core to start processing the next frame.

An application must perform the following tasks to configure the core for Interrupt mode.

  • Register the core ISR routine XV_scenechange_InterruptHandler with the system interrupt controller.
  • Register the application callback function that should be called within the interrupt context. This can be done using the API XV_scenechange_SetCallback.
  • Enable the interrupts by calling provided API XV_scenechange_InterruptEnable.