![]() |
mipicsiss
Vitis Drivers API Documentation
|
This file contains the video pipe line configuration, Sensor configuration and its programming as per the resolution selected by user.
Please see pipeline_program.h for more details.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00 pg 12/07/17 Initial release.
Functions | |
| int | SensorWriteData (u16 ByteCount) |
| This function writes a buffer of data to the IIC serial sensor. More... | |
| int | SensorReadData (u8 *BufferPtr, u16 ByteCount) |
| This function reads data from the IIC serial Camera Sensor into a specified buffer. More... | |
| int | SetupCameraSensor (void) |
| This function setup Camera sensor programming wrt resolution selected. More... | |
| int | InitIIC (void) |
| This function initializes IIC controller and gets config parameters. More... | |
| void | SetupIICIntrHandlers (void) |
| This function sets send, receive and error handlers for IIC interrupts. More... | |
| void | ConfigCSC (u32 width, u32 height) |
| This function programs colour space converter with the given width and height. More... | |
| void | ConfigGammaLut (u32 width, u32 height) |
| This function programs colour space converter with the given width and height. More... | |
| void | ConfigDemosaic (u32 width, u32 height) |
| This function programs colour space converter with the given width and height. More... | |
| void | FrmbufwrDoneCallback (void *CallbackRef) |
| This function is called when a Frame Buffer Write Done has occurred. More... | |
| void | FrmbufrdDoneCallback (void *CallbackRef) |
| This function is called when a Frame Buffer Read Done has occurred. More... | |
| void | DisableImageProcessingPipe (void) |
| This function disables Demosaic, GammaLut and VProcSS IPs. More... | |
| int | config_csi_cap_path () |
| Main function to initialize the video pipleline and process user input. More... | |
| void | InitImageProcessingPipe (void) |
| This function Initializes Image Processing blocks wrt to selected resolution. More... | |
| void | EnableCSI (void) |
| This function enables MIPI CSI IP. More... | |
| void | DisableCSI (void) |
| This function disables MIPI CSI IP. More... | |
| int | StartSensor (void) |
| This function starts camera sensor to transmit captured video. More... | |
| void | InitVprocSs_Scaler (int count) |
| This function initializes and configures VProcSS IP for scalar mode with the given input and output width and height values. More... | |
| void | ResetVprocSs_Scaler (void) |
| This function resets VProcSS_scalar IP. More... | |
| void | EnableDSI (void) |
| This function enables MIPI DSI SS. More... | |
| void | DisableDSI (void) |
| This function disables MIPI DSI SS. More... | |
| void | InitDSI (void) |
| This function programs MIPI DSI SS with the required timing paramters. More... | |
| u32 | SetupDSI (void) |
| This function initializes MIPI DSI SS and gets config parameters. More... | |
| void | SelectDSIOutput (void) |
| This function programs GPIO to 1 to select MIPI DSI SS Stream Path in AXI- Stream switch. More... | |
| void | SelectHDMIOutput (void) |
| This function programs GPIO to '0' to select HDMI Stream path in AXI-Stream switch. More... | |
| void | DisableScaler (void) |
| This function stops VProc_SS scalar IP. More... | |
| u32 | InitStreamMuxGpio (void) |
| This function initializes GPIO IP for Stream Switch selection and gets config parameters. More... | |
| u32 | InitializeCsiRxSs (void) |
| This function initializes MIPI CSI2 RX SS and gets config parameters. More... | |
| XVidC_ColorDepth | GetColorDepth (u32 CsiDataFormat) |
| This function returns selected colour depth of MIPI CSI2 RX SS. More... | |
| void | SetColorDepth (void) |
| This function sets colour depth value getting from MIPI CSI2 RX SS. More... | |
| void | PrintPipeConfig (void) |
| This function prints the video pipeline information. More... | |
| int config_csi_cap_path | ( | ) |
Main function to initialize the video pipleline and process user input.
Referenced by main().
| void ConfigCSC | ( | u32 | width, |
| u32 | height | ||
| ) |
This function programs colour space converter with the given width and height.
| width | is Hsize of a packet in pixels. |
| height | is number of lines of a packet. |
Referenced by InitImageProcessingPipe().
| void ConfigDemosaic | ( | u32 | width, |
| u32 | height | ||
| ) |
This function programs colour space converter with the given width and height.
| width | is Hsize of a packet in pixels. |
| height | is number of lines of a packet. |
Referenced by InitImageProcessingPipe().
| void ConfigGammaLut | ( | u32 | width, |
| u32 | height | ||
| ) |
This function programs colour space converter with the given width and height.
| width | is Hsize of a packet in pixels. |
| height | is number of lines of a packet. |
Referenced by InitImageProcessingPipe().
| void DisableCSI | ( | void | ) |
| void DisableDSI | ( | void | ) |
This function disables MIPI DSI SS.
| void DisableImageProcessingPipe | ( | void | ) |
This function disables Demosaic, GammaLut and VProcSS IPs.
| void DisableScaler | ( | void | ) |
This function stops VProc_SS scalar IP.
| void EnableCSI | ( | void | ) |
This function enables MIPI CSI IP.
References XCsiSs_Activate(), XCsiSs_Configure(), and XCsiSs_Reset().
| void EnableDSI | ( | void | ) |
| void FrmbufrdDoneCallback | ( | void * | CallbackRef | ) |
This function is called when a Frame Buffer Read Done has occurred.
| CallbackRef | is a callback function reference. |
Referenced by config_csi_cap_path().
| void FrmbufwrDoneCallback | ( | void * | CallbackRef | ) |
This function is called when a Frame Buffer Write Done has occurred.
| CallbackRef | is a callback function reference. |
Referenced by config_csi_cap_path().
| XVidC_ColorDepth GetColorDepth | ( | u32 | CsiDataFormat | ) |
This function returns selected colour depth of MIPI CSI2 RX SS.
| CsiDataFormat | is video data format |
Referenced by SetColorDepth().
| void InitDSI | ( | void | ) |
This function programs MIPI DSI SS with the required timing paramters.
| u32 InitializeCsiRxSs | ( | void | ) |
This function initializes MIPI CSI2 RX SS and gets config parameters.
This function programs MIPI CSI SS with the required timing paramters.
References XCsiSs_Config::BaseAddr, XCsiSs_CfgInitialize(), and XCsiSs_LookupConfig().
| int InitIIC | ( | void | ) |
This function initializes IIC controller and gets config parameters.
This function writes, reads, and verifies the data to the IIC EEPROM.
| void InitImageProcessingPipe | ( | void | ) |
This function Initializes Image Processing blocks wrt to selected resolution.
References ConfigCSC(), ConfigDemosaic(), and ConfigGammaLut().
Referenced by main().
| u32 InitStreamMuxGpio | ( | void | ) |
This function initializes GPIO IP for Stream Switch selection and gets config parameters.
Referenced by main().
| void InitVprocSs_Scaler | ( | int | count | ) |
This function initializes and configures VProcSS IP for scalar mode with the given input and output width and height values.
| count | is a flag value to initialize IP only once. |
| void PrintPipeConfig | ( | void | ) |
| void ResetVprocSs_Scaler | ( | void | ) |
This function resets VProcSS_scalar IP.
| void SelectDSIOutput | ( | void | ) |
This function programs GPIO to 1 to select MIPI DSI SS Stream Path in AXI- Stream switch.
Referenced by main().
| void SelectHDMIOutput | ( | void | ) |
This function programs GPIO to '0' to select HDMI Stream path in AXI-Stream switch.
Referenced by main().
| int SensorReadData | ( | u8 * | BufferPtr, |
| u16 | ByteCount | ||
| ) |
This function reads data from the IIC serial Camera Sensor into a specified buffer.
| BufferPtr | contains the address of the data buffer to be filled. |
| ByteCount | contains the number of bytes in the buffer to be read. |
References SensorWriteData().
Referenced by SetupCameraSensor().
| int SensorWriteData | ( | u16 | ByteCount | ) |
This function writes a buffer of data to the IIC serial sensor.
| ByteCount | is the number of bytes in the buffer to be written. |
Referenced by SensorReadData(), SetupCameraSensor(), and StartSensor().
| void SetColorDepth | ( | void | ) |
This function sets colour depth value getting from MIPI CSI2 RX SS.
Referenced by main().
| int SetupCameraSensor | ( | void | ) |
This function setup Camera sensor programming wrt resolution selected.
Referenced by main().
| u32 SetupDSI | ( | void | ) |
This function initializes MIPI DSI SS and gets config parameters.
This function programs MIPI DSI SS with the required timing paramters.
| void SetupIICIntrHandlers | ( | void | ) |
This function sets send, receive and error handlers for IIC interrupts.
References ReceiveHandler(), SendHandler(), and StatusHandler().
| int StartSensor | ( | void | ) |
This function starts camera sensor to transmit captured video.
Referenced by main().