2D DCT Module

jpegenc.subblocks.dct.dct_2d.dct_2d

2D-DCT Module

This module performs the 2D-DCT Transformation. It takes serially the inputs of a NxN block and outputs parallely the transformed block in 64 signals. The row-column decomposition method used to implement the 2d-dct. The parameter num_fractional_bits is used to define the fractional bits for the fixed point representation of the coefficients. The stage_1_prec parameter defines the fractional bits for the fixed point representation of the 1st stage 1d-dct outputs. The out_prec defines the fractional bits for the ouputs of the 2d-dct and the N parameter defines the size of the NxN block.

Inputs:
data_in, data_valid, clock, reset
Outputs:
NxN signals in the list out_sigs, data_valid
Parameters:
num_fractional_bits, stage_1_prec, out_prec, N
class jpegenc.subblocks.dct.dct_2d.dct_2d_transformation(N)

2D-DCT Transformation Class

It is used as a software reference for the 2D-DCT Transformation

build_matrix(N)

Create the NxN coefficient matrix

dct_2d_transformation(block)

2D-DCT software reference