diff --git a/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/functions.html b/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/functions.html old mode 100644 new mode 100755 index 54d8a2d7..ab23efe0 --- a/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/functions.html +++ b/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/functions.html @@ -60,7 +60,7 @@ Here is a list of all class members with links to the classes they belong to:
  • BaseAddress : XYCrCb2Rgb_Config
  • BCoef : XYCrCb2Rgb_Coefficients, XYCrCb2Rgb_Coef_Outputs, XYCrCb2Rgb_Coef_Inputs, XYCrCb2Rgb_Config
  • BOffset -: XYCrCb2Rgb_Coef_Outputs, XYCrCb2Rgb_Config +: XYCrCb2Rgb_Coef_Outputs, XYCrCb2Rgb_Config

    - c -

    - g -

    +: XYCrCb2Rgb_Coef_Outputs, XYCrCb2Rgb_Config

    - h -

    +: XYCrCb2Rgb_Coef_Outputs, XYCrCb2Rgb_Config

    - s -

    +: XYCrCb2Rgb_Coef_Outputs, XYCrCb2Rgb_Config

    - c -

    - g -

    +: XYCrCb2Rgb_Coef_Outputs, XYCrCb2Rgb_Config

    - h -

    +: XYCrCb2Rgb_Coef_Outputs, XYCrCb2Rgb_Config

    - s -

    Copyright @ 1995-2014 Xilinx, Inc. All rights reserved. diff --git a/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/globals_func.html b/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/globals_func.html old mode 100644 new mode 100755 index 4c3bf0dc..00cf1923 --- a/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/globals_func.html +++ b/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/globals_func.html @@ -64,8 +64,8 @@ : xycrcb2rgb.h, xycrcb2rgb.c
  • XYCrCb2Rgb_IsDbgTestPatternEnabled() : xycrcb2rgb.h, xycrcb2rgb.c
  • XYCrCb2Rgb_LookupConfig() : xycrcb2rgb_sinit.c, xycrcb2rgb.h
  • XYCrCb2Rgb_Select_OutputRange() -: xycrcb2rgb.h, xycrcb2rgb.c
  • XYCrCb2Rgb_Select_Standard() -: xycrcb2rgb.h, xycrcb2rgb.c
  • XYCrCb2Rgb_SelfTest() +: xycrcb2rgb.h, xycrcb2rgb.c
  • XYCrCb2Rgb_Select_Standard() +: xycrcb2rgb.h, xycrcb2rgb.c
  • XYCrCb2Rgb_SelfTest() : xycrcb2rgb_selftest.c, xycrcb2rgb.h
  • XYCrCb2Rgb_SetActiveSize() : xycrcb2rgb.h, xycrcb2rgb.c
  • XYCrCb2Rgb_SetBOffset() : xycrcb2rgb.h, xycrcb2rgb.c
  • XYCrCb2Rgb_SetCallBack() diff --git a/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/xycrcb2rgb_8c.html b/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/xycrcb2rgb_8c.html index 93f3bf2d..722d23b5 100644 --- a/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/xycrcb2rgb_8c.html +++ b/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/xycrcb2rgb_8c.html @@ -108,11 +108,11 @@ This file contains the implementation of the interface functions for YCRCB2RGB c void XYCrCb2Rgb_GetCoefs (XYCrCb2Rgb *InstancePtr, struct XYCrCb2Rgb_Coefficients *Coef) -void XYCrCb2Rgb_Select_Standard (XYCrCb2Rgb *InstancePtr, enum Standards StandardSel, enum OutputRanges InputRange, u32 DataWidth, struct XYCrCb2Rgb_Coef_Inputs *CoefIn) +void XYCrCb2Rgb_Select_Standard (XYCrCb2Rgb *InstancePtr, enum XYcc_Standards StandardSel, enum XYcc_OutputRanges InputRange, u32 DataWidth, struct XYCrCb2Rgb_Coef_Inputs *CoefIn) u32 XYCrCb2Rgb_Coefficient_Translation (XYCrCb2Rgb *InstancePtr, struct XYCrCb2Rgb_Coef_Inputs *CoefIn, struct XYCrCb2Rgb_Coef_Outputs *CoefOut, u32 DataWidth, u32 MWidth) -void XYCrCb2Rgb_Select_OutputRange (XYCrCb2Rgb *InstancePtr, enum OutputRanges Range) +void XYCrCb2Rgb_Select_OutputRange (XYCrCb2Rgb *InstancePtr, enum XYcc_OutputRanges Range)

    Function Documentation

    @@ -729,7 +729,7 @@ This function returns the test-pattern generator mode (enabled or not), if debug

    - +

    @@ -742,7 +742,7 @@ This function returns the test-pattern generator mode (enabled or not), if debug - + @@ -759,7 +759,7 @@ This function governs the range of outputs R, G and B by affecting the conversio
    Parameters:
    enum OutputRanges enum XYcc_OutputRanges  Range 
    - +
    InstancePtr is a pointer to the XYCrCb2Rgb instance.
    Range needs to be set from the enum OutputRanges values as: 0 = XYCC_TV_16_TO_240, 1 = XYCC_STUDIO_16_TO_235, 2 = XYCC_GRAPHICS_0_TO_255.
    Range needs to be set from the enum XYcc_OutputRanges values as: 0 = XYCC_TV_16_TO_240, 1 = XYCC_STUDIO_16_TO_235, 2 = XYCC_GRAPHICS_0_TO_255.
    Returns:
    None.
    @@ -767,7 +767,7 @@ This function governs the range of outputs R, G and B by affecting the conversio

    - +

    @@ -780,13 +780,13 @@ This function governs the range of outputs R, G and B by affecting the conversio - + - + @@ -815,8 +815,8 @@ This function populates an - - + +
    enum Standards enum XYcc_Standards  StandardSel,
    enum OutputRanges enum XYcc_OutputRanges  InputRange,
    InstancePtr is a pointer to the XYCrCb2Rgbb instance.
    StandardSel needs to be set from enum Standards value as : 0 = XYCC_STANDARD_ITU_601_SD 1 = XYCC_STANDARD_ITU_709_NTSC 2 = XYCC_STANDARD_ITU_709_PAL 3 = XYCC_STANDARD_YUV.
    InputRange needs to be set from enum OutputRanges value as: 0 = XYCC_TV_16_TO_240, 1 = XYCC_STUDIO_16_TO_235, 2 = XYCC_GRAPHICS_0_TO_255.
    StandardSel needs to be set from enum XYcc_Standards value as : 0 = XYCC_STANDARD_ITU_601_SD 1 = XYCC_STANDARD_ITU_709_NTSC 2 = XYCC_STANDARD_ITU_709_PAL 3 = XYCC_STANDARD_YUV.
    InputRange needs to be set from enum XYcc_OutputRanges value as: 0 = XYCC_TV_16_TO_240, 1 = XYCC_STUDIO_16_TO_235, 2 = XYCC_GRAPHICS_0_TO_255.
    DataWidth specifies the valid range of [8,10,12,16] that needs to be set.
    CoefIn specifies a pointer to a XYCrCb2Rgb_Coef_Inputs structure which is populated with the values from selected video standard.
    diff --git a/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/xycrcb2rgb_8h.html b/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/xycrcb2rgb_8h.html index 0eb1f37e..b4fc15fc 100755 --- a/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/xycrcb2rgb_8h.html +++ b/XilinxProcessorIPLib/drivers/ycrcb2rgb/doc/html/api/xycrcb2rgb_8h.html @@ -21,96 +21,7 @@
  • File List
  • File Members
  • -

    xycrcb2rgb.h File Reference


    Detailed Description

    -This header file contains identifiers and register-level driver functions (or macros), range macros, structure typedefs that can be used to access the Xilinx YCRCB2RGB core.

    -The YCrCb to RGB Color-Space Convertor core is a simplified 3x3 matrix multiplier converts three input color samples to three output samples in a single clock cycle. The core supports four common format conversions as well as a custom mode that allows for a user-defined transform. The core is capable of a maximum resolution of 7680 columns by 7680 rows with 8, 10, 12, or 16 bits per pixel.

    -Initialization & Configuration

    -The device driver enables higher layer software (e.g., an application) to communicate to the YCRCB2RGB core.

    -XYCrCb2Rgb_CfgInitialize() API is used to initialize the YCRCB2RGB core. The user needs to first call the XYCrCb2Rgb_LookupConfig() API which returns the Configuration structure pointer which is passed as a parameter to the XYCrCb2Rgb_CfgInitialize() API.

    - Interrupts

    -The driver provides an interrupt handler XYCrCb2Rgb_IntrHandler for handling the interrupt from the YCRCB2RGB core. The users of this driver have to register this handler with the interrupt system and provide the callback functions by using XYCrCb2Rgb_SetCallBack API.

    - Virtual Memory

    -This driver supports Virtual Memory. The RTOS is responsible for calculating the correct device base address in Virtual Memory space.

    - Threads

    -This driver is not thread safe. Any needs for threads or thread mutual exclusion must be satisfied by the layer above this driver.

    - Asserts

    -Asserts are used within all Xilinx drivers to enforce constraints on argument values. Asserts can be turned off on a system-wide basis by defining, at compile time, the NDEBUG identifier. By default, asserts are turned on and it is recommended that users leave asserts on during development.

    - Building the driver

    -The XYCrCb2Rgb driver is composed of several source files. This allows the user to build and link only those parts of the driver that are necessary.

    -

    - MODIFICATION HISTORY:

    -

     Ver   Who    Date     Changes
    - ----- ------ -------- -------------------------------------------------------
    - 5.00a tb     02/28/12 Updated for YCRCB2RGB V5.00.a
    - 5.01a bao    12/28/12 Converted from xio.h to xil_io.h, translating basic
    -                       types, MB cache functions, exceptions and assertions
    -                       to xil_io format.
    - 6.0   adk    19/12/13 Updated as per the New Tcl API's
    - 7.0   adk    01/31/14 Changed the file name from "ycrcb2rgb.h" to
    -                       "xycrcb2rgb.h".

    -

                           Moved register offsets and bit definitions from
    -                       ycrcb2rgb.h file to xycrcb2rgb_hw.h file.

    -

                           Removed YCC_TIMING_STATUS register offset because this
    -                       register is not present in latest product guide.

    -

                           Removed following function macros:
    -                       YCC_Enable, YCC_Disable, YCC_RegUpdateEnable,
    -                       YCC_RegUpdateDisable, YCC_Reset, YCC_ClearReset,
    -                       YCC_AutoSyncReset, ycc_max..

    -

                           Removed following functions:
    -                       YCC_select_standard, YCC_coefficient_translation,
    -                       YCC_set_coefficients, YCC_get_coefficients.

    -

                           Added following handler types as enum:
    -                       XYCC_HANDLER_PROCSTART, XYCC_HANDLER_FRAMEDONE,
    -                       XYCC_HANDLER_ERROR.

    -

                           Added following standard types as enum:
    -                       XYCC_STANDARD_ITU_601_SD, XYCC_STANDARD_ITU_709_NTSC,
    -                       XYCC_STANDARD_ITU_709_PAL, XYCC_STANDARD_YUV,
    -                       XYCC_STANDARD_CUSTOM.

    -

                           Added following output ranges as enum:
    -                       XYCC_TV_16_TO_240, XYCC_STUDIO_16_TO_235,
    -                       XYCC_GRAPHICS_0_TO_255.

    -

                           Added range macros for ActiveSize, RGBMAX, RGBMIN,
    -                       ROFFSET, GOFFSET, BOFFSET registers.

    -

                           Added following function macros:
    -                       XYCrCb2Rgb_IntrEnable, XYCrCb2Rgb_IntrDisable,
    -                       XYCrCb2Rgb_StatusGetPending, XYCrCb2Rgb_IntrGetPending,
    -                       XYCrCb2Rgb_IntrClear, XYCrCb2Rgb_Reset,
    -                       XYCrCb2Rgb_Enable, XYCrCb2Rgb_Disable,
    -                       XYCrCb2Rgb_Start, XYCrCb2Rgb_Stop,
    -                       XYCrCb2Rgb_RegUpdateEnable,
    -                       XYCrCb2Rgb_RegUpdateDisable,
    -                       XYCrCb2Rgb_SyncReset, XYCrCb2Rgb_Max

    -

                           Added core, configuration and coefficient structure.
    -                       Renamed ycc_coef_inputs -> XYCrCb2Rgb_Coef_Inputs and
    -                       ycc_coef_outputs - > XYCrCb2Rgb_Coef_Outputs.

    -

                           Added callback functions typedef.

    -

                           Implemented XYCrCb2Rgb_LookupConfig in
    -                       xycrcb2rgb_sinit.c
    -                       Implemented XYCrCb2Rgb_SelfTest in
    -                       xycrcb2rgb_selftest.c
    -                       Implemented XYCrCb2Rgb_IntrHandler,
    -                       XYCrCb2Rgb_SetCallBack in xycrcb2rgb_intr.c.

    -

                           Implemented following functions in xycrcb2rgb.c:
    -                       XYCrCb2Rgb_CfgInitialize, XYCrCb2Rgb_EnableDbgByPass,
    -                       XYCrCb2Rgb_IsDbgByPassEnabled,
    -                       XYCrCb2Rgb_DisableDbgBypass,
    -                       XYCrCb2Rgb_EnableDbgTestPattern,
    -                       XYCrCb2Rgb_IsDbgTestPatternEnabled,
    -                       XYCrCb2Rgb_DisableDbgTestPattern,
    -                       XYCrCb2Rgb_GetVersion, XYCrCb2Rgb_GetDbgFrameCount,
    -                       XYCrCb2Rgb_GetDbgLineCount,
    -                       XYCrCb2Rgb_GetDbgPixelCount, XYCrCb2Rgb_Setup,
    -                       XYCrCb2Rgb_SetActiveSize, XYCrCb2Rgb_GetActiveSize,
    -                       XYCrCb2Rgb_SetRGBMax, XYCrCb2Rgb_GetRGBMax,
    -                       XYCrCb2Rgb_SetRGBMin, XYCrCb2Rgb_GetRGBMin,
    -                       XYCrCb2Rgb_SetROffset, XYCrCb2Rgb_GetROffset,
    -                       XYCrCb2Rgb_SetGOffset, XYCrCb2Rgb_GetGOffset,
    -                       XYCrCb2Rgb_SetBOffset, XYCrCb2Rgb_GetBOffset,
    -                       XYCrCb2Rgb_SetCoefs, XYCrCb2Rgb_GetCoefs,
    -                       XYCrCb2Rgb_Select_Standard,
    -                       XYCrCb2Rgb_Coefficient_Translation,
    -                       XYCrCb2Rgb_Select_OutputRange.
    -*
    +

    xycrcb2rgb.h File Reference

    #include "xycrcb2rgb_hw.h"
    #include "xil_assert.h"
    @@ -147,20 +58,20 @@ The XYCrCb2Rgb driver is com }

    Standard Types

    -enum  Standards {
    -  XYCC_STANDARD_ITU_601_SD = 0, -XYCC_STANDARD_ITU_709_NTSC, -XYCC_STANDARD_ITU_709_PAL, -XYCC_STANDARD_YUV, +enum  XYcc_Standards {
    +  XYCC_STANDARD_ITU_601_SD = 0, +XYCC_STANDARD_ITU_709_NTSC, +XYCC_STANDARD_ITU_709_PAL, +XYCC_STANDARD_YUV,
    -  XYCC_STANDARD_CUSTOM +  XYCC_STANDARD_CUSTOM
    }

    Output Ranges

    -enum  OutputRanges { XYCC_TV_16_TO_240 = 0, -XYCC_STUDIO_16_TO_235, -XYCC_GRAPHICS_0_TO_255 +enum  XYcc_OutputRanges { XYCC_TV_16_TO_240 = 0, +XYCC_STUDIO_16_TO_235, +XYCC_GRAPHICS_0_TO_255 }

    Defines

    @@ -254,11 +165,11 @@ The XYCrCb2Rgb driver is com void XYCrCb2Rgb_GetCoefs (XYCrCb2Rgb *InstancePtr, struct XYCrCb2Rgb_Coefficients *Coef) -void XYCrCb2Rgb_Select_Standard (XYCrCb2Rgb *InstancePtr, enum Standards StandardSel, enum OutputRanges InputRange, u32 DataWidth, struct XYCrCb2Rgb_Coef_Inputs *CoefIn) +void XYCrCb2Rgb_Select_Standard (XYCrCb2Rgb *InstancePtr, enum XYcc_Standards StandardSel, enum XYcc_OutputRanges InputRange, u32 DataWidth, struct XYCrCb2Rgb_Coef_Inputs *CoefIn) u32 XYCrCb2Rgb_Coefficient_Translation (XYCrCb2Rgb *InstancePtr, struct XYCrCb2Rgb_Coef_Inputs *CoefIn, struct XYCrCb2Rgb_Coef_Outputs *CoefOut, u32 DataWidth, u32 MWidth) -void XYCrCb2Rgb_Select_OutputRange (XYCrCb2Rgb *InstancePtr, enum OutputRanges Range) +void XYCrCb2Rgb_Select_OutputRange (XYCrCb2Rgb *InstancePtr, enum XYcc_OutputRanges Range) int XYCrCb2Rgb_SelfTest (XYCrCb2Rgb *InstancePtr) @@ -886,12 +797,12 @@ An error condition interrupt type

    - +

    - +
    enum OutputRanges enum XYcc_OutputRanges
    @@ -900,23 +811,23 @@ An error condition interrupt type

    These constants specify different ranges used for studio equipment, television and computer graphics respectively.

    Enumerator:
    - - -
    XYCC_TV_16_TO_240  +
    XYCC_TV_16_TO_240  16 to 240, for Television.
    XYCC_STUDIO_16_TO_235  +
    XYCC_STUDIO_16_TO_235  16 to 235, for Studio Equipment.
    XYCC_GRAPHICS_0_TO_255  +
    XYCC_GRAPHICS_0_TO_255  0 to 255, for Computer Graphics.

    - +

    - +
    enum Standards enum XYcc_Standards
    @@ -925,15 +836,15 @@ These constants specify different ranges used for studio equipment, television a

    These constants specify different types of standards used to represent standard color encoding.

    Enumerator:
    - - - - -
    XYCC_STANDARD_ITU_601_SD  +
    XYCC_STANDARD_ITU_601_SD  Standard ITU 601 SD.
    XYCC_STANDARD_ITU_709_NTSC  +
    XYCC_STANDARD_ITU_709_NTSC  Standard ITU 709 NTSC.
    XYCC_STANDARD_ITU_709_PAL  +
    XYCC_STANDARD_ITU_709_PAL  Standard ITU 709 PAL.
    XYCC_STANDARD_YUV  +
    XYCC_STANDARD_YUV  Standard YUV.
    XYCC_STANDARD_CUSTOM  +
    XYCC_STANDARD_CUSTOM  Standard Custom.
    @@ -1612,7 +1523,7 @@ This function returns a reference to an +
    @@ -1625,7 +1536,7 @@ This function returns a reference to an - + @@ -1642,7 +1553,7 @@ This function governs the range of outputs R, G and B by affecting the conversio
    Parameters:
    enum OutputRanges enum XYcc_OutputRanges  Range 
    - +
    InstancePtr is a pointer to the XYCrCb2Rgb instance.
    Range needs to be set from the enum OutputRanges values as: 0 = XYCC_TV_16_TO_240, 1 = XYCC_STUDIO_16_TO_235, 2 = XYCC_GRAPHICS_0_TO_255.
    Range needs to be set from the enum XYcc_OutputRanges values as: 0 = XYCC_TV_16_TO_240, 1 = XYCC_STUDIO_16_TO_235, 2 = XYCC_GRAPHICS_0_TO_255.
    Returns:
    None.
    @@ -1650,7 +1561,7 @@ This function governs the range of outputs R, G and B by affecting the conversio

    - +

    @@ -1663,13 +1574,13 @@ This function governs the range of outputs R, G and B by affecting the conversio - + - + @@ -1698,8 +1609,8 @@ This function populates an - - + +
    enum Standards enum XYcc_Standards  StandardSel,
    enum OutputRanges enum XYcc_OutputRanges  InputRange,
    InstancePtr is a pointer to the XYCrCb2Rgbb instance.
    StandardSel needs to be set from enum Standards value as : 0 = XYCC_STANDARD_ITU_601_SD 1 = XYCC_STANDARD_ITU_709_NTSC 2 = XYCC_STANDARD_ITU_709_PAL 3 = XYCC_STANDARD_YUV.
    InputRange needs to be set from enum OutputRanges value as: 0 = XYCC_TV_16_TO_240, 1 = XYCC_STUDIO_16_TO_235, 2 = XYCC_GRAPHICS_0_TO_255.
    StandardSel needs to be set from enum XYcc_Standards value as : 0 = XYCC_STANDARD_ITU_601_SD 1 = XYCC_STANDARD_ITU_709_NTSC 2 = XYCC_STANDARD_ITU_709_PAL 3 = XYCC_STANDARD_YUV.
    InputRange needs to be set from enum XYcc_OutputRanges value as: 0 = XYCC_TV_16_TO_240, 1 = XYCC_STUDIO_16_TO_235, 2 = XYCC_GRAPHICS_0_TO_255.
    DataWidth specifies the valid range of [8,10,12,16] that needs to be set.
    CoefIn specifies a pointer to a XYCrCb2Rgb_Coef_Inputs structure which is populated with the values from selected video standard.
    diff --git a/XilinxProcessorIPLib/drivers/ycrcb2rgb/examples/ycrcb2rgb_example.c b/XilinxProcessorIPLib/drivers/ycrcb2rgb/examples/ycrcb2rgb_example.c index aaaa23f6..11ae46e3 100755 --- a/XilinxProcessorIPLib/drivers/ycrcb2rgb/examples/ycrcb2rgb_example.c +++ b/XilinxProcessorIPLib/drivers/ycrcb2rgb/examples/ycrcb2rgb_example.c @@ -161,7 +161,7 @@ int YCrCb2Rgb_Update_Example(u16 DeviceId) /* Setup CoefIn for XYCC_STANDARD_ITU_601_SD, 16_to_240_for_TV * and data width of 8-bits. - * enum Standards are: + * enum XYcc_Standards are: * 0 = XYCC_STANDARD_ITU_601_SD * 1 = XYCC_STANDARD_ITU_709_NTSC * 2 = XYCC_STANDARD_ITU_709_PAL diff --git a/XilinxProcessorIPLib/drivers/ycrcb2rgb/src/xycrcb2rgb.c b/XilinxProcessorIPLib/drivers/ycrcb2rgb/src/xycrcb2rgb.c index fe351b0b..82779bde 100755 --- a/XilinxProcessorIPLib/drivers/ycrcb2rgb/src/xycrcb2rgb.c +++ b/XilinxProcessorIPLib/drivers/ycrcb2rgb/src/xycrcb2rgb.c @@ -899,12 +899,12 @@ void XYCrCb2Rgb_GetCoefs(XYCrCb2Rgb *InstancePtr, * from the selected video standard. * * @param InstancePtr is a pointer to the XYCrCb2Rgbb instance. -* @param StandardSel needs to be set from enum Standards value as : +* @param StandardSel needs to be set from enum XYcc_Standards value as : * 0 = XYCC_STANDARD_ITU_601_SD * 1 = XYCC_STANDARD_ITU_709_NTSC * 2 = XYCC_STANDARD_ITU_709_PAL * 3 = XYCC_STANDARD_YUV. -* @param InputRange needs to be set from enum OutputRanges value as: +* @param InputRange needs to be set from enum XYcc_OutputRanges value as: * 0 = XYCC_TV_16_TO_240, * 1 = XYCC_STUDIO_16_TO_235, * 2 = XYCC_GRAPHICS_0_TO_255. @@ -922,8 +922,8 @@ void XYCrCb2Rgb_GetCoefs(XYCrCb2Rgb *InstancePtr, * ******************************************************************************/ void XYCrCb2Rgb_Select_Standard(XYCrCb2Rgb *InstancePtr, - enum Standards StandardSel, - enum OutputRanges InputRange, u32 DataWidth, + enum XYcc_Standards StandardSel, + enum XYcc_OutputRanges InputRange, u32 DataWidth, struct XYCrCb2Rgb_Coef_Inputs *CoefIn) { @@ -1174,7 +1174,7 @@ u32 XYCrCb2Rgb_Coefficient_Translation(XYCrCb2Rgb *InstancePtr, * conversion coefficients as well as the clipping and clamping values. * * @param InstancePtr is a pointer to the XYCrCb2Rgb instance. -* @param Range needs to be set from the enum OutputRanges values as: +* @param Range needs to be set from the enum XYcc_OutputRanges values as: * 0 = XYCC_TV_16_TO_240, * 1 = XYCC_STUDIO_16_TO_235, * 2 = XYCC_GRAPHICS_0_TO_255. @@ -1185,7 +1185,7 @@ u32 XYCrCb2Rgb_Coefficient_Translation(XYCrCb2Rgb *InstancePtr, * *****************************************************************************/ void XYCrCb2Rgb_Select_OutputRange(XYCrCb2Rgb *InstancePtr, - enum OutputRanges Range) + enum XYcc_OutputRanges Range) { /* Verify arguments. */ Xil_AssertVoid(InstancePtr != NULL); diff --git a/XilinxProcessorIPLib/drivers/ycrcb2rgb/src/xycrcb2rgb.h b/XilinxProcessorIPLib/drivers/ycrcb2rgb/src/xycrcb2rgb.h index 00f44c9c..24c484ff 100755 --- a/XilinxProcessorIPLib/drivers/ycrcb2rgb/src/xycrcb2rgb.h +++ b/XilinxProcessorIPLib/drivers/ycrcb2rgb/src/xycrcb2rgb.h @@ -216,7 +216,7 @@ enum { * These constants specify different types of standards used to represent * standard color encoding. */ -enum Standards { +enum XYcc_Standards { XYCC_STANDARD_ITU_601_SD = 0, /**< Standard ITU 601 SD. */ XYCC_STANDARD_ITU_709_NTSC, /**< Standard ITU 709 NTSC. */ XYCC_STANDARD_ITU_709_PAL, /**< Standard ITU 709 PAL. */ @@ -233,7 +233,7 @@ enum Standards { * These constants specify different ranges used for studio equipment, * television and computer graphics respectively. */ -enum OutputRanges { +enum XYcc_OutputRanges { XYCC_TV_16_TO_240 = 0, /**< 16 to 240, for Television. */ XYCC_STUDIO_16_TO_235, /**< 16 to 235, for Studio Equipment. */ XYCC_GRAPHICS_0_TO_255 /**< 0 to 255, for Computer Graphics. */ @@ -762,8 +762,8 @@ void XYCrCb2Rgb_GetCoefs(XYCrCb2Rgb *InstancePtr, struct XYCrCb2Rgb_Coefficients *Coef); void XYCrCb2Rgb_Select_Standard(XYCrCb2Rgb *InstancePtr, - enum Standards StandardSel, - enum OutputRanges InputRange, u32 DataWidth, + enum XYcc_Standards StandardSel, + enum XYcc_OutputRanges InputRange, u32 DataWidth, struct XYCrCb2Rgb_Coef_Inputs *CoefIn); u32 XYCrCb2Rgb_Coefficient_Translation(XYCrCb2Rgb *InstancePtr, @@ -772,7 +772,7 @@ u32 XYCrCb2Rgb_Coefficient_Translation(XYCrCb2Rgb *InstancePtr, u32 DataWidth, u32 MWidth); void XYCrCb2Rgb_Select_OutputRange(XYCrCb2Rgb *InstancePtr, - enum OutputRanges Range); + enum XYcc_OutputRanges Range); /* Self-test function implemented in xycrcb2rgb_selftest.c */ int XYCrCb2Rgb_SelfTest(XYCrCb2Rgb *InstancePtr);