MODIFICATION HISTORY:
Ver Who Date Changes ----- --- -------- --------------------------------------------------- 2.00a vc 12/14/10 Updated for ENHANCE V2.0 3.00a rc 09/11/11 Updated for ENHANCE V3.0 4.00a vyc 04/24/12 Updated for ENHANCE V4.00.a Converted from xio.h to xil_io.h, translating basic type, MB cache functions, exceptions and assertion to xil_io format. 5.00a vyc 06/19/13 Updated for ENHANCE V8.0 New edge enhancement algorithm and registers Noise reduction support added 6.0 adk 19/12/13 Updated as per the New Tcl API's 7.0 adk 02/19/14 Changed the filename from enhance.c to xenhance.c. Modified the following functions XENHANCE_CfgInitialize -> XEnhance_CfgInitialize XENHANCE_Setup -> XEnhance_Setup
Implemented the following functions: XEnhance_GetVersion, XEnhance_EnableDbgByPass XEnhance_IsDbgByPassEnabled, XEnhance_DisableDbgBypass XEnhance_EnableDbgTestPattern, XEnhance_IsDbgTestPatternEnabled XEnhance_DisableDbgTestPattern XEnhance_GetDbgFrameCount, XEnhance_GetDbgLineCount, XEnhance_GetDbgPixelCount, XEnhance_SetActiveSize, XEnhance_GetActiveSize, XEnhance_SetNoiseThreshold, XEnhance_GetNoiseThreshold, XEnhance_SetEdgeStrength, XEnhance_GetEdgeStrength, XEnhance_SetHaloSuppress XEnhance_GetHaloSuppress.
#include "xenhance.h"
int XEnhance_CfgInitialize | ( | XEnhance * | InstancePtr, | |
XEnhance_Config * | CfgPtr, | |||
u32 | EffectiveAddr | |||
) |
This function initializes a Enhance core. This function must be called prior to using a Enhance core. Initialization of a Enhance includes setting up the instance data, and ensuring the hardware is in a quiescent state.
InstancePtr | is a pointer to XEnhance instance to be worked on. | |
CfgPtr | is a reference to a configuration structure containing information about the Enhance core. | |
EffectiveAddr | is the base address of the core. If address translation is being used then this parameter must reflect the virtual base address. Otherwise, the physical address should be used. |
void XEnhance_DisableDbgBypass | ( | XEnhance * | InstancePtr | ) |
This function disables Bypass mode of the Enhance core.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
void XEnhance_DisableDbgTestPattern | ( | XEnhance * | InstancePtr | ) |
This function disables the test Pattern mode of the Enhance core.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
void XEnhance_EnableDbgByPass | ( | XEnhance * | InstancePtr | ) |
This sets the bypass bit of the control register to switch the core to bypass mode if debug is enabled in the Enhance core.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
void XEnhance_EnableDbgTestPattern | ( | XEnhance * | InstancePtr | ) |
This function sets the test-pattern mode of the Enhance core if debug features is enabled.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
void XEnhance_GetActiveSize | ( | XEnhance * | InstancePtr, | |
u16 * | HSize, | |||
u16 * | VSize | |||
) |
This function gets the number of Active Pixel per Scan line and number of Active Lines per Frame from the Active Frame Size register.
InstancePtr | is a pointer to XEnhance instance to be worked on. | |
HSize | is a pointer to 16-bit variable in which the number of Active Pixels per Scan Line is returned. (Range is 32 to 7680). | |
VSize | is a pointer to 16-bit variable in which the number of Active Lines per Frame is returned. (Range is 32 to 7680). |
u32 XEnhance_GetDbgFrameCount | ( | XEnhance * | InstancePtr | ) |
This function gets number of frames processed since power-up or last time the core is reset.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
u32 XEnhance_GetDbgLineCount | ( | XEnhance * | InstancePtr | ) |
This function gets the number of lines processed since power-up or last time the core is reset.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
u32 XEnhance_GetDbgPixelCount | ( | XEnhance * | InstancePtr | ) |
This function gets the number of pixels processed since power-up or last time the core is reset.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
u32 XEnhance_GetEdgeStrength | ( | XEnhance * | InstancePtr | ) |
This function gets the Edge Strength value for the Enhance core.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
u32 XEnhance_GetHaloSuppress | ( | XEnhance * | InstancePtr | ) |
This function gets the Halo Suppress value for the Enhance core.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
u32 XEnhance_GetNoiseThreshold | ( | XEnhance * | InstancePtr | ) |
This function gets the Noise Threshold value for the Enhance core.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
u32 XEnhance_GetVersion | ( | XEnhance * | InstancePtr | ) |
This function returns the contents of Version register.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
int XEnhance_IsDbgByPassEnabled | ( | XEnhance * | InstancePtr | ) |
This function gets the current status of the bypass setting of the Enhance core.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
int XEnhance_IsDbgTestPatternEnabled | ( | XEnhance * | InstancePtr | ) |
This function gets the test-pattern mode if debug feature is enabled.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
void XEnhance_SetActiveSize | ( | XEnhance * | InstancePtr, | |
u16 | HSize, | |||
u16 | VSize | |||
) |
This function sets active H/V sizes in the Active size register.
InstancePtr | is a pointer to XEnhance instance to be worked on. | |
HSize | is number of Active Pixels per scan line to be set. Range of HSize is 32 to 7680. | |
VSize | is number of Active Lines per frame to be set. Range of VSize is 32 to 7680. |
void XEnhance_SetEdgeStrength | ( | XEnhance * | InstancePtr, | |
u32 | Strength | |||
) |
This function sets the Edge Strength value for the Enhance core. i.e. The amount of edge enhancement can be controlled through the programmable Enhance Strength parameter.
InstancePtr | is a pointer to XEnhance instance to be worked on. | |
Strength | is the value to set the Edge Strength of the core. |
void XEnhance_SetHaloSuppress | ( | XEnhance * | InstancePtr, | |
u32 | Suppress | |||
) |
This function sets the Halo Suppress value for the Enhance core. i.e. The amount of halo suppression can be controlled through the programmable Halo Suppress parameter.
InstancePtr | is a pointer to XEnhance instance to be worked on. | |
Suppress | is the value to set the Suppression value. |
void XEnhance_SetNoiseThreshold | ( | XEnhance * | InstancePtr, | |
u32 | Threshold | |||
) |
This function sets the Noise Threshold value for the Enhance core The amount of noise reduction can be controlled through Noise Threshold parameter.
InstancePtr | is a pointer to XEnhance instance to be worked on. | |
Threshold | is the value to set the Noise Threshold. |
void XEnhance_Setup | ( | XEnhance * | InstancePtr | ) |
This function sets the input/output frame size in Active Size register and enables the register update.
InstancePtr | is a pointer to XEnhance instance to be worked on. |
Copyright @ 1995-2014 Xilinx, Inc. All rights reserved.