Return a |_MarkerParser| instance to parse JFIF markers from `stream`.
(cls, stream)
| 135 | |
| 136 | @classmethod |
| 137 | def from_stream(cls, stream): |
| 138 | """Return a |_MarkerParser| instance to parse JFIF markers from `stream`.""" |
| 139 | stream_reader = StreamReader(stream, BIG_ENDIAN) |
| 140 | return cls(stream_reader) |
| 141 | |
| 142 | def iter_markers(self): |
| 143 | """Generate a (marker_code, segment_offset) 2-tuple for each marker in the JPEG |
nothing calls this directly
no test coverage detected