![]() |
v_csc
Xilinx SDK Drivers API Documentation
|
Data Structures | |
| struct | XV_Csc_l2 |
| Csc driver Layer 2 data. More... | |
Macros | |
| #define | XV_CscSetColorDepth(InstancePtr, val) ((InstancePtr)->ColorDepth = val) |
| This macro sets color depth for CSC core. More... | |
| #define | XV_CscGetBrightness(InstancePtr) (((InstancePtr)->Brightness-20)/2) |
| This macro returns current brightness setting by reading layer 2 fw register map. More... | |
| #define | XV_CscGetContrast(InstancePtr) (((InstancePtr)->Contrast+200)/4) |
| This macro returns current contrast setting by reading layer 2 fw register map. More... | |
| #define | XV_CscGetSaturation(InstancePtr) (((InstancePtr)->Saturation/2)) |
| This macro returns current saturation setting by reading layer 2 fw register map. More... | |
| #define | XV_CscGetRedGain(InstancePtr) (((InstancePtr)->RedGain-20)/2) |
| This macro returns current red gain setting by reading layer 2 fw register map. More... | |
| #define | XV_CscGetGreenGain(InstancePtr) (((InstancePtr)->GreenGain-20)/2) |
| This macro returns current green gain setting by reading layer 2 fw register map. More... | |
| #define | XV_CscGetBlueGain(InstancePtr) (((InstancePtr)->BlueGain-20)/2) |
| This macro returns current blue gain setting by reading layer 2 fw register map. More... | |
| #define | XV_CscGetColorFormatIn(InstancePtr) ((InstancePtr)->ColorFormatIn) |
| This macro returns current set input color format by reading layer 2 fw register map. More... | |
| #define | XV_CscGetColorFormatOut(InstancePtr) ((InstancePtr)->ColorFormatOut) |
| This macro returns current set output color format by reading layer 2 fw register map. More... | |
| #define | XV_CscGetColorStdIn(InstancePtr) ((InstancePtr)->StandardIn) |
| This macro returns current set input color standard by reading layer 2 fw register map. More... | |
| #define | XV_CscGetColorStdOut(InstancePtr) ((InstancePtr)->StandardOut) |
| This macro returns current set output color standard by reading layer 2 fw register map. More... | |
| #define | XV_CscGetOutputRange(InstancePtr) ((InstancePtr)->OutputRange) |
| This macro returns current set output range by reading layer 2 fw register map. More... | |
| #define | XV_CscIs422Enabled(InstancePtr) ((InstancePtr)->Csc.Config.Is422Enabled) |
| This macro checks if Csc instance is enabled for 4:2:2 processing. More... | |
| #define | XV_CscIs420Enabled(InstancePtr) ((InstancePtr)->Csc.Config.Is420Enabled) |
| This macro checks if Csc instance is enabled for 4:2:0 processing. More... | |
| #define | XV_CscIsDemoWindowEnabled(InstancePtr) ((InstancePtr)->Csc.Config.IsDemoWindowEnabled) |
| This macro checks if Csc instance is enabled for the Demo Window. More... | |
Enumerations | |
| enum | XV_CSC_REG_UPDT_WIN |
| This typedef enumerates the window within which the csc core will have an impact. More... | |
| enum | XV_CSC_FW_REG_MMAP |
| CSC Layer 2 Register Map. More... | |
Functions | |
| int | XV_CscInitialize (XV_Csc_l2 *InstancePtr, u16 DeviceId) |
| This function initializes the core instance. More... | |
| void | XV_CscSetPowerOnDefaultState (XV_Csc_l2 *CscPtr) |
| This function sets the CSC IP layer 2 fw registers to power on default state. More... | |
| void | XV_CscStart (XV_Csc_l2 *InstancePtr) |
| This function starts the Color space converter core. More... | |
| void | XV_CscStop (XV_Csc_l2 *InstancePtr) |
| This function stops the Color space converter. More... | |
| void | XV_CscSetActiveSize (XV_Csc_l2 *InstancePtr, u32 width, u32 height) |
| This function set the frame resolution for the Color space converter This also will reset the demo window to full frame. More... | |
| int | XV_CscSetDemoWindow (XV_Csc_l2 *InstancePtr, XVidC_VideoWindow *DemoWindow) |
| This function sets the demo window for the Color space converter. More... | |
| int | XV_CscSetColorspace (XV_Csc_l2 *InstancePtr, XVidC_ColorFormat cfmtIn, XVidC_ColorFormat cfmtOut, XVidC_ColorStd cstdIn, XVidC_ColorStd cstdOut, XVidC_ColorRange cRangeOut) |
| This function configures the Color space converter to user specified settings. More... | |
| void | XV_CscSetBrightness (XV_Csc_l2 *InstancePtr, s32 val) |
| This function set brightness to specified value. More... | |
| void | XV_CscSetContrast (XV_Csc_l2 *InstancePtr, s32 val) |
| This function set contrast to specified value. More... | |
| void | XV_CscSetSaturation (XV_Csc_l2 *InstancePtr, s32 val) |
| This function set saturation to specified value. More... | |
| void | XV_CscSetRedGain (XV_Csc_l2 *InstancePtr, s32 val) |
| This function set red gain to specified value. More... | |
| void | XV_CscSetGreenGain (XV_Csc_l2 *InstancePtr, s32 val) |
| This function set green gain to specified value. More... | |
| void | XV_CscSetBlueGain (XV_Csc_l2 *InstancePtr, s32 val) |
| This function set blue gain to specified value. More... | |
| void | XV_CscDbgReportStatus (XV_Csc_l2 *InstancePtr) |
| This function prints CSC IP status on console. More... | |
| #define XV_CscGetBlueGain | ( | InstancePtr | ) | (((InstancePtr)->BlueGain-20)/2) |
#include <xv_csc_l2.h>
This macro returns current blue gain setting by reading layer 2 fw register map.
It also translates between hw register value and user view
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscGetBrightness | ( | InstancePtr | ) | (((InstancePtr)->Brightness-20)/2) |
#include <xv_csc_l2.h>
This macro returns current brightness setting by reading layer 2 fw register map.
It also translates between hw register value and user view
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscGetColorFormatIn | ( | InstancePtr | ) | ((InstancePtr)->ColorFormatIn) |
#include <xv_csc_l2.h>
This macro returns current set input color format by reading layer 2 fw register map.
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscGetColorFormatOut | ( | InstancePtr | ) | ((InstancePtr)->ColorFormatOut) |
#include <xv_csc_l2.h>
This macro returns current set output color format by reading layer 2 fw register map.
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscGetColorStdIn | ( | InstancePtr | ) | ((InstancePtr)->StandardIn) |
#include <xv_csc_l2.h>
This macro returns current set input color standard by reading layer 2 fw register map.
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscGetColorStdOut | ( | InstancePtr | ) | ((InstancePtr)->StandardOut) |
#include <xv_csc_l2.h>
This macro returns current set output color standard by reading layer 2 fw register map.
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscGetContrast | ( | InstancePtr | ) | (((InstancePtr)->Contrast+200)/4) |
#include <xv_csc_l2.h>
This macro returns current contrast setting by reading layer 2 fw register map.
It also translates between hw register value and user view
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscGetGreenGain | ( | InstancePtr | ) | (((InstancePtr)->GreenGain-20)/2) |
#include <xv_csc_l2.h>
This macro returns current green gain setting by reading layer 2 fw register map.
It also translates between hw register value and user view
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscGetOutputRange | ( | InstancePtr | ) | ((InstancePtr)->OutputRange) |
#include <xv_csc_l2.h>
This macro returns current set output range by reading layer 2 fw register map.
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscGetRedGain | ( | InstancePtr | ) | (((InstancePtr)->RedGain-20)/2) |
#include <xv_csc_l2.h>
This macro returns current red gain setting by reading layer 2 fw register map.
It also translates between hw register value and user view
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscGetSaturation | ( | InstancePtr | ) | (((InstancePtr)->Saturation/2)) |
#include <xv_csc_l2.h>
This macro returns current saturation setting by reading layer 2 fw register map.
It also translates between hw register value and user view
| InstancePtr | is pointer to csc core layer 2 |
| #define XV_CscIs420Enabled | ( | InstancePtr | ) | ((InstancePtr)->Csc.Config.Is420Enabled) |
#include <xv_csc_l2.h>
This macro checks if Csc instance is enabled for 4:2:0 processing.
| InstancePtr | is pointer to csc core layer 2 |
Referenced by XV_CscDbgReportStatus(), and XV_CscSetColorspace().
| #define XV_CscIs422Enabled | ( | InstancePtr | ) | ((InstancePtr)->Csc.Config.Is422Enabled) |
#include <xv_csc_l2.h>
This macro checks if Csc instance is enabled for 4:2:2 processing.
| InstancePtr | is pointer to csc core layer 2 |
Referenced by XV_CscDbgReportStatus(), and XV_CscSetColorspace().
| #define XV_CscIsDemoWindowEnabled | ( | InstancePtr | ) | ((InstancePtr)->Csc.Config.IsDemoWindowEnabled) |
#include <xv_csc_l2.h>
This macro checks if Csc instance is enabled for the Demo Window.
| InstancePtr | is pointer to csc core layer 2 |
Referenced by XV_CscDbgReportStatus(), XV_CscSetActiveSize(), and XV_CscSetDemoWindow().
| #define XV_CscSetColorDepth | ( | InstancePtr, | |
| val | |||
| ) | ((InstancePtr)->ColorDepth = val) |
#include <xv_csc_l2.h>
This macro sets color depth for CSC core.
| InstancePtr | is a pointer to csc layer 2 fw register map |
| val | is the requested color depth |
| enum XV_CSC_FW_REG_MMAP |
#include <xv_csc_l2.h>
CSC Layer 2 Register Map.
Each instance of the csc core will have it's own register map
| enum XV_CSC_REG_UPDT_WIN |
#include <xv_csc_l2.c>
This typedef enumerates the window within which the csc core will have an impact.
Coordinates outside the window will be passed as-is to output
| void XV_CscDbgReportStatus | ( | XV_Csc_l2 * | InstancePtr | ) |
#include <xv_csc_l2.c>
This function prints CSC IP status on console.
| InstancePtr | is the instance pointer to the CSC IP instance to be worked on |
References XV_csc_Config::BaseAddress, XV_csc::Config, XV_CscIs420Enabled, XV_CscIs422Enabled, and XV_CscIsDemoWindowEnabled.
| int XV_CscInitialize | ( | XV_Csc_l2 * | InstancePtr, |
| u16 | DeviceId | ||
| ) |
#include <xv_csc_l2.c>
This function initializes the core instance.
| InstancePtr | is a pointer to core instance to be worked upon |
| DeviceId | is instance id of the core |
References XV_CscSetPowerOnDefaultState().
| void XV_CscSetActiveSize | ( | XV_Csc_l2 * | InstancePtr, |
| u32 | width, | ||
| u32 | height | ||
| ) |
#include <xv_csc_l2.c>
This function set the frame resolution for the Color space converter This also will reset the demo window to full frame.
| InstancePtr | is a pointer to the core instance to be worked on. |
| width | is the input stream width |
| height | is the input stream height |
References XV_CscIsDemoWindowEnabled.
| void XV_CscSetBlueGain | ( | XV_Csc_l2 * | InstancePtr, |
| s32 | val | ||
| ) |
#include <xv_csc_l2.c>
This function set blue gain to specified value.
It also translates user setting of 0-100 to hw register range
| InstancePtr | is pointer to csc core instance |
| val | is new gain value |
| void XV_CscSetBrightness | ( | XV_Csc_l2 * | InstancePtr, |
| s32 | val | ||
| ) |
#include <xv_csc_l2.c>
This function set brightness to specified value.
It also translates user setting of 0-100 to hw register range
| InstancePtr | is pointer to csc core instance |
| val | is new brightness value |
| int XV_CscSetColorspace | ( | XV_Csc_l2 * | InstancePtr, |
| XVidC_ColorFormat | cfmtIn, | ||
| XVidC_ColorFormat | cfmtOut, | ||
| XVidC_ColorStd | cstdIn, | ||
| XVidC_ColorStd | cstdOut, | ||
| XVidC_ColorRange | cRangeOut | ||
| ) |
#include <xv_csc_l2.c>
This function configures the Color space converter to user specified settings.
Before any feature specific calls in layer-2 driver is made the csc core should have been configured via this call.
| InstancePtr | is a pointer to the core instance to be worked on. |
| cfmtIn | is input color space |
| cfmtOut | is output color space |
| cstdIn | is input color standard |
| cstdOut | is output color standard |
| cRangeOut | is the selected output range |
References XV_CscIs420Enabled, and XV_CscIs422Enabled.
| void XV_CscSetContrast | ( | XV_Csc_l2 * | InstancePtr, |
| s32 | val | ||
| ) |
#include <xv_csc_l2.c>
This function set contrast to specified value.
It also translates user setting of 0-100 to hw register range
| InstancePtr | is pointer to csc core instance |
| val | is new contrast value |
| int XV_CscSetDemoWindow | ( | XV_Csc_l2 * | InstancePtr, |
| XVidC_VideoWindow * | DemoWindow | ||
| ) |
#include <xv_csc_l2.c>
This function sets the demo window for the Color space converter.
Any pixel outside the demo window will not be impacted and will be passed to output as-is
| InstancePtr | is a pointer to the core instance to be worked on. |
| DemoWindow | is structure that contains window coordinates and size |
References XV_CscIsDemoWindowEnabled.
| void XV_CscSetGreenGain | ( | XV_Csc_l2 * | InstancePtr, |
| s32 | val | ||
| ) |
#include <xv_csc_l2.c>
This function set green gain to specified value.
It also translates user setting of 0-100 to hw register range
| InstancePtr | is pointer to csc core instance |
| val | is new gain value |
| void XV_CscSetPowerOnDefaultState | ( | XV_Csc_l2 * | CscPtr | ) |
#include <xv_csc_l2.c>
This function sets the CSC IP layer 2 fw registers to power on default state.
| CscPtr | is a pointer to the layer 2 |
Referenced by XV_CscInitialize().
| void XV_CscSetRedGain | ( | XV_Csc_l2 * | InstancePtr, |
| s32 | val | ||
| ) |
#include <xv_csc_l2.c>
This function set red gain to specified value.
It also translates user setting of 0-100 to hw register range
| InstancePtr | is pointer to csc core instance |
| val | is new gain value |
| void XV_CscSetSaturation | ( | XV_Csc_l2 * | InstancePtr, |
| s32 | val | ||
| ) |
#include <xv_csc_l2.c>
This function set saturation to specified value.
It also translates user setting of 0-100 to hw register range
| InstancePtr | is pointer to csc core instance |
| val | is new saturation value |
| void XV_CscStart | ( | XV_Csc_l2 * | InstancePtr | ) |
#include <xv_csc_l2.c>
This function starts the Color space converter core.
| InstancePtr | is a pointer to the core instance to be worked on. |
| void XV_CscStop | ( | XV_Csc_l2 * | InstancePtr | ) |
#include <xv_csc_l2.c>
This function stops the Color space converter.
| InstancePtr | is a pointer to the core instance to be worked on. |