(<aclass="code"href="xdeint__hw_8h.html#c1ed7f9d3612ffd5b46f3863492685a2">XDEINT_CONTROL_OFFSET</a>)) & (~(<aclass="code"href="xdeint__hw_8h.html#dde645c3d0bb6ae9a36b8f55c6091dd5">XDEINT_CTL_ENABLE</a>)))
</pre></div>This macro disables the Deinterlacer algorithms.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
</pre></div>This macro enables the Deinterlacer algorithms.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
(<aclass="code"href="xdeint__hw_8h.html#a4ddf97ec440161ec497fbc15a072e59">XDEINT_MODE_OFFSET</a>)) & (<aclass="code"href="xdeint__hw_8h.html#549230d42749e45992b13dd7b3b4aa91">XDEINT_MODE_ALGORITHM_FULL</a>)
</pre></div>This macro gets the Deinterlacer's processing algorithm.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>Returns algorithm for deinterlacing method.<ul>
<li>0x00000000 = Pure field interpolating technique is used.</li><li>0x00000001 = Diagonal engine is used.</li><li>0x00000002 = Motion adaptive engine is used.</li><li>0x00000003 = Motion and Diagonal engines are used.</li></ul>
(<aclass="code"href="xdeint__hw_8h.html#a4ddf97ec440161ec497fbc15a072e59">XDEINT_MODE_OFFSET</a>)) & (<aclass="code"href="xdeint__hw_8h.html#4ba135e2728b4eafc68280dae1bd0f7d">XDEINT_MODE_COL</a>)
</pre></div>This macro gets the Deinterlacer's color space.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
(<aclass="code"href="xdeint__hw_8h.html#8535b5f3d0aa09f4283330f3d8fc5b84">XDEINT_RESET_OFFSET</a>)) & (<aclass="code"href="xdeint__hw_8h.html#29cda40e0d5cccf062e9af72a58af84c">XDEINT_RESET_RESET_MASK</a>))
</pre></div>This macro returns the current soft-reset state.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
</pre></div>This macro clears/acknowledges pending interrupts of the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>IntrType</em> </td><td>is the pending interrupts to clear/acknowledge. Use OR'ing of XDEINT_IXR_*_MASK constants defined in <aclass="el"href="xdeint__hw_8h.html">xdeint_hw.h</a> to create this parameter value.</td></tr>
</pre></div>This macro disables the given individual interrupt(s) on the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>IntrType</em> </td><td>is the bit-mask of the interrupts to be enabled. Bit positions of 1 will be disabled. Bit post ions of 0 will keep the previous setting.This mask is formed by OR'ing XDEINT_IXR_*_MASK constants defined in <aclass="el"href="xdeint__hw_8h.html">xdeint_hw.h</a> to create this parameter value.</td></tr>
<dlcompact><dt><b>Note:</b></dt><dd>Any other interrupt not covered by parameter IntrType, if enabled before this macro is called, will remain enabled.</dd></dl>
</pre></div>This macro enables the given individual interrupt(s) on the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>IntrType</em> </td><td>is the bit-mask of the interrupts to be enabled. Bit positions of 1 will be enabled. Bit post ions of 0 will keep the previous setting.This mask is formed by OR'ing XDEINT_IXR_*_MASK constants defined in <aclass="el"href="xdeint__hw_8h.html">xdeint_hw.h</a> to create this parameter value.</td></tr>
(<aclass="code"href="xdeint__hw_8h.html#dd2b35c78b464c2e7ae57774ae739a11">XDEINT_ISR_OFFSET</a>)) & (<aclass="code"href="xdeint__hw_8h.html#f766950c11d76b491d2817e7b71132d5">XDEINT_IXR_ALLINTR_MASK</a>))
</pre></div>This macro returns the pending interrupts of the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>The pending interrupts of the Deinterlacer core. Use XDEINT_IXR_*_MASK constants defined in <aclass="el"href="xdeint__hw_8h.html">xdeint_hw.h</a> to interpret this value.</dd></dl>
</pre></div>This macro tells the Deinterlacer core to pick up all the register value changes made so far by the software at the next frame boundary.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
</pre></div>This macro soft resets the Deinterlacer to its default mode. This register will clear once the reset is complete. Software should poll here until the reset has completed. NOTE : Attempting to alter CPU registers during a soft reset will result in no register changes due to the CPU interface being reset.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
</pre></div>This macro sets the Deinterlacer's processing algorithm.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>Alg</em> </td><td>is a algorithm setting from XDEINT_MODE_ALGORITHM_????</td></tr>
</pre></div>This macro sets the Deinterlacer's color space to RGB.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
(<aclass="code"href="xdeint__hw_8h.html#a4ddf97ec440161ec497fbc15a072e59">XDEINT_MODE_OFFSET</a>)) & (~(<aclass="code"href="xdeint__hw_8h.html#0a3b9c44cc615bd2a23a7bd364f6a2b1">XDEINT_MODE_COLOUR_RGB</a>)))
</pre></div>This macro sets the Deinterlacer's color space to YUV.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
</pre></div>This macro enables the Deinterlacer core to accept video.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
</pre></div>This macro halts the Deinterlacer core on the next frame boundary.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
This function initializes the Deinterlacer core. This function must be called prior to using a Deinterlacer core. Initialization of the Deinterlacer includes setting up the instance data, and ensuring the hardware is in a quiescent state.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CfgPtr</em> </td><td>points to the configuration structure associated with the Deinterlacer core. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>EffectiveAddr</em> </td><td>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.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS if initialization was successful.</li></ul>
This function gets input field buffer addresses of an Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>FieldAddr1</em> </td><td>is the pointer to the 1st input field buffer. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>FieldAddr2</em> </td><td>is the pointer to the 2nd input field buffer. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>FieldAddr3</em> </td><td>is the pointer to the 3rd input field buffer. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>FrameSize</em> </td><td>is the pointer to size in 32bit words of a single field buffer.</td></tr>
This function gets the pull down controller of the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>Enable_32</em> </td><td>is a pointer which holds status of Enable_32 mode.<ul>
This function gets the input frame size of the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>Width</em> </td><td>is pointer to the width of the frame. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>Height</em> </td><td>is pointer to the height of the frame.</td></tr>
This function gets the threshold used by the motion adaptive kernel.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>ThresholdT1</em> </td><td>is the pointer to lower threshold of the motion kernel. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>ThresholdT2</em> </td><td>is the pointer to upper threshold of the motion kernel.</td></tr>
This function returns the contents of Version register.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>Returns the contents of the version register.</dd></dl>
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>Packing</em> </td><td>is a pointer to 32 bit variable which holds Packaging format.<ul>
<li>0 4:2:0 Packging is used.</li><li>XDEINT_MODE_PACKING_0 4:2:2 Packging is used.</li><li>XDEINT_MODE_PACKING_1 4:4:4 Packging is used. </li></ul>
</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>Color</em> </td><td>is a pointer to 32 bit varaible which holds color value.<ul>
<li>0 YUV color space is used.</li><li>XDEINT_MODE_COL RGB color space is used. </li></ul>
</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>Order</em> </td><td>is a pointer to 32 bit varaible which holds Field order.<ul>
<li>0 the field order maps to PAL/HD/3G.</li><li>XDEINT_MODE_FIELD_ORDER the field order maps to NTSC/480i </li></ul>
</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>PSF</em> </td><td>is a pointer to 32 bit variable which says whether Psf enabled or disabled.<ul>
<li>XDEINT_MODE_PSF_ENABLE for psf enable.</li></ul>
This function is the interrupt handler for the Deinterlacer core.<p>
This handler reads the pending interrupt from the IER/ISR, determines the source of the interrupts, calls according callback, and finally clears the interrupts.<p>
The application is responsible for connecting this function to the interrupt system. Application beyond this driver is also responsible for providing callbacks to handle interrupts and installing the callbacks using <aclass="el"href="xdeint_8h.html#1530a20a59c6011ec8f01025b35b677f">XDeint_SetCallBack()</a> during initialization phase.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
<dlcompact><dt><b>Note:</b></dt><dd>The Error interrupt callback invoked in case an error interrupt or spurious interrupt happens should reset the Deinterlacer core that just interrupted. </dd></dl>
This function returns a reference to an <aclass="el"href="struct_x_deint___config.html">XDeint_Config</a> structure based on the unique device id, <em>DeviceId</em>. The return value will refer to an entry in the device configuration table defined in the <aclass="el"href="xdeint__g_8c.html">xdeint_g.c</a> file.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>DeviceId</em> </td><td>is the unique device ID of the device for the lookup operation.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>XDeint_LookupConfig returns a reference to a config record in the configuration table (in <aclass="el"href="xdeint__g_8c.html">xDEINT_g.c</a>) corresponding to <em>DeviceId</em> or NULL if no match is found.</dd></dl>
This function reads Version register of Deinterlacer core and compares with zero as part of self test.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS if the test was successful.</li><li>XST_FAILURE if the test failed. </li></ul>
This routine installs an asynchronous callback function.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>CallBackFunc</em> </td><td>is the address of the callback function.</td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS when handler is installed.</li><li>XST_INVALID_PARAM when HandlerType is invalid.</li></ul>
</dd></dl>
<dlcompact><dt><b>Note:</b></dt><dd>Invoking this function for a handler that already has been installed replaces it with the new handler. </dd></dl>
This function sets the input field buffer addresses of the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>FieldAddr1</em> </td><td>is the address of the 1st input field buffer. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>FieldAddr2</em> </td><td>is the address of the 2nd input field buffer. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>FieldAddr3</em> </td><td>is the address of the 3rd input field buffer. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>FrameSize</em> </td><td>is the size in 32bit words of a single field buffer.</td></tr>
This function sets the pull down controller of the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
This function sets the input frame size of the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>Width</em> </td><td>is the width of the frame. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>Height</em> </td><td>is the height of the frame.</td></tr>
This function sets the threshold used by the motion adaptive kernel of the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>ThresholdT1</em> </td><td>is the lower threshold of the motion kernel. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>ThresholdT2</em> </td><td>is the upper threshold of the motion kernel.</td></tr>
This function sets the video format of the Deinterlacer core.<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>InstancePtr</em> </td><td>is a pointer to <aclass="el"href="struct_x_deint.html">XDeint</a> instance to be worked on. </td></tr>