Skip to content

Commit

Permalink
fixup! feat(pandagl): update image reader to support reading one row …
Browse files Browse the repository at this point in the history
…of data
  • Loading branch information
lc-soft committed Feb 10, 2024
1 parent 6a7578b commit aa5cb2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/pandagl/src/image/jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/pandagl/src/image/jpeg_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa5cb2b

Please sign in to comment.