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. The new version of the primitive takes the ROI in image pixel size and
/// works with DCT coefficients that are in zig-zag order.
/// </summary>
/// <param name="src">Source image.</param>
/// <param name="dst">Destination image</param>
/// <param name="QuantFwdTable">Quantization Table in zig-zag order</param>
/// <param name="oSizeRoi">Roi size (in pixels).</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. The new version of the primitive takes the ROI in image pixel size and
works with DCT coefficients that are in zig-zag order.
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 . The new version of the primitive takes the ROI in image pixel size and works with DCT coefficients that are in zig - zag order .
public void DCTQuantFwd8x8LS(NPPImage_8uC1 src, NPPImage_16sC1 dst, NppiSize oSizeRoi, CudaDeviceVariable<byte> QuantFwdTable)
		{
			status = NPPNativeMethods.NPPi.CompressionDCT.nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(src.DevicePointer, src.Pitch, dst.DevicePointer, dst.Pitch, QuantFwdTable.DevicePointer, oSizeRoi, _state);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW", status));
			NPPException.CheckNppStatus(status, this);
		}
public void DCTQuantFwd8x8LS ( NPPImage_8uC1 src , NPPImage_16sC1 dst , NppiSize oSizeRoi , CudaDeviceVariable < byte > QuantFwdTable ) { status = NPPNativeMethods . NPPi . CompressionDCT . nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW ( src . DevicePointer , src . Pitch , dst . DevicePointer , dst . Pitch , QuantFwdTable . DevicePointer , oSizeRoi , _state ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
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
oSizeRoi
NppiSize
Roi size (in pixels).
Roi size ( in pixels ) .
QuantFwdTable
CudaDeviceVariable<byte>
Quantization Table in zig-zag order
Quantization Table in zig - zag order