![]() |
PDK API Guide for J721E
|
Files | |
| file | csl_dssWbPipe.h |
| DSS Write Back Pipe CSL FL interface file. | |
Data Structures | |
| struct | CSL_DssWbPipeCfg |
| Configuration for DSS Write Back Pipe. More... | |
| struct | CSL_DssWbPipeDmaCfg |
| DSS Write Back Pipe DMA related Config parameters. More... | |
| struct | CSL_DssWbPipeMFlagCfg |
| DSS Write Back Pipe MFLAG Config parameters. More... | |
Functions | |
| int32_t | CSL_dssWbPipeSetConfig (CSL_dss_wbRegs *wbRegs, const CSL_DssWbPipeCfg *wbCfg) |
| Configure the Write Back Pipe. More... | |
| void | CSL_dssWbPipeSetDmaConfig (CSL_dss_wbRegs *wbRegs, const CSL_DssWbPipeDmaCfg *dmaCfg) |
| Configure the Write Back Pipe DMA parameters. More... | |
| int32_t | CSL_dssWbPipeCheckFmt (uint32_t fvid2Fmt) |
| Checks if the destination Fvid2_format is a valid format supported by writeback pipeline. More... | |
| void | CSL_dssWbPipeSetCSCCoeff (CSL_dss_wbRegs *wbRegs, const CSL_DssCscCoeff *coeff) |
| Configure the coefficients for Color Space Conversion. More... | |
| void | CSL_dssWbPipeSetBuffAddr (CSL_dss_wbRegs *wbRegs, uint32_t field, uint64_t baseAddrRGBY, uint64_t baseAddrUV) |
| Set the write back buffer address. More... | |
| void | CSL_dssWbPipeEnable (CSL_dss_wbRegs *wbRegs, uint32_t enable) |
| Enable the DSS Write Back Pipe. More... | |
| void | CSL_dssWbPipeSetMflagConfig (CSL_dss_wbRegs *wbRegs, const CSL_DssWbPipeMFlagCfg *mflagCfg) |
| Set the MFLAG configuration. More... | |
| void | CSL_dssWbPipeSetGoBit (CSL_dss_wbRegs *wbRegs) |
| GO Command for the WB pipeline. It is used to synchronize the pipelines associated with the WB output. More... | |
| int32_t | CSL_dssWbGetPitchFactors (uint32_t fvid2Fmt, uint32_t *pitchValArr) |
| This function populates the pitchValArr with the Bits Per Pixel for the provided data format. More... | |
| static void | CSL_dssWbPipeCfgInit (CSL_DssWbPipeCfg *wbCfg) |
| CSL_DssWbPipeCfg structure init function. More... | |
| static void | CSL_dssWbPipeDmaCfgInit (CSL_DssWbPipeDmaCfg *dmaCfg) |
| CSL_DssWbPipeDmaCfg structure init function. More... | |
| static void | CSL_dssWbPipeMFlagCfgInit (CSL_DssWbPipeMFlagCfg *mflagCfg) |
| CSL_DssWbPipeMFlagCfg structure init function. More... | |
DSS Write Back Pipe YUV Alignment | |
| #define | CSL_DSS_WB_PIPE_YUV_ALIGN_LSB ((uint32_t) CSL_DSS_WB_ATTRIBUTES2_YUV_ALIGN_VAL_LSB) |
| Data is LSB aligned (MSB unused) More... | |
| #define | CSL_DSS_WB_PIPE_YUV_ALIGN_MSB ((uint32_t) CSL_DSS_WB_ATTRIBUTES2_YUV_ALIGN_VAL_MSB) |
| Data is MSB aligned (LSB unused) More... | |
DSS Write Back Pipe Scaler Value | |
| #define | CSL_DSS_WB_PIPE_SC_DISABLED ((uint32_t) CSL_DSS_WB_ATTRIBUTES_RESIZEENABLE_VAL_RESIZEPROC) |
| Scaler is disabled. More... | |
| #define | CSL_DSS_WB_PIPE_SC_ENABLED_H ((uint32_t) CSL_DSS_WB_ATTRIBUTES_RESIZEENABLE_VAL_HRESIZE) |
| Horizontal scaling is enabled. More... | |
| #define | CSL_DSS_WB_PIPE_SC_ENABLED_V ((uint32_t) CSL_DSS_WB_ATTRIBUTES_RESIZEENABLE_VAL_VRESIZE) |
| Vertical scaling is enabled. More... | |
| #define | CSL_DSS_WB_PIPE_SC_ENABLED_HV ((uint32_t) CSL_DSS_WB_ATTRIBUTES_RESIZEENABLE_VAL_HVRESIZE) |
| Both horizontal and vertical scaling is enabled. More... | |
DSS Write Back Pipe Priority Value | |
| #define | CSL_DSS_WB_PIPE_PRIORITY_NORMAL ((uint32_t) CSL_DSS_WB_ATTRIBUTES_ARBITRATION_VAL_NORMALPRIO) |
| Priority of write back pipeline is normal. More... | |
| #define | CSL_DSS_WB_PIPE_PRIORITY_HIGH ((uint32_t) CSL_DSS_WB_ATTRIBUTES_ARBITRATION_VAL_HIGHPRIO) |
| Priority of write back pipeline is high. More... | |
DSS Write Back Pipe Mode | |
| #define | CSL_DSS_WB_PIPE_MODE_CAPTURE ((uint32_t) CSL_DSS_WB_ATTRIBUTES_WRITEBACKMODE_VAL_CAPTURE) |
| Capture Write Back Mode. More... | |
| #define | CSL_DSS_WB_PIPE_MODE_M2M ((uint32_t) CSL_DSS_WB_ATTRIBUTES_WRITEBACKMODE_VAL_MEM2MEM) |
| Memory to memory mode. More... | |
| #define CSL_DSS_WB_PIPE_YUV_ALIGN_LSB ((uint32_t) CSL_DSS_WB_ATTRIBUTES2_YUV_ALIGN_VAL_LSB) |
Data is LSB aligned (MSB unused)
| #define CSL_DSS_WB_PIPE_YUV_ALIGN_MSB ((uint32_t) CSL_DSS_WB_ATTRIBUTES2_YUV_ALIGN_VAL_MSB) |
Data is MSB aligned (LSB unused)
| #define CSL_DSS_WB_PIPE_SC_DISABLED ((uint32_t) CSL_DSS_WB_ATTRIBUTES_RESIZEENABLE_VAL_RESIZEPROC) |
Scaler is disabled.
| #define CSL_DSS_WB_PIPE_SC_ENABLED_H ((uint32_t) CSL_DSS_WB_ATTRIBUTES_RESIZEENABLE_VAL_HRESIZE) |
Horizontal scaling is enabled.
| #define CSL_DSS_WB_PIPE_SC_ENABLED_V ((uint32_t) CSL_DSS_WB_ATTRIBUTES_RESIZEENABLE_VAL_VRESIZE) |
Vertical scaling is enabled.
| #define CSL_DSS_WB_PIPE_SC_ENABLED_HV ((uint32_t) CSL_DSS_WB_ATTRIBUTES_RESIZEENABLE_VAL_HVRESIZE) |
Both horizontal and vertical scaling is enabled.
| #define CSL_DSS_WB_PIPE_PRIORITY_NORMAL ((uint32_t) CSL_DSS_WB_ATTRIBUTES_ARBITRATION_VAL_NORMALPRIO) |
Priority of write back pipeline is normal.
| #define CSL_DSS_WB_PIPE_PRIORITY_HIGH ((uint32_t) CSL_DSS_WB_ATTRIBUTES_ARBITRATION_VAL_HIGHPRIO) |
Priority of write back pipeline is high.
| #define CSL_DSS_WB_PIPE_MODE_CAPTURE ((uint32_t) CSL_DSS_WB_ATTRIBUTES_WRITEBACKMODE_VAL_CAPTURE) |
Capture Write Back Mode.
| #define CSL_DSS_WB_PIPE_MODE_M2M ((uint32_t) CSL_DSS_WB_ATTRIBUTES_WRITEBACKMODE_VAL_MEM2MEM) |
Memory to memory mode.
| #define CSL_DSS_WB_PIPE_CAPT_RATE_ALL ((uint32_t) CSL_DSS_WB_ATTRIBUTES_CAPTUREMODE_VAL_ALL) |
All frames are captured.
| #define CSL_DSS_WB_PIPE_CAPT_RATE_1 ((uint32_t) CSL_DSS_WB_ATTRIBUTES_CAPTUREMODE_VAL_ONLY1) |
Only one frame is captured.
| #define CSL_DSS_WB_PIPE_CAPT_RATE_1_FROM_2 ((uint32_t) CSL_DSS_WB_ATTRIBUTES_CAPTUREMODE_VAL_ONLY1_2) |
Only one out of two frames is captured.
| #define CSL_DSS_WB_PIPE_CAPT_RATE_1_FROM_3 ((uint32_t) CSL_DSS_WB_ATTRIBUTES_CAPTUREMODE_VAL_ONLY1_3) |
Only one out of three frames is captured.
| #define CSL_DSS_WB_PIPE_CAPT_RATE_1_FROM_4 ((uint32_t) CSL_DSS_WB_ATTRIBUTES_CAPTUREMODE_VAL_ONLY1_4) |
Only one out of four frames is captured.
| #define CSL_DSS_WB_PIPE_CAPT_RATE_1_FROM_5 ((uint32_t) CSL_DSS_WB_ATTRIBUTES_CAPTUREMODE_VAL_ONLY1_5) |
Only one out of five frames is captured.
| #define CSL_DSS_WB_PIPE_CAPT_RATE_1_FROM_6 ((uint32_t) CSL_DSS_WB_ATTRIBUTES_CAPTUREMODE_VAL_ONLY1_6) |
Only one out of six frames is captured.
| #define CSL_DSS_WB_PIPE_CAPT_RATE_1_FROM_7 ((uint32_t) CSL_DSS_WB_ATTRIBUTES_CAPTUREMODE_VAL_ONLY1_7) |
Only one out of seven frames is captured.
| int32_t CSL_dssWbPipeSetConfig | ( | CSL_dss_wbRegs * | wbRegs, |
| const CSL_DssWbPipeCfg * | wbCfg | ||
| ) |
Configure the Write Back Pipe.
| wbRegs | Pointer to a CSL_dss_wbRegs structure containing the Write Back Pipe configuration |
| wbCfg | Pointer to the CSL_DssWbPipeCfg structure. This parameter should not be NULL |
| void CSL_dssWbPipeSetDmaConfig | ( | CSL_dss_wbRegs * | wbRegs, |
| const CSL_DssWbPipeDmaCfg * | dmaCfg | ||
| ) |
Configure the Write Back Pipe DMA parameters.
| wbRegs | Pointer to a CSL_dss_wbRegs structure containing the Write Back Pipe configuration |
| dmaCfg | Pointer to the CSL_DssWbPipeDmaCfg structure. This parameter should not be NULL |
| int32_t CSL_dssWbPipeCheckFmt | ( | uint32_t | fvid2Fmt | ) |
Checks if the destination Fvid2_format is a valid format supported by writeback pipeline.
| fvid2Fmt | Fvid2_format value that is to be checked for validity. |
| void CSL_dssWbPipeSetCSCCoeff | ( | CSL_dss_wbRegs * | wbRegs, |
| const CSL_DssCscCoeff * | coeff | ||
| ) |
Configure the coefficients for Color Space Conversion.
| wbRegs | Pointer to a CSL_dss_wbRegs structure containing the Write Back Pipe configuration |
| coeff | Pointer to CSL_DssCscCoeff structure. This parameter should not be NULL |
| void CSL_dssWbPipeSetBuffAddr | ( | CSL_dss_wbRegs * | wbRegs, |
| uint32_t | field, | ||
| uint64_t | baseAddrRGBY, | ||
| uint64_t | baseAddrUV | ||
| ) |
Set the write back buffer address.
| wbRegs | Pointer to a CSL_dss_wbRegs structure containing the Write Back Pipe configuration |
| field | Top or bottom field. Refer Fvid2_Fid for values. Top is even field and Bottom is odd |
| baseAddrRGBY | Base address of RGB or Y plane depending on format |
| baseAddrUV | UV base address valid only for YUV420-NV12/NV21 |
| void CSL_dssWbPipeEnable | ( | CSL_dss_wbRegs * | wbRegs, |
| uint32_t | enable | ||
| ) |
Enable the DSS Write Back Pipe.
| wbRegs | Pointer to a CSL_dss_wbRegs structure containing the Write Back Pipe configuration |
| enable | Enable or disable the Write Back Pipe TRUE: Enable FALSE: Disable |
| void CSL_dssWbPipeSetMflagConfig | ( | CSL_dss_wbRegs * | wbRegs, |
| const CSL_DssWbPipeMFlagCfg * | mflagCfg | ||
| ) |
Set the MFLAG configuration.
| wbRegs | Pointer to a CSL_dss_wbRegs structure containing the Write Back Pipe configuration |
| mflagCfg | Pointer to CSL_DssWbPipeMFlagCfg structure. This parameter should not be NULL |
| void CSL_dssWbPipeSetGoBit | ( | CSL_dss_wbRegs * | wbRegs | ) |
GO Command for the WB pipeline. It is used to synchronize the pipelines associated with the WB output.
| wbRegs | Pointer to a CSL_dss_wbRegs structure containing the Write Back Pipe configuration |
| int32_t CSL_dssWbGetPitchFactors | ( | uint32_t | fvid2Fmt, |
| uint32_t * | pitchValArr | ||
| ) |
This function populates the pitchValArr with the Bits Per Pixel for the provided data format.
| fvid2Fmt | FVID2 Frame data Format. For valid values see Fvid2_DataFormat. |
| pitchValArr | Pointer to the array in which pitches are returned. The array should be of size FVID2_MAX_PLANES_PER_FIELD. |
|
inlinestatic |
CSL_DssWbPipeCfg structure init function.
| wbCfg | Pointer to CSL_DssWbPipeCfg structure |
|
inlinestatic |
CSL_DssWbPipeDmaCfg structure init function.
| dmaCfg | Pointer to CSL_DssWbPipeDmaCfg structure |
|
inlinestatic |
CSL_DssWbPipeMFlagCfg structure init function.
| mflagCfg | Pointer to CSL_DssWbPipeMFlagCfg structure |