Library/ManagedCuda/NPP/JPEGCompression.cs
/// <summary>
/// Calculates the size of the temporary buffer for huffman encoding.
/// </summary>
/// <param name="oSize">Image Dimension</param>
/// <param name="nChannels">Number of channels</param>
/// <returns>the size of the temporary buffer</returns>
Calculates the size of the temporary buffer for huffman encoding.
Calculates the size of the temporary buffer for huffman encoding .
public static int EncodeHuffmanGetSize(NppiSize oSize, int nChannels)
		{
			int size = 0;
			NppStatus status;
			status = NPPNativeMethods.NPPi.CompressionDCT.nppiEncodeHuffmanGetSize(oSize, nChannels, ref size);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiEncodeHuffmanGetSize", status));
			NPPException.CheckNppStatus(status, null);
			return size;
		}
public static int EncodeHuffmanGetSize ( NppiSize oSize , int nChannels ) { int size = 0 ; NppStatus status ; status = NPPNativeMethods . NPPi . CompressionDCT . nppiEncodeHuffmanGetSize ( oSize , nChannels , ref size ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; return size ; }
Calculates the size of the temporary buffer for huffman encoding.
Calculates the size of the temporary buffer for huffman encoding .
the size of the temporary buffer
the size of the temporary buffer
oSize
NppiSize
None
nChannels
int
Number of channels
Number of channels