| 1 | <refentry id="dctinv"> |
| 2 | <indexterm id="IndexDctinv"><primary>dctinv</primary></indexterm> |
| 3 | |
| 4 | <refentryinfo><title>Array Operations: Discrete Cosine Transform</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>dctinv</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>dctinv</refname> |
| 11 | <refpurpose> |
| 12 | Inverse Discrete Cosine Transform of a sample array (type-III DCT) |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Applies an Inverse Discrete Cosine Transform to an input |
| 20 | 1-dimensional array producing an array of the same size |
| 21 | containing the transform. Currently only power-of-two sizes are |
| 22 | implemented. Available in i-time or perf (k-rate) versions. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>kout[] <command>dctinv</command> kin[]</synopsis> |
| 29 | <synopsis>iout[] <command>dctinv</command> iin[]</synopsis> |
| 30 | </refsect1> |
| 31 | |
| 32 | <refsect1> |
| 33 | <title>Initialization</title> |
| 34 | <para> |
| 35 | <emphasis>iout[]</emphasis> -- output array containing the IDCT. It will be created if it does not exist. |
| 36 | </para> |
| 37 | <para> |
| 38 | <emphasis>iin[]</emphasis> -- input array containing the input |
| 39 | </para> |
| 40 | </refsect1> |
| 41 | |
| 42 | <refsect1> |
| 43 | <title>Performance</title> |
| 44 | <para> |
| 45 | <emphasis>kout[]</emphasis> -- output array containing the IDCT. It will be created if it does not exist. |
| 46 | </para> |
| 47 | <para> |
| 48 | <emphasis>kin[]</emphasis> -- input array containing the input |
| 49 | </para> |
| 50 | </refsect1> |
| 51 | |
| 52 | <refsect1> |
| 53 | <title>Examples</title> |
| 54 | <para> |
| 55 | Here is an example of the dctinv opcode. It uses the file <ulink |
| 56 | url="examples/dctinv.csd"><citetitle>dctinv.csd</citetitle></ulink>.</para> |
| 57 | |
| 58 | <example> |
| 59 | <title>Example of the dctinv opcode.</title> |
| 60 | |
| 61 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 62 | <xi:include href="examples-xml/dctinv.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 63 | </example> |
| 64 | </refsect1> |
| 65 | |
| 66 | <refsect1> |
| 67 | <title>See Also</title> |
| 68 | <para> |
| 69 | <link linkend="vectorial"><citetitle></citetitle>Vectorial opcodes</link>, |
| 70 | <link linkend="arrayOpcodes"><citetitle></citetitle>array opcodes</link>, |
| 71 | <link linkend="dct"><citetitle>dct</citetitle></link> |
| 72 | </para> |
| 73 | </refsect1> |
| 74 | |
| 75 | <refsect1> |
| 76 | <title>Credits</title> |
| 77 | <para> |
| 78 | <simplelist> |
| 79 | <member>Author: &namevictor;</member> |
| 80 | <member>NUI Maynooth</member> |
| 81 | <member>2014</member> |
| 82 | </simplelist> |
| 83 | </para> |
| 84 | <para>New in version 6.04</para> |
| 85 | </refsect1> |
| 86 | </refentry> |