vstroebel / jfifdump

Dump structure of a jpeg file
Apache License 2.0
1 stars 2 forks source link

Feature Request: report size of segment in struct Segment #3

Closed mauricefisher64 closed 1 year ago

mauricefisher64 commented 1 year ago

It would be very useful if the segment size was part of Segment. Otherwise users will have to do a bunch of calculations themselves.

Thanks for considering.

vstroebel commented 1 year ago

If the segment size doesn't need to contain possible padding bytes before the next marker this should be trivial to implement. Adding the padding would need some more tweaks to the current reader implementation.