Library/ManagedCuda/NPP/JPEGCompression.cs
/// <summary>
/// Initializes a quantization table for DCTQuantFwd8x8LS().<para/>
/// The method creates a 16-bit version of the raw table and converts the 
/// data order from zigzag layout to original row-order layout since raw
/// quantization tables are typically stored in zigzag format.<para/>
/// This method is a host method. It consumes and produces host data. I.e. the pointers
/// passed to this function must be host pointers. The resulting table needs to be
/// transferred to device memory in order to be used with nppiDCTQuantFwd8x8LS()
/// function.
/// </summary>
/// <param name="QuantRawTable">Host pointer to raw quantization table as returned by 
/// QuantFwdRawTableInit(). The raw quantization table is assumed to be in
/// zigzag order.</param>
/// <param name="QuantFwdRawTable">Forward quantization table for use with DCTQuantFwd8x8LS().</param>
Initializes a quantization table for DCTQuantFwd8x8LS().
The method creates a 16-bit version of the raw table and converts the
data order from zigzag layout to original row-order layout since raw
quantization tables are typically stored in zigzag format.
This method is a host method. It consumes and produces host data.
Initializes a quantization table for DCTQuantFwd8x8LS () . The method creates a 16 - bit version of the raw table and converts the data order from zigzag layout to original row - order layout since raw quantization tables are typically stored in zigzag format . This method is a host method . It consumes and produces host data .
public static void QuantFwdTableInit(byte[] QuantRawTable, ushort[] QuantFwdRawTable)
		{
			NppStatus status;
			status = NPPNativeMethods.NPPi.ImageCompression.nppiQuantFwdTableInit_JPEG_8u16u(QuantRawTable, QuantFwdRawTable);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiQuantFwdTableInit_JPEG_8u16u", status));
			NPPException.CheckNppStatus(status, null);
		}
public static void QuantFwdTableInit ( byte [ ] QuantRawTable , ushort [ ] QuantFwdRawTable ) { NppStatus status ; status = NPPNativeMethods . NPPi . ImageCompression . nppiQuantFwdTableInit_JPEG_8u16u ( QuantRawTable , QuantFwdRawTable ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
Initializes a quantization table for DCTQuantFwd8x8LS().
Initializes a quantization table for DCTQuantFwd8x8LS () .
QuantRawTable
byte[]
Host pointer to raw quantization table as returned by
QuantFwdRawTableInit(). The raw quantization table is assumed to be in
zigzag order.
Host pointer to raw quantization table as returned by QuantFwdRawTableInit () . The raw quantization table is assumed to be in zigzag order .
QuantFwdRawTable
ushort[]
Forward quantization table for use with DCTQuantFwd8x8LS().
Forward quantization table for use with DCTQuantFwd8x8LS () .