Expand description
JPEG single-image container, and JPEG Multi-Picture Format (MPF).
A JPEG file is its codec bitstream, so the demuxer hands the whole file to
the mjpeg codec as one packet and the muxer writes a
codec packet straight out. Dimensions for ffprobe come from a light scan
of the JPEG marker segments for the frame header (SOFn).
A JPEG that is an MPF file (CIPA DC-007: an APP2 MPF\0 index
listing more JPEG images appended after the first one’s EOI — Ultra HDR
gain-map photos, .mpo stereo pairs, camera previews) demuxes as one
stream per image, the way FFmpeg 9.1’s jpeg_mpf demuxer splits it:
streams in index order, one packet each holding that image’s bytes
exactly. Each stream’s Demuxer::stream_metadata names its MP Type
(mpf_type: primary, gain_map, disparity, large_thumbnail_vga,
…). Both the jpeg and the jpeg_mpf demuxers do this — jpeg_mpf is
what content sniffing picks when the index is in the first 4 KiB, jpeg
what it picks when a large Exif block pushes it further.
The jpeg_mpf muxer (-f jpeg_mpf, or a .mpo name) writes N JPEG
streams as one MPF file; see mpf::write. The index parsing and writing
live in mpf, which is no_std-friendly and independent of the rest of
rff.
Modules§
- keys
- The per-stream metadata keys the demuxer sets and the MPF muxer reads.
- mpf
- JPEG Multi-Picture Format (CIPA DC-007): the container layer.
Functions§
- register
- Register the JPEG formats (
jpeg,jpeg_mpf) into aFormatRegistry.