less useless dc symbols

This commit is contained in:
Muaz Ahmad 2023-11-30 15:19:42 +05:00
parent 2dddb9371a
commit 03e986b5d6

View file

@ -31,7 +31,7 @@ const Scan = struct {
RLE_Seq.init(alloc_root),
RLE_Seq.init(alloc_root),
RLE_Seq.init(alloc_root),
}, .freqs = [4][]u32{ try alloc.alloc(u32, 257), try alloc.alloc(u32, 257), try alloc.alloc(u32, 257), try alloc.alloc(u32, 257) }, .huffs = [4]Huffman{
}, .freqs = [4][]u32{ try alloc.alloc(u32, 13), try alloc.alloc(u32, 257), try alloc.alloc(u32, 13), try alloc.alloc(u32, 257) }, .huffs = [4]Huffman{
Huffman.init(alloc),
Huffman.init(alloc),
Huffman.init(alloc),
@ -124,7 +124,6 @@ fn parse_block(block: *util.BlockQuantized, dc_diff: *i16, rle: *RLE_Seq, dc_fre
.symbol = 0x00,
.value = 0,
});
std.debug.print("{any}\n", .{rle.items});
}
pub fn generate_jpg(buff: util.Buffers, alloc: std.mem.Allocator) !void {