Created
December 14, 2022 16:15
-
-
Save usbharu/734a1d821eeddc06122d656a49f5c3c8 to your computer and use it in GitHub Desktop.
Jpegのセグメントの長さを見れるImHex Pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Segment { | |
be u16 mark; | |
be u16 length; | |
u8 parm[length - 2]; | |
}; | |
struct jpeg { | |
be u16 SOI; | |
Segment segments[12]; //ここよくわからんかったので適当に変えといて | |
be u16 EOI; | |
}; | |
jpeg jpeg @ 0x00; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment