feat: image pipeline with JPEG decode, resize, and Floyd-Steinberg dithering

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 10:56:12 -04:00
parent 9166bfe0ce
commit 7aaf920658
4 changed files with 592 additions and 0 deletions

View File

@@ -92,6 +92,16 @@ void test_favorites_weighting() {
TEST_ASSERT_EQUAL(5, weighted.size()); // 3 original + 2 extra
}
void test_nearest_color_black();
void test_nearest_color_white();
void test_nearest_color_red();
void test_nearest_color_green();
void test_nearest_color_blue();
void test_nearest_color_yellow();
void test_dither_solid_black();
void test_dither_solid_white();
void test_dither_produces_valid_indices();
void setUp() {}
void tearDown() {}
@@ -101,6 +111,15 @@ int main() {
RUN_TEST(test_advance_wraps_at_end);
RUN_TEST(test_empty_queue_returns_empty);
RUN_TEST(test_favorites_weighting);
RUN_TEST(test_nearest_color_black);
RUN_TEST(test_nearest_color_white);
RUN_TEST(test_nearest_color_red);
RUN_TEST(test_nearest_color_green);
RUN_TEST(test_nearest_color_blue);
RUN_TEST(test_nearest_color_yellow);
RUN_TEST(test_dither_solid_black);
RUN_TEST(test_dither_solid_white);
RUN_TEST(test_dither_produces_valid_indices);
UNITY_END();
return 0;
}