I know that Huffman-Encoding is used in JPEG compression after the quantized DCT Coefficients are ZigZag and Run-Length encoded. But after RLE you have pairs like [..], (0|1), (2|1), [..]. I researched Huffman encoding and generally understood it, but I have no clue how to perform it on those values