Library/ManagedCuda/NPP/JPEGCompression.cs
/// <summary>
/// Allocates memory and creates a Huffman table in a format that is suitable for the decoder on the host.
/// </summary>
/// <param name="pRawHuffmanTable">Huffman table formated as specified in the JPEG standard.</param>
/// <param name="eTableType">Enum specifying type of table (nppiDCTable or nppiACTable).</param>
/// <returns>Huffman table for the decoder</returns>
Allocates memory and creates a Huffman table in a format that is suitable for the decoder on the host.
Allocates memory and creates a Huffman table in a format that is suitable for the decoder on the host .
public static NppiDecodeHuffmanSpec DecodeHuffmanSpecInitAllocHost(byte[] pRawHuffmanTable, NppiHuffmanTableType eTableType)
		{
			NppiDecodeHuffmanSpec spec = new NppiDecodeHuffmanSpec();
			NppStatus status;
			status = NPPNativeMethods.NPPi.CompressionDCT.nppiDecodeHuffmanSpecInitAllocHost_JPEG(pRawHuffmanTable, eTableType, ref spec);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiDecodeHuffmanSpecInitAllocHost_JPEG", status));
			NPPException.CheckNppStatus(status, null);
			return spec;
		}
public static NppiDecodeHuffmanSpec DecodeHuffmanSpecInitAllocHost ( byte [ ] pRawHuffmanTable , NppiHuffmanTableType eTableType ) { NppiDecodeHuffmanSpec spec = new NppiDecodeHuffmanSpec ( ) ; NppStatus status ; status = NPPNativeMethods . NPPi . CompressionDCT . nppiDecodeHuffmanSpecInitAllocHost_JPEG ( pRawHuffmanTable , eTableType , ref spec ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; return spec ; }
Allocates memory and creates a Huffman table in a format that is suitable for the decoder on the host.
Allocates memory and creates a Huffman table in a format that is suitable for the decoder on the host .
Huffman table for the decoder
Huffman table for the decoder
pRawHuffmanTable
byte[]
Huffman table formated as specified in the JPEG standard.
Huffman table formated as specified in the JPEG standard .
eTableType
NppiHuffmanTableType
Enum specifying type of table (nppiDCTable or nppiACTable).
Enum specifying type of table ( nppiDCTable or nppiACTable ) .