From aa5cb2bc39b060f1c369fc150982367d9d9c9d2a Mon Sep 17 00:00:00 2001 From: Liu Date: Sat, 10 Feb 2024 14:30:15 +0800 Subject: [PATCH] fixup! feat(pandagl): update image reader to support reading one row of data --- lib/pandagl/src/image/jpeg.c | 3 +-- lib/pandagl/src/image/jpeg_private.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/pandagl/src/image/jpeg.c b/lib/pandagl/src/image/jpeg.c index f64a488d5..446cd0635 100644 --- a/lib/pandagl/src/image/jpeg.c +++ b/lib/pandagl/src/image/jpeg.c @@ -104,7 +104,7 @@ static void pd_jpeg_reader_on_terminate(j_decompress_ptr cinfo) } -pd_error_t pd_jpeg_reader_create(pd_image_reader_t *reader) +void pd_jpeg_reader_create(pd_image_reader_t *reader) { pd_jpeg_reader_t *jpeg_reader; @@ -123,7 +123,6 @@ pd_error_t pd_jpeg_reader_create(pd_image_reader_t *reader) jpeg_reader->cinfo.src = &jpeg_reader->src; jpeg_reader->cinfo.err = jpeg_std_error(&jpeg_reader->err.pub); reader->reader_data = jpeg_reader; - return PD_OK; } void pd_jpeg_reader_start(pd_image_reader_t *reader) diff --git a/lib/pandagl/src/image/jpeg_private.h b/lib/pandagl/src/image/jpeg_private.h index 2d452afbb..b6ed600d4 100644 --- a/lib/pandagl/src/image/jpeg_private.h +++ b/lib/pandagl/src/image/jpeg_private.h @@ -9,7 +9,7 @@ * LICENSE.TXT file in the root directory of this source tree. */ -pd_error_t pd_jpeg_reader_create(pd_image_reader_t *reader); +void pd_jpeg_reader_create(pd_image_reader_t *reader); void pd_jpeg_reader_destroy(pd_image_reader_t *reader); jmp_buf *pd_jpeg_reader_jmpbuf(pd_image_reader_t *reader); pd_error_t pd_jpeg_reader_read_header(pd_image_reader_t *reader);