switch 8x8 cell diff to vertical

This commit is contained in:
Crispy 2024-04-12 17:43:49 +02:00
parent b85cb52ce0
commit 242724d7fd
4 changed files with 29 additions and 27 deletions

View file

@ -57,7 +57,7 @@ fn encode(frames: &[Frame]) -> Vec<u8> {
enc::rle_diff_horizontal,
enc::rle_diff_vertical,
enc::bg_strips_horizontal,
enc::cell_diff_8_horizontal,
enc::cell_diff_8_vertical,
];
let mut last_frame = FRAME_0;
@ -109,8 +109,8 @@ enum Encoding {
// BGStripsV,
// QuadTree,
// DrawCommands,
CellDiff8H,
// CellDiff8V,
// CellDiff8H,
CellDiff8V,
// CellDiff4HH,
// CellDiff4HV,
// CellDiff4VH,
@ -129,8 +129,8 @@ fn get_matching_decoder(encoding: Encoding) -> FrameDecoder {
// Encoding::BGStripsV => todo!(),
// Encoding::QuadTree => todo!(),
// Encoding::DrawCommands => todo!(),
Encoding::CellDiff8H => dec::cell_diff_8_horizontal,
// Encoding::CellDiff8V => todo!(),
// Encoding::CellDiff8H => todo!(),
Encoding::CellDiff8V => dec::cell_diff_8_vertical,
// Encoding::CellDiff4HH => todo!(),
// Encoding::CellDiff4HV => todo!(),
// Encoding::CellDiff4VH => todo!(),