Zig Zag Scan Module

jpegenc.subblocks.zig_zag.zig_zag.zig_zag

Zig-Zag Module

This module performs the zig-zag reorderding. According to the zig-zag matrix the input list of signals is reordered. The inputs and the ouputs are parallel. The parameter N defines the size of the NxN block.

Inputs:
List of signals of a NxN block
Outputs:
Reordered list of signals of a NxN block
Parameters:
N = the size of the NxN block
class jpegenc.subblocks.zig_zag.zig_zag_scan(N)

Zig-Zag Scan Class

It is used to produce the zig-zag matrix and as a software reference for the zig-zag scan.

build_zig_zag_matrix(N)

Build the zig-zag matrix

zig_zag(signal_list)

Zig-zag scan function