From 03e986b5d6febd1d733ea2810f2121e214891af3 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Thu, 30 Nov 2023 15:19:42 +0500 Subject: [PATCH] less useless dc symbols --- src/output.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/output.zig b/src/output.zig index 7f9abbf..a5ab332 100644 --- a/src/output.zig +++ b/src/output.zig @@ -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 {