[Toybox] [PATCH] file: parse JPEG files enough to pull out their size in pixels.

enh enh at google.com
Sun Dec 17 16:26:56 PST 2023


This doesn't handle refilling toybuf in the case where there's so
much EXIF data before the header we're looking for that we hit the
end of toybuf first. (In part because I couldn't decide whether to
do that or switch to a scheme where we only ever lseek() around,
reading big-endian shorts.)
---
 toys/posix/file.c | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-file-parse-JPEG-files-enough-to-pull-out-their-size-.patch
Type: application/octet-stream
Size: 2033 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20231217/a22282b7/attachment.obj>


More information about the Toybox mailing list