|
TB2026-YDS Firmware
|
MPEG Layer III header + Xing/Info/VBRI parsing (see mp3_frame.h). More...
Functions | |
| bool | mp3_frame_parse (const uint8_t *p, size_t len, mp3_frame_hdr_t *out) |
Parse a 4-byte MPEG Layer III frame header at p. | |
| uint32_t | mp3_xing_duration_ms (const uint8_t *frame, size_t len, const mp3_frame_hdr_t *hdr) |
| Track duration from a Xing/Info/VBRI tag in the first frame, if present. | |
MPEG Layer III header + Xing/Info/VBRI parsing (see mp3_frame.h).
| bool mp3_frame_parse | ( | const uint8_t * | p, |
| size_t | len, | ||
| mp3_frame_hdr_t * | out ) |
Parse a 4-byte MPEG Layer III frame header at p.
| p | Candidate frame start (the 0xFF sync byte). |
| len | Bytes readable from p (must be >= 4). |
| out | Filled on success. |
p holds a valid Layer III header; false otherwise. | uint32_t mp3_xing_duration_ms | ( | const uint8_t * | frame, |
| size_t | len, | ||
| const mp3_frame_hdr_t * | hdr ) |
Track duration from a Xing/Info/VBRI tag in the first frame, if present.
| frame | First frame start (its 0xFF sync byte). |
| len | Bytes readable from frame. |
| hdr | Header already parsed by mp3_frame_parse() for frame. |