Library/ManagedCuda/NPP/JPEGCompression.cs
/// <summary>
/// Creates a Huffman table in a format that is suitable for the encoder.
/// </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>
/// <param name="pHuffmanSpec">Pointer to the Huffman table for the decoder</param>
/// <returns>Huffman table for the encoder</returns>
Creates a Huffman table in a format that is suitable for the encoder.
Creates a Huffman table in a format that is suitable for the encoder .
public static void EncodeHuffmanSpecInit(byte[] pRawHuffmanTable, NppiHuffmanTableType eTableType, NppiEncodeHuffmanSpec pHuffmanSpec)
		{
			NppStatus status;
			status = NPPNativeMethods.NPPi.CompressionDCT.nppiEncodeHuffmanSpecInit_JPEG(pRawHuffmanTable, eTableType, pHuffmanSpec);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiEncodeHuffmanSpecInit_JPEG", status));
			NPPException.CheckNppStatus(status, null);
		}
public static void EncodeHuffmanSpecInit ( byte [ ] pRawHuffmanTable , NppiHuffmanTableType eTableType , NppiEncodeHuffmanSpec pHuffmanSpec ) { NppStatus status ; status = NPPNativeMethods . NPPi . CompressionDCT . nppiEncodeHuffmanSpecInit_JPEG ( pRawHuffmanTable , eTableType , pHuffmanSpec ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
Creates a Huffman table in a format that is suitable for the encoder.
Creates a Huffman table in a format that is suitable for the encoder .
Huffman table for the encoder
Huffman table for the encoder
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 ) .
pHuffmanSpec
NppiEncodeHuffmanSpec
Pointer to the Huffman table for the decoder
Pointer to the Huffman table for the decoder