embeddedsw/XilinxProcessorIPLib/drivers/cresample/doc/html/api/xcresample_8c.html
Durga challa 589fcf6173 cresample: Added doxygen report.
Added doxygen report to cresample.

Signed-off-by: Durga challa <vnsldurg@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2014-09-02 11:21:13 +05:30

896 lines
47 KiB
HTML

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>
xcresample.c File Reference
</title>
<link href="$DriverApiDocsCssPath" rel="stylesheet" type="text/css">
</head>
<h3 class="PageHeader">Xilinx Processor IP Library</h3>
<hl>Software Drivers</hl>
<hr class="whs1">
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul></div>
<h1>xcresample.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
This file contains the implementation of the interface functions for the Chroma Resampler core. Refer to the header file <a class="el" href="xcresample_8h.html">xcresample.h</a> for more detailed information. <pre>
MODIFICATION HISTORY:</pre><p>
<pre> Ver Who Date Changes
----- ------ -------- ----------------------------------------------------
1.00a gaborz 08/04/11 Updated for CRESAMPLE V1.0
2.00a vyc 04/24/12 Updated for CRESAMPLE V2.00.a
2.00a vyc 07/25/12 Switched from Xuu3232 to u32
2.00a vyc 10/16/12 Switch order of functions to remove compile warning
4.0 adk 03/12/14 Changed the filename cresample.c to <a class="el" href="xcresample_8c.html">xcresample.c</a>.
The Following functions are removed:
clear_coef_values, configure_444_to_422,
configure_422_to_444, configure_422_to_420,
configure_420_to_422, configure_444_to_420 and
configure_420_to_444.
Implemented the following functions :
StubCallBack, StubErrorCallBack,
XCresample_CfgInitialize,
XCresample_GetVersion, XCresample_EnableDbgByPass,
XCresample_IsDbgByPassEnabled,
XCresample_DisableDbgByPass,
XCresample_SetDbgTestPattern,
XCresample_IsDbgTestPatternEnabled,
XCresample_DisableDbgTestPattern
XCresample_GetDbgFrameCount,
XCresample_GetDbgLineCount,
XCresample_GetDbgPixelCount,
XCresample_SetActiveSize, XCresample_GetActiveSize,
XCresample_SetFieldParity, XCresample_GetFieldParity,
XCresample_SetChromaParity,
XCresample_GetChromaParity
XCresample_SetHCoefs, XCresample_GetHCoefs,
XCresample_SetVCoefs, XCresample_GetVCoefs,
XCresample_Clear_HCoef_Values, and
XCresample_Clear_VCoef_Values.</pre><p>
<pre> </pre>
<p>
<code>#include &quot;<a class="el" href="xcresample_8h.html">xcresample.h</a>&quot;</code><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#386a0f9c22e6409060fd966a66d8aa66">XCresample_CfgInitialize</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr, <a class="el" href="struct_x_cresample___config.html">XCresample_Config</a> *CfgPtr, u32 EffectiveAddr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#930ea9583c5dd76de763fae86d6b1eff">XCresample_EnableDbgByPass</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#e8267377a15da7e199a393c47baf42e1">XCresample_IsDbgByPassEnabled</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#c15c402d317aea7dbcdabdae1c6d8e6c">XCresample_DisableDbgBypass</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#32b603c19c2afaee47a70dde41fdcaa1">XCresample_EnableDbgTestPattern</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#e8fb855ff8ece1b628d69f9cd0eebd5a">XCresample_IsDbgTestPatternEnabled</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#1f6adeb2af84970d6d20a70be30169dd">XCresample_DisableDbgTestPattern</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#759917fbb8599a22fdfe5619ce13a3b2">XCresample_GetVersion</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#b4f2fab7cafe12c0dd55b63f8a4f9bb2">XCresample_GetDbgFrameCount</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#81ee6e5159f9173134f5203f079c19d6">XCresample_GetDbgLineCount</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#dae07783fcaf65425e70d97648cbf04e">XCresample_GetDbgPixelCount</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#a92fd02ee15f7f102dde33a7b2d904d3">XCresample_SetActiveSize</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr, u16 HSize, u16 VSize)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#d8b448647610e20e45f560ed50465d15">XCresample_GetActiveSize</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr, u16 *HSize, u16 *VSize)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#f88e4da9bfb514e7f31550e4763b5ff1">XCresample_SetFieldParity</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr, u8 FieldParity)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#3033cdcbecf61fea37bc9b1795636bf7">XCresample_GetFieldParity</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#81bd9651d3634a4f93adc0c9aa377bd4">XCresample_SetChromaParity</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr, u8 ChromaParity)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#2871e4a4446a101e00ace372810342ce">XCresample_GetChromaParity</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#fe19dfb901944a21c9318301322075e6">XCresample_SetHCoefs</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr, <a class="el" href="struct_x_horizontal___coeffs.html">XHorizontal_Coeffs</a> *Coeff, u32 Phases)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#676b8cfd788ad69cd9c622e2a4953bed">XCresample_GetHCoefs</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr, <a class="el" href="struct_x_horizontal___coeffs.html">XHorizontal_Coeffs</a> *Coeff)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#5f9ac7e61cd69dd5843a4a95eff0ba21">XCresample_SetVCoefs</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr, <a class="el" href="struct_x_vertical___coeffs.html">XVertical_Coeffs</a> *Coeff, u32 Phases)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#81bd4ca76afc9607d8cc69afeb957b5f">XCresample_GetVCoefs</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr, <a class="el" href="struct_x_vertical___coeffs.html">XVertical_Coeffs</a> *Coeff)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#1d749808d07e3987e21fb3ec7b54c3a2">XCresample_Clear_HCoef_Values</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xcresample_8c.html#d3c15e9a7607730c4d6bab0bff8af610">XCresample_Clear_VCoef_Values</a> (<a class="el" href="struct_x_cresample.html">XCresample</a> *InstancePtr)</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="386a0f9c22e6409060fd966a66d8aa66"></a><!-- doxytag: member="xcresample.c::XCresample_CfgInitialize" ref="386a0f9c22e6409060fd966a66d8aa66" args="(XCresample *InstancePtr, XCresample_Config *CfgPtr, u32 EffectiveAddr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int XCresample_CfgInitialize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_x_cresample___config.html">XCresample_Config</a> *&nbsp;</td>
<td class="paramname"> <em>CfgPtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u32&nbsp;</td>
<td class="paramname"> <em>EffectiveAddr</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function initializes the Cresample core. This function must be called prior to using the Cresample core. Initialization of the Cresample includes setting up the instance data and ensuring the hardware is in a quiescent state.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>CfgPtr</em>&nbsp;</td><td>is a reference to a structure containing information about a specific Chroma Resampler driver. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>EffectiveAddr</em>&nbsp;</td><td>is the device base address in the virtual memory address space. The caller is responsible for keeping the address mapping from EffectiveAddr to the device physical base address unchanged once this function is invoked. Unexpected errors may occur if the address mapping changes after this function is called. If address translation is not used, pass in the physical address instead.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>- XST_SUCCESS if initialization was successful.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="1d749808d07e3987e21fb3ec7b54c3a2"></a><!-- doxytag: member="xcresample.c::XCresample_Clear_HCoef_Values" ref="1d749808d07e3987e21fb3ec7b54c3a2" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_Clear_HCoef_Values </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function clears all horizontal coefficients of the Chroma Resampler core which are previously set.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="d3c15e9a7607730c4d6bab0bff8af610"></a><!-- doxytag: member="xcresample.c::XCresample_Clear_VCoef_Values" ref="d3c15e9a7607730c4d6bab0bff8af610" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_Clear_VCoef_Values </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function clears all vertical coefficients of a the Chroma Resampler which are previously set.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="c15c402d317aea7dbcdabdae1c6d8e6c"></a><!-- doxytag: member="xcresample.c::XCresample_DisableDbgBypass" ref="c15c402d317aea7dbcdabdae1c6d8e6c" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_DisableDbgBypass </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function disables bypass mode of the Chroma Resampler core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
</div>
</div><p>
<a class="anchor" name="1f6adeb2af84970d6d20a70be30169dd"></a><!-- doxytag: member="xcresample.c::XCresample_DisableDbgTestPattern" ref="1f6adeb2af84970d6d20a70be30169dd" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_DisableDbgTestPattern </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function disables debug test pattern mode in Control register of the Chroma Resampler core, if Debug feature is enabled.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
</div>
</div><p>
<a class="anchor" name="930ea9583c5dd76de763fae86d6b1eff"></a><!-- doxytag: member="xcresample.c::XCresample_EnableDbgByPass" ref="930ea9583c5dd76de763fae86d6b1eff" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_EnableDbgByPass </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function enables the bypass mode by setting bypass bit of the Control register to switch the core to bypass mode if debug feature is enabled in the core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
</div>
</div><p>
<a class="anchor" name="32b603c19c2afaee47a70dde41fdcaa1"></a><!-- doxytag: member="xcresample.c::XCresample_EnableDbgTestPattern" ref="32b603c19c2afaee47a70dde41fdcaa1" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_EnableDbgTestPattern </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function enables the test-pattern mode if debug feature is enabled by setting test-pattern bit of the Control register of the Chroma Resampler core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
</div>
</div><p>
<a class="anchor" name="d8b448647610e20e45f560ed50465d15"></a><!-- doxytag: member="xcresample.c::XCresample_GetActiveSize" ref="d8b448647610e20e45f560ed50465d15" args="(XCresample *InstancePtr, u16 *HSize, u16 *VSize)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_GetActiveSize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16 *&nbsp;</td>
<td class="paramname"> <em>HSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16 *&nbsp;</td>
<td class="paramname"> <em>VSize</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the number of Active Pixels per Scan line and number of Active Lines per Frame from the Active Size register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>HSize</em>&nbsp;</td><td>is a pointer to 16-bit variable in which the number of Active Pixels per Scan Line is returned (Range is 32 to 7680). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>VSize</em>&nbsp;</td><td>is a pointer to 16-bit variable in which the number of Active Lines per Frame is returned (Range is 32 to 7680).</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="2871e4a4446a101e00ace372810342ce"></a><!-- doxytag: member="xcresample.c::XCresample_GetChromaParity" ref="2871e4a4446a101e00ace372810342ce" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u8 XCresample_GetChromaParity </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the value of chroma parity of the Chroma Resampler core from Encoding register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Chroma parity value is returned.<ul>
<li>0 - Chroma information on Odd or First line.</li><li>1 - Chroma information on Even lines.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="b4f2fab7cafe12c0dd55b63f8a4f9bb2"></a><!-- doxytag: member="xcresample.c::XCresample_GetDbgFrameCount" ref="b4f2fab7cafe12c0dd55b63f8a4f9bb2" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XCresample_GetDbgFrameCount </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the number of frames processed since power-up or last time the core is reset.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>FrameCount is the number of frames processed since power-up.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
</div>
</div><p>
<a class="anchor" name="81ee6e5159f9173134f5203f079c19d6"></a><!-- doxytag: member="xcresample.c::XCresample_GetDbgLineCount" ref="81ee6e5159f9173134f5203f079c19d6" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XCresample_GetDbgLineCount </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the number of lines processed since power-up or last time the core is reset.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>LineCount is the number of lines processed since power-up.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
</div>
</div><p>
<a class="anchor" name="dae07783fcaf65425e70d97648cbf04e"></a><!-- doxytag: member="xcresample.c::XCresample_GetDbgPixelCount" ref="dae07783fcaf65425e70d97648cbf04e" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XCresample_GetDbgPixelCount </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the number of pixels processed since power-up or last time the core is reset.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>PixelCount is the number of pixels processed since power-up.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
</div>
</div><p>
<a class="anchor" name="3033cdcbecf61fea37bc9b1795636bf7"></a><!-- doxytag: member="xcresample.c::XCresample_GetFieldParity" ref="3033cdcbecf61fea37bc9b1795636bf7" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u8 XCresample_GetFieldParity </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the field parity value of the Chroma Resampler core from Encoding register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Field parity value is returned. 0 - for even or bottom field. 1 - for odd or top field.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="676b8cfd788ad69cd9c622e2a4953bed"></a><!-- doxytag: member="xcresample.c::XCresample_GetHCoefs" ref="676b8cfd788ad69cd9c622e2a4953bed" args="(XCresample *InstancePtr, XHorizontal_Coeffs *Coeff)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_GetHCoefs </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_x_horizontal___coeffs.html">XHorizontal_Coeffs</a> *&nbsp;</td>
<td class="paramname"> <em>Coeff</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the coefficient values from all the Horizontal Coefficient registers of phase0 and phase1 of the Chroma Resampler core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Coeff</em>&nbsp;</td><td>is a pointer to the structure <a class="el" href="struct_x_horizontal___coeffs.html">XHorizontal_Coeffs</a> which has horizontal coefficients of both phases.(Phase 0 and Phase 1) in which coefficients are updated. Range of coefficient values is [-2, 2).</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>For pre defined fixed coefficients filter values, ConvertType should be set with 1. </dd></dl>
</div>
</div><p>
<a class="anchor" name="81bd4ca76afc9607d8cc69afeb957b5f"></a><!-- doxytag: member="xcresample.c::XCresample_GetVCoefs" ref="81bd4ca76afc9607d8cc69afeb957b5f" args="(XCresample *InstancePtr, XVertical_Coeffs *Coeff)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_GetVCoefs </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_x_vertical___coeffs.html">XVertical_Coeffs</a> *&nbsp;</td>
<td class="paramname"> <em>Coeff</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function gets the vertical coefficient values of the Chroma Resampler core from all Vertical Coefficient registers of phase0 and phase1.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Coeff</em>&nbsp;</td><td>is a pointer to the structure <a class="el" href="struct_x_vertical___coeffs.html">XVertical_Coeffs</a> which has vertical coefficients of both phases.(Phase 0 and Phase 1) in which coefficients are updated. Range of coefficient values is [-2, 2).</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>For pre defined fixed coefficients filter values, ConvertType should be set with 1. </dd></dl>
</div>
</div><p>
<a class="anchor" name="759917fbb8599a22fdfe5619ce13a3b2"></a><!-- doxytag: member="xcresample.c::XCresample_GetVersion" ref="759917fbb8599a22fdfe5619ce13a3b2" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u32 XCresample_GetVersion </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the version of the Chroma Resampler core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Content of Version register is returned..</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="e8267377a15da7e199a393c47baf42e1"></a><!-- doxytag: member="xcresample.c::XCresample_IsDbgByPassEnabled" ref="e8267377a15da7e199a393c47baf42e1" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int XCresample_IsDbgByPassEnabled </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the current bypass mode settings from Control register of the Chroma Resampler core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Core debug bypass mode.<ul>
<li>TRUE = Bypass mode is enabled.</li><li>FALSE = Bypass mode is not enabled.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
</div>
</div><p>
<a class="anchor" name="e8fb855ff8ece1b628d69f9cd0eebd5a"></a><!-- doxytag: member="xcresample.c::XCresample_IsDbgTestPatternEnabled" ref="e8fb855ff8ece1b628d69f9cd0eebd5a" args="(XCresample *InstancePtr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int XCresample_IsDbgTestPatternEnabled </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function returns the test-pattern mode (enabled or not) from Control register of the Chroma Resampler core.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance to be worked on.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Test-pattern generator mode.<ul>
<li>TRUE = Test-pattern mode is enabled.</li><li>FALSE = Test-pattern mode is not enabled.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Debug functionality should be enabled. </dd></dl>
</div>
</div><p>
<a class="anchor" name="a92fd02ee15f7f102dde33a7b2d904d3"></a><!-- doxytag: member="xcresample.c::XCresample_SetActiveSize" ref="a92fd02ee15f7f102dde33a7b2d904d3" args="(XCresample *InstancePtr, u16 HSize, u16 VSize)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_SetActiveSize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>HSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u16&nbsp;</td>
<td class="paramname"> <em>VSize</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the active H/V sizes in the Active Size register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>HSize</em>&nbsp;</td><td>specifies the number of Active Pixels per Scan Line that needs to be set (Range is 32 to 7680). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>VSize</em>&nbsp;</td><td>specifies the number of Active Lines per Frame that needs to be set (Range is 32 to 7680).</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="81bd9651d3634a4f93adc0c9aa377bd4"></a><!-- doxytag: member="xcresample.c::XCresample_SetChromaParity" ref="81bd9651d3634a4f93adc0c9aa377bd4" args="(XCresample *InstancePtr, u8 ChromaParity)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_SetChromaParity </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u8&nbsp;</td>
<td class="paramname"> <em>ChromaParity</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This functions sets the Chroma parity value of the Chroma Resampler core in the Encoding register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ChromaParity</em>&nbsp;</td><td>specifies the parity value which needs to be set.(0 or 1).<ul>
<li>0 - Chroma information on Odd or First line.</li><li>1 - Chroma information on Even lines.</li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</div>
</div><p>
<a class="anchor" name="f88e4da9bfb514e7f31550e4763b5ff1"></a><!-- doxytag: member="xcresample.c::XCresample_SetFieldParity" ref="f88e4da9bfb514e7f31550e4763b5ff1" args="(XCresample *InstancePtr, u8 FieldParity)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_SetFieldParity </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u8&nbsp;</td>
<td class="paramname"> <em>FieldParity</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This functions sets the field parity value of the Chroma Resampler core in the Encoding register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>FieldParity</em>&nbsp;</td><td>specifies the parity value which needs to be set.(0 or 1).<ul>
<li>0 - for even or bottom field.</li><li>1 - for odd or top field.</li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>To this feature need to use interlaced video. </dd></dl>
</div>
</div><p>
<a class="anchor" name="fe19dfb901944a21c9318301322075e6"></a><!-- doxytag: member="xcresample.c::XCresample_SetHCoefs" ref="fe19dfb901944a21c9318301322075e6" args="(XCresample *InstancePtr, XHorizontal_Coeffs *Coeff, u32 Phases)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_SetHCoefs </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_x_horizontal___coeffs.html">XHorizontal_Coeffs</a> *&nbsp;</td>
<td class="paramname"> <em>Coeff</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u32&nbsp;</td>
<td class="paramname"> <em>Phases</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the horizontal coefficient values of the Chroma Resampler core for phase 0 or phase 1 or both phases.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Coeff</em>&nbsp;</td><td>is a pointer to the structure <a class="el" href="struct_x_horizontal___coeffs.html">XHorizontal_Coeffs</a> which has horizontal coefficients of both phases (Phase 0 and Phase 1) which needs to be set. Range of coefficient values is [-2, 2). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Phases</em>&nbsp;</td><td>specifies number of phases needs to be set.<ul>
<li>0 - Phase 0.</li><li>1 - Phase 1.</li><li>2 - Phase 0 and Phase 1.</li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>For pre defined fixed coefficients filter values, ConvertType should be set with 1. </dd></dl>
</div>
</div><p>
<a class="anchor" name="5f9ac7e61cd69dd5843a4a95eff0ba21"></a><!-- doxytag: member="xcresample.c::XCresample_SetVCoefs" ref="5f9ac7e61cd69dd5843a4a95eff0ba21" args="(XCresample *InstancePtr, XVertical_Coeffs *Coeff, u32 Phases)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void XCresample_SetVCoefs </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_x_cresample.html">XCresample</a> *&nbsp;</td>
<td class="paramname"> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_x_vertical___coeffs.html">XVertical_Coeffs</a> *&nbsp;</td>
<td class="paramname"> <em>Coeff</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">u32&nbsp;</td>
<td class="paramname"> <em>Phases</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function sets the vertical coefficient values of the Chroma Resampler for phase 0 or for phase 1 or for both phases.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_cresample.html">XCresample</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Coeff</em>&nbsp;</td><td>is a pointer to the structure <a class="el" href="struct_x_horizontal___coeffs.html">XHorizontal_Coeffs</a> which has vertical coefficients of both phases (Phase 0 and Phase 1) which needs to be set. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Phases</em>&nbsp;</td><td>specifies number of phases needs to be set.<ul>
<li>0 - Phase 0.</li><li>1 - Phase 1.</li><li>2 - Phase 0 and Phase 1.</li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>For pre defined fixed coefficients filter values, ConvertType should be set with 1. </dd></dl>
</div>
</div><p>
Copyright @ 1995-2014 Xilinx, Inc. All rights reserved.