You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code is already structured to handle row callbacks, this depends on #10, the testsuite also needs some refactoring before tests can be added for this.
The text was updated successfully, but these errors were encountered:
spng_decode_scanline() decodes a single scanline, while spng_decode_row() decodes a scanline and deinterlaces it, when the image is not interlaced their behavior is identical.
spng_get_row_info() copies row information for the to-be-decoded scanline to row_info.
struct spng_row_info exposes values that change between spng_decode_row/scanline() calls. row_num is the row number in the deinterlaced image, scanline_idx is the scanline index within the current subimage. pass is the pass number, filter is the scanline's filter byte.
Row callbacks (not yet implemented) would differ from libpng's, spng_decode_scanline/row() has to be called inside the function and would probably look something like this:
With libpng the decoded scanline/row has to be copied from an internal buffer before returning from the callback, libspng would decode to a user-supplied buffer directly.
The code is already structured to handle row callbacks, this depends on #10, the testsuite also needs some refactoring before tests can be added for this.The text was updated successfully, but these errors were encountered: