Library/ManagedCuda/NPP/JPEGCompression.cs
/// <summary>
/// Forward DCT, quantization and level shift part of the JPEG encoding.
/// Input is expected in 8x8 macro blocks and output is expected to be in 64x1
/// macro blocks.
/// </summary>
/// <param name="src">Source image.</param>
/// <param name="dst">Destination image</param>
/// <param name="QuantFwdTable">Forward quantization tables for JPEG encoding created using QuantInvTableInit()</param>
/// <param name="oSizeRoi">Roi size (in macro blocks?).</param>
Forward DCT, quantization and level shift part of the JPEG encoding.
Input is expected in 8x8 macro blocks and output is expected to be in 64x1
macro blocks.
Forward DCT quantization and level shift part of the JPEG encoding . Input is expected in 8x8 macro blocks and output is expected to be in 64x1 macro blocks .
public static void DCTQuantFwd8x8LS(NPPImage_8uC1 src, NPPImage_16sC1 dst, CudaDeviceVariable<ushort> QuantFwdTable, NppiSize oSizeRoi)
		{
			NppStatus status;
			status = NPPNativeMethods.NPPi.ImageCompression.nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(src.DevicePointer, src.Pitch, dst.DevicePointer, dst.Pitch, QuantFwdTable.DevicePointer, oSizeRoi);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R", status));
			NPPException.CheckNppStatus(status, null);
		}
public static void DCTQuantFwd8x8LS ( NPPImage_8uC1 src , NPPImage_16sC1 dst , CudaDeviceVariable < ushort > QuantFwdTable , NppiSize oSizeRoi ) { NppStatus status ; status = NPPNativeMethods . NPPi . ImageCompression . nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R ( src . DevicePointer , src . Pitch , dst . DevicePointer , dst . Pitch , QuantFwdTable . DevicePointer , oSizeRoi ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
Forward DCT, quantization and level shift part of the JPEG encoding.
Forward DCT quantization and level shift part of the JPEG encoding .
src
NPPImage_8uC1
None
dst
NPPImage_16sC1
None
QuantFwdTable
CudaDeviceVariable<ushort>
Forward quantization tables for JPEG encoding created using QuantInvTableInit()
Forward quantization tables for JPEG encoding created using QuantInvTableInit ()
oSizeRoi
NppiSize
Roi size (in macro blocks?).
Roi size ( in macro blocks? ) .