![]() |
v_demosaic
Vitis Drivers API Documentation
|
#include "xv_demosaic.h"Functions | |
| int | XV_demosaic_CfgInitialize (XV_demosaic *InstancePtr, XV_demosaic_Config *ConfigPtr, UINTPTR EffectiveAddr) |
| Initializes the Demosaic IP instance. More... | |
| void | XV_demosaic_Start (XV_demosaic *InstancePtr) |
| Starts the Demosaic IP core. More... | |
| u32 | XV_demosaic_IsDone (XV_demosaic *InstancePtr) |
| Checks if the Demosaic IP has completed processing. More... | |
| u32 | XV_demosaic_IsIdle (XV_demosaic *InstancePtr) |
| Checks if the Demosaic IP is idle. More... | |
| u32 | XV_demosaic_IsReady (XV_demosaic *InstancePtr) |
| Checks if the Demosaic IP is ready for new input. More... | |
| void | XV_demosaic_EnableAutoRestart (XV_demosaic *InstancePtr) |
| Enables auto-restart mode for the Demosaic IP. More... | |
| void | XV_demosaic_DisableAutoRestart (XV_demosaic *InstancePtr) |
| Disables auto-restart mode for the Demosaic IP. More... | |
| void | XV_demosaic_Set_HwReg_width (XV_demosaic *InstancePtr, u32 Data) |
| Sets the frame width for the Demosaic IP. More... | |
| u32 | XV_demosaic_Get_HwReg_width (XV_demosaic *InstancePtr) |
| Gets the configured frame width from the Demosaic IP. More... | |
| void | XV_demosaic_Set_HwReg_height (XV_demosaic *InstancePtr, u32 Data) |
| Sets the frame height for the Demosaic IP. More... | |
| u32 | XV_demosaic_Get_HwReg_height (XV_demosaic *InstancePtr) |
| Gets the configured frame height from the Demosaic IP. More... | |
| void | XV_demosaic_Set_HwReg_bayer_phase (XV_demosaic *InstancePtr, u32 Data) |
| Sets the Bayer pattern phase for the Demosaic IP. More... | |
| u32 | XV_demosaic_Get_HwReg_bayer_phase (XV_demosaic *InstancePtr) |
| Gets the configured Bayer pattern phase from the Demosaic IP. More... | |
| void | XV_demosaic_InterruptGlobalEnable (XV_demosaic *InstancePtr) |
| Enables global interrupts for the Demosaic IP. More... | |
| void | XV_demosaic_InterruptGlobalDisable (XV_demosaic *InstancePtr) |
| Disables global interrupts for the Demosaic IP. More... | |
| void | XV_demosaic_InterruptEnable (XV_demosaic *InstancePtr, u32 Mask) |
| Enables specific interrupt sources for the Demosaic IP. More... | |
| void | XV_demosaic_InterruptDisable (XV_demosaic *InstancePtr, u32 Mask) |
| Disables specific interrupt sources for the Demosaic IP. More... | |
| void | XV_demosaic_InterruptClear (XV_demosaic *InstancePtr, u32 Mask) |
| Clears pending interrupt flags for the Demosaic IP. More... | |
| u32 | XV_demosaic_InterruptGetEnabled (XV_demosaic *InstancePtr) |
| Gets the enabled interrupt sources for the Demosaic IP. More... | |
| u32 | XV_demosaic_InterruptGetStatus (XV_demosaic *InstancePtr) |
| Gets the current interrupt status for the Demosaic IP. More... | |
| int XV_demosaic_CfgInitialize | ( | XV_demosaic * | InstancePtr, |
| XV_demosaic_Config * | ConfigPtr, | ||
| UINTPTR | EffectiveAddr | ||
| ) |
Initializes the Demosaic IP instance.
This function initializes the Demosaic instance by copying the configuration data and setting the effective base address for register access. It marks the instance as ready after successful initialization.
| InstancePtr | Pointer to the XV_demosaic instance to initialize. |
| ConfigPtr | Pointer to the configuration structure containing IP parameters. |
| EffectiveAddr | The effective base address for the IP registers. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, and XV_demosaic::IsReady.
Referenced by driverInit(), and XV_demosaic_Initialize().
| void XV_demosaic_DisableAutoRestart | ( | XV_demosaic * | InstancePtr | ) |
Disables auto-restart mode for the Demosaic IP.
This function disables the auto-restart feature. The IP will stop after completing each frame and require an explicit start command for the next frame.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_AP_CTRL, and XV_demosaic_WriteReg.
| void XV_demosaic_EnableAutoRestart | ( | XV_demosaic * | InstancePtr | ) |
Enables auto-restart mode for the Demosaic IP.
This function enables the auto-restart feature, which causes the IP to automatically restart processing after completing each frame without requiring explicit start commands.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_AP_CTRL, and XV_demosaic_WriteReg.
Referenced by videoIpConfig().
| u32 XV_demosaic_Get_HwReg_bayer_phase | ( | XV_demosaic * | InstancePtr | ) |
Gets the configured Bayer pattern phase from the Demosaic IP.
This function reads the current Bayer phase configuration from the Demosaic IP hardware register.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_HWREG_BAYER_PHASE_DATA, and XV_demosaic_ReadReg.
| u32 XV_demosaic_Get_HwReg_height | ( | XV_demosaic * | InstancePtr | ) |
Gets the configured frame height from the Demosaic IP.
This function reads the current frame height configuration in lines from the Demosaic IP hardware register.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_HWREG_HEIGHT_DATA, and XV_demosaic_ReadReg.
| u32 XV_demosaic_Get_HwReg_width | ( | XV_demosaic * | InstancePtr | ) |
Gets the configured frame width from the Demosaic IP.
This function reads the current frame width configuration in pixels from the Demosaic IP hardware register.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_HWREG_WIDTH_DATA, and XV_demosaic_ReadReg.
| void XV_demosaic_InterruptClear | ( | XV_demosaic * | InstancePtr, |
| u32 | Mask | ||
| ) |
Clears pending interrupt flags for the Demosaic IP.
This function clears the specified interrupt status bits by writing to the Interrupt Status Register (ISR). This acknowledges the interrupt and allows new interrupts of the same type to be generated.
| InstancePtr | Pointer to the XV_demosaic instance. |
| Mask | Bit mask of interrupt flags to clear. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_ISR, and XV_demosaic_WriteReg.
Referenced by XVDemosaic_InterruptHandler().
| void XV_demosaic_InterruptDisable | ( | XV_demosaic * | InstancePtr, |
| u32 | Mask | ||
| ) |
Disables specific interrupt sources for the Demosaic IP.
This function clears bits in the Interrupt Enable Register (IER) to disable specific interrupt sources. Multiple interrupts can be disabled by using a bitwise OR of interrupt masks.
| InstancePtr | Pointer to the XV_demosaic instance. |
| Mask | Bit mask of interrupts to disable. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_IER, XV_demosaic_ReadReg, and XV_demosaic_WriteReg.
| void XV_demosaic_InterruptEnable | ( | XV_demosaic * | InstancePtr, |
| u32 | Mask | ||
| ) |
Enables specific interrupt sources for the Demosaic IP.
This function sets bits in the Interrupt Enable Register (IER) to enable specific interrupt sources. Multiple interrupts can be enabled by using a bitwise OR of interrupt masks.
| InstancePtr | Pointer to the XV_demosaic instance. |
| Mask | Bit mask of interrupts to enable. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_IER, XV_demosaic_ReadReg, and XV_demosaic_WriteReg.
| u32 XV_demosaic_InterruptGetEnabled | ( | XV_demosaic * | InstancePtr | ) |
Gets the enabled interrupt sources for the Demosaic IP.
This function reads the Interrupt Enable Register (IER) to determine which interrupt sources are currently enabled.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_IER, and XV_demosaic_ReadReg.
| u32 XV_demosaic_InterruptGetStatus | ( | XV_demosaic * | InstancePtr | ) |
Gets the current interrupt status for the Demosaic IP.
This function reads the Interrupt Status Register (ISR) to determine which interrupts are currently pending/active.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_ISR, and XV_demosaic_ReadReg.
Referenced by XVDemosaic_InterruptHandler().
| void XV_demosaic_InterruptGlobalDisable | ( | XV_demosaic * | InstancePtr | ) |
Disables global interrupts for the Demosaic IP.
This function clears the Global Interrupt Enable (GIE) bit, preventing the IP core from generating interrupt signals to the processor.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_GIE, and XV_demosaic_WriteReg.
| void XV_demosaic_InterruptGlobalEnable | ( | XV_demosaic * | InstancePtr | ) |
Enables global interrupts for the Demosaic IP.
This function sets the Global Interrupt Enable (GIE) bit, allowing the IP core to generate interrupt signals to the processor.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_GIE, and XV_demosaic_WriteReg.
| u32 XV_demosaic_IsDone | ( | XV_demosaic * | InstancePtr | ) |
Checks if the Demosaic IP has completed processing.
This function reads the control register and checks the AP_DONE bit to determine if the IP core has finished processing the current frame.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_AP_CTRL, and XV_demosaic_ReadReg.
| u32 XV_demosaic_IsIdle | ( | XV_demosaic * | InstancePtr | ) |
Checks if the Demosaic IP is idle.
This function reads the control register and checks the AP_IDLE bit to determine if the IP core is in idle state (not processing).
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_AP_CTRL, and XV_demosaic_ReadReg.
| u32 XV_demosaic_IsReady | ( | XV_demosaic * | InstancePtr | ) |
Checks if the Demosaic IP is ready for new input.
This function checks the AP_START bit to determine if the IP core is ready to accept a new frame for processing. The IP is ready when the AP_START bit is not set.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_AP_CTRL, and XV_demosaic_ReadReg.
| void XV_demosaic_Set_HwReg_bayer_phase | ( | XV_demosaic * | InstancePtr, |
| u32 | Data | ||
| ) |
Sets the Bayer pattern phase for the Demosaic IP.
This function configures the starting phase of the Bayer color filter array pattern. The phase determines which color (R, G, or B) is at the top-left pixel position.
| InstancePtr | Pointer to the XV_demosaic instance. |
| Data | The Bayer phase value (0-3 representing different RGGB patterns). |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_HWREG_BAYER_PHASE_DATA, and XV_demosaic_WriteReg.
Referenced by videoIpConfig().
| void XV_demosaic_Set_HwReg_height | ( | XV_demosaic * | InstancePtr, |
| u32 | Data | ||
| ) |
Sets the frame height for the Demosaic IP.
This function configures the active image height in lines that the Demosaic IP will process.
| InstancePtr | Pointer to the XV_demosaic instance. |
| Data | The frame height in lines. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_HWREG_HEIGHT_DATA, and XV_demosaic_WriteReg.
Referenced by videoIpConfig().
| void XV_demosaic_Set_HwReg_width | ( | XV_demosaic * | InstancePtr, |
| u32 | Data | ||
| ) |
Sets the frame width for the Demosaic IP.
This function configures the active image width in pixels that the Demosaic IP will process.
| InstancePtr | Pointer to the XV_demosaic instance. |
| Data | The frame width in pixels. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_HWREG_WIDTH_DATA, and XV_demosaic_WriteReg.
Referenced by videoIpConfig().
| void XV_demosaic_Start | ( | XV_demosaic * | InstancePtr | ) |
Starts the Demosaic IP core.
This function triggers the Demosaic IP to start processing by setting the AP_START bit in the control register while preserving the auto-restart bit.
| InstancePtr | Pointer to the XV_demosaic instance. |
References XV_demosaic_Config::BaseAddress, XV_demosaic::Config, XV_demosaic::IsReady, XV_DEMOSAIC_CTRL_ADDR_AP_CTRL, XV_demosaic_ReadReg, and XV_demosaic_WriteReg.
Referenced by videoIpConfig().