@blockcast/mmt-base 0.3.0 → 0.4.0-main.248efb07e294
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -18
- package/dist/catalog-fec-source.d.ts +88 -0
- package/dist/catalog-fec-source.d.ts.map +1 -0
- package/dist/catalog-fec-source.js +154 -0
- package/dist/catalog-fec-source.js.map +1 -0
- package/dist/fec-block-profile.d.ts +7 -7
- package/dist/fec-block-profile.d.ts.map +1 -1
- package/dist/fec-block-profile.js +22 -18
- package/dist/fec-block-profile.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/mmtp.d.ts +28 -24
- package/dist/mmtp.d.ts.map +1 -1
- package/dist/mmtp.js +63 -41
- package/dist/mmtp.js.map +1 -1
- package/dist/multicast-catalog.d.ts +75 -0
- package/dist/multicast-catalog.d.ts.map +1 -0
- package/dist/multicast-catalog.js +318 -0
- package/dist/multicast-catalog.js.map +1 -0
- package/dist/serial-number.d.ts +0 -29
- package/dist/serial-number.d.ts.map +1 -1
- package/dist/serial-number.js +0 -54
- package/dist/serial-number.js.map +1 -1
- package/dist/signalling.d.ts +49 -33
- package/dist/signalling.d.ts.map +1 -1
- package/dist/signalling.js +72 -58
- package/dist/signalling.js.map +1 -1
- package/package.json +2 -4
- package/src/catalog-fec-source.ts +183 -0
- package/src/fec-block-profile.ts +24 -24
- package/src/index.ts +2 -0
- package/src/mmtp.ts +78 -59
- package/src/multicast-catalog.ts +350 -0
- package/src/serial-number.ts +0 -58
- package/src/signalling.ts +87 -75
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @blockcast/mmt-base
|
|
2
2
|
|
|
3
|
-
The shared MMTP packet-parsing leaf for libmmt's TypeScript packages. It hosts the low-level MMTP / MPU / MFU header parsers, FEC payload-id predicates
|
|
3
|
+
The shared MMTP packet-parsing leaf for libmmt's TypeScript packages. It hosts the low-level MMTP / MPU / MFU header parsers, and FEC payload-id predicates — everything that operates on raw MMTP packet bytes **with zero FEC-decode dependency**. RFC 6330 OTI geometry belongs to `@blockcast/mmt-fec`.
|
|
4
4
|
|
|
5
|
-
It exists for one structural reason. Both `@blockcast/mmt-fec` and `@blockcast/mmt-container` need these primitives. Before this package they lived in `mmt-container`, so `mmt-fec` had to import `mmt-container` for them — while `mmt-container`'s `FecManager` already imports `mmt-fec`. That is a circular dependency. Extracting the primitives into this leaf breaks the cycle: both packages now import **down** into `mmt-base` rather than across into each other.
|
|
5
|
+
It exists for one structural reason. Both `@blockcast/mmt-fec` and `@blockcast/mmt-container` need these primitives. Before this package they lived in `mmt-container`, so `mmt-fec` had to import `mmt-container` for them — while `mmt-container`'s `FecManager` already imports `mmt-fec`. That is a circular dependency. Extracting the primitives into this leaf breaks the cycle: both packages now import **down** into `mmt-base` rather than across into each other. It has no runtime dependencies.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
pnpm add @blockcast/mmt-base
|
|
@@ -46,7 +46,7 @@ Single entry point — `package.json#exports` declares only `.`, and `src/index.
|
|
|
46
46
|
| `MMTP_HEADER_SIZE` (12), `MPU_HEADER_SIZE` (8), `MFU_DU_HEADER_SIZE_TIMED` (14), `MFU_DU_HEADER_SIZE_NONTIMED` (4) | const | Fixed header sizes |
|
|
47
47
|
| `PACKET_TYPE_MPU` (0x00), `PACKET_TYPE_SIGNALING` (0x02), `PACKET_TYPE_REPAIR` (0x03) | const | MMTP `packet_type` values |
|
|
48
48
|
|
|
49
|
-
MPU `payload_length` is interpreted strictly as ISO's length-after-field value: six remaining MPU-header bytes plus the data-unit header and media.
|
|
49
|
+
MPU `payload_length` is interpreted strictly as ISO's length-after-field value: six remaining MPU-header bytes plus the data-unit header and media. The legacy `0xf0a1` authenticator trailer (skipped, never verified — provenance is `@blockcast/mmt-manifest-verify`) and the Source FEC Payload ID are outside that span; malformed, zero-length, media-only, and ambiguous declarations are rejected.
|
|
50
50
|
|
|
51
51
|
### FEC payload-id, repair & AL-FEC signaling
|
|
52
52
|
|
|
@@ -58,7 +58,7 @@ MPU `payload_length` is interpreted strictly as ISO's length-after-field value:
|
|
|
58
58
|
| `extractRepairFecPayloadId` | function | Repair-flow FEC payload id (13-byte, `REPAIR_FEC_PID_SIZE`) |
|
|
59
59
|
| `parseMoqRepairFrame` | function | Strictly parse a mode-0 MMTP Annex C repair frame → `MoqRepairFrame` |
|
|
60
60
|
| `MoqRepairFrame` | type | Repair-frame shape |
|
|
61
|
-
| `ALFEC_MESSAGE_ID` (0x0203), `
|
|
61
|
+
| `ALFEC_MESSAGE_ID` (0x0203), `FEC_CODE_REED_SOLOMON` (1), `FEC_CODE_RAPTORQ` (3) (ISO/IEC 23008-10 Table 1), `REPAIR_FEC_PID_SIZE` (13) | const | AL-FEC signaling + payload-id constants |
|
|
62
62
|
| `MMTP_SIGNALING_PACKET_ID` (0), `MMTP_PACKET_ID_MAX` (0xffff) | const | Signaling-flow `packet_id` (never a track's) and the 16-bit `packet_id` ceiling; a track's `packet_id` is 1..65535 |
|
|
63
63
|
|
|
64
64
|
### Signalling messages (`signalling.ts`, packet_id 0)
|
|
@@ -69,22 +69,13 @@ replaced by Amd 1:2025.
|
|
|
69
69
|
|
|
70
70
|
| Symbol | Kind | Purpose |
|
|
71
71
|
|--------|------|---------|
|
|
72
|
-
| `parseSignallingPayload` | function | Split a signalling packet into complete messages
|
|
72
|
+
| `parseSignallingPayload` | function | Split a signalling packet into complete messages behind the 9.3.4.2 header (Figure 15); the payload form is always `iso-9.3.4.2`. A message straight after the MMTP header (the retired bare AL-FEC form) is refused |
|
|
73
73
|
| `parseSignallingPacket` | function | Decode every message of a signalling packet → `al-fec` / `pa` / `mpt` / `other` |
|
|
74
74
|
| `parseAlFecMessage`, `parseAlFecMessageBody` | function | Every FEC flow of an AL-FEC message: all asset packet_ids, one-stage / two-stage / LA-FEC repair flows, private fields → `AlFecMessage` |
|
|
75
|
-
| `alFecRaptorQFlowConfig` | function | One
|
|
75
|
+
| `alFecRaptorQFlowConfig` | function | One entry's decoder geometry per draft-ramadan-moq-mmt-01 8.3/12.2: coding byte 0x14 exactly, number_of_assets 1, code 3 (RaptorQ) or 1 (Reed-Solomon); K, T, P from `maximum_k_for_repair_flow`, `length_of_repair_symbol`, `maximum_p_for_repair_flow`; no OTI, a private field is ignored. Refuses code 2 and any other code, 0x15, T < 14, K = 0, P = 0, K + P - 1 > 2^24 - 1, RaptorQ T % 8 or K > 56403, Reed-Solomon K + P > 255, repair_flow_id 0 or the flow's own packet_id → `null` |
|
|
76
|
+
| `alFecMessageFlowConfigs` | function | `alFecRaptorQFlowConfig` for every entry, plus the 12.2 cross-entry refusals: repair_flow_id naming another entry's Asset, and both entries of a duplicate repair_flow_id or Asset → `null` |
|
|
76
77
|
| `parsePaMessageBody`, `parseMptMessageBody`, `parseMpTable`, `mpAssetPacketIds` | function | PA / MPT messages and the MP table: asset → packet_id mapping |
|
|
77
78
|
|
|
78
|
-
### ALTA trailer (re-exported from `@blockcast/mmt-alta-parse`)
|
|
79
|
-
|
|
80
|
-
| Symbol | Kind | Purpose |
|
|
81
|
-
|--------|------|---------|
|
|
82
|
-
| `extractAltaTrailer` | function | Extract the ALTA authentication trailer from an MMTP packet |
|
|
83
|
-
| `AltaTrailer` | type | Parsed trailer shape |
|
|
84
|
-
| `MMTP_EXT_TYPE_ALTA_AUTH`, `MMTP_EXT_TRAILER_HEADER_SIZE` | const | ALTA extension-header identifiers |
|
|
85
|
-
|
|
86
|
-
These four are re-exported so callers that already pull MMTP primitives from here don't need a second import from `@blockcast/mmt-alta-parse` just for the trailer.
|
|
87
|
-
|
|
88
79
|
## Why this package exists
|
|
89
80
|
|
|
90
81
|
```
|
|
@@ -119,13 +110,12 @@ npm test # vitest run
|
|
|
119
110
|
|
|
120
111
|
The direct suite owns header parsing, MFU extraction, payload-ID predicates,
|
|
121
112
|
declared-boundary rejection, C/X optional headers, and
|
|
122
|
-
|
|
113
|
+
legacy-authenticator/FEC suffix coverage. Downstream suites exercise integration only.
|
|
123
114
|
|
|
124
115
|
## Related packages
|
|
125
116
|
|
|
126
117
|
| Package | Relationship |
|
|
127
118
|
|---------|-------------|
|
|
128
|
-
| [`@blockcast/mmt-alta-parse`](../mmt-alta-parse) | Only dependency — supplies the ALTA trailer types this package re-exports |
|
|
129
119
|
| [`@blockcast/mmt-fec`](../fec) | Imports these parsers in `block-processor` to turn decoded FEC blocks back into MFU fragments |
|
|
130
120
|
| [`@blockcast/mmt-container`](../container) | Imports these primitives directly and builds the `FecManager`, MFU reassembler, and CMAF demuxer on top |
|
|
131
121
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/** The catalog media roles that carry hang renditions. */
|
|
2
|
+
export type CatalogFecRole = 'video' | 'audio';
|
|
3
|
+
/** One media source's `fec` block, as `locateCatalogFecSource` found it. */
|
|
4
|
+
export type CatalogFecSource = {
|
|
5
|
+
readonly dialect: 'hang';
|
|
6
|
+
readonly role: CatalogFecRole;
|
|
7
|
+
/** The rendition object. */
|
|
8
|
+
readonly entry: Record<string, unknown>;
|
|
9
|
+
/** The rendition's `fec` value, unvalidated (may be undefined). */
|
|
10
|
+
readonly fec: unknown;
|
|
11
|
+
/** JSON path of that `fec` block. */
|
|
12
|
+
readonly fecPath: string;
|
|
13
|
+
} | {
|
|
14
|
+
readonly dialect: 'msf';
|
|
15
|
+
/** Index of the entry in `tracks[]`. */
|
|
16
|
+
readonly index: number;
|
|
17
|
+
/** The `tracks[]` entry (an empty object when the entry is not an object). */
|
|
18
|
+
readonly entry: Record<string, unknown>;
|
|
19
|
+
/** The entry's `fec` value, unvalidated (may be undefined). */
|
|
20
|
+
readonly fec: unknown;
|
|
21
|
+
/** JSON path of that `fec` block. */
|
|
22
|
+
readonly fecPath: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Locate the catalog entry that declares one media source's `fec` block, in
|
|
26
|
+
* either catalog dialect.
|
|
27
|
+
*
|
|
28
|
+
* A hang `video`/`audio` rendition named `source` wins, in `roles` order, over
|
|
29
|
+
* a `tracks[]` entry of the same name: when a catalog carries rendition blocks
|
|
30
|
+
* beside a `tracks[]` switching-set index (the unified ABR ladder catalog),
|
|
31
|
+
* the rendition blocks are authoritative, exactly as they are for hang's own
|
|
32
|
+
* catalog decode. The precedence is keyed on the rendition EXISTING as an
|
|
33
|
+
* object, not on it carrying `fec`: a rendition without `fec` locates with
|
|
34
|
+
* `fec: undefined` and never falls through to `tracks[]`.
|
|
35
|
+
*
|
|
36
|
+
* Otherwise the first `tracks[]` entry named `source` locates. Returns
|
|
37
|
+
* undefined when neither dialect names it, or when `catalog` is not an object.
|
|
38
|
+
*
|
|
39
|
+
* @param roles the hang roles to search, in order (both by default). A typed
|
|
40
|
+
* track reference passes its own role only.
|
|
41
|
+
*/
|
|
42
|
+
export declare function locateCatalogFecSource(catalog: unknown, source: string, roles?: readonly CatalogFecRole[]): CatalogFecSource | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Whether an `iso-ssbg1-v1` block's optional `interleaveDepthMs` span is
|
|
45
|
+
* usable: absent, or a non-negative safe integer. Zero or absence supplies no
|
|
46
|
+
* elapsed deadline and still permits in-band FEC. True for every block that
|
|
47
|
+
* names another profile (the span is not read) and for a non-object.
|
|
48
|
+
*/
|
|
49
|
+
export declare function isoBlockSpanUsable(fec: unknown): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether one catalog `fec` block leaves its FEC available
|
|
52
|
+
* (draft-ramadan-moq-fec §5.1): the decision the container's
|
|
53
|
+
* `catalogFecUnavailable` explains with a typed reason.
|
|
54
|
+
*
|
|
55
|
+
* False when the block's `algorithm` is a token this receiver does not
|
|
56
|
+
* implement (`fecAlgorithmUnimplemented`); when it declares an FEC instance
|
|
57
|
+
* (any `algorithm` but `"none"`) and names no implemented `blockProfile` (the retired `k-padded-v1`
|
|
58
|
+
* included), or carries an `iso-ssbg1-v1` span it cannot use; and when a block
|
|
59
|
+
* declaring no FEC instance carries a profile token that is not implemented.
|
|
60
|
+
* True for a non-object and for every other block. It reads only the profile
|
|
61
|
+
* and the span: malformed geometry (`sourceSymbols`, `symbolSize`) is
|
|
62
|
+
* `catalogFecDeclaresUnconfigurableInstance`'s.
|
|
63
|
+
*
|
|
64
|
+
* A receiver applies no FEC to a source whose block is unavailable and joins
|
|
65
|
+
* none of its repair tracks, without failing the session.
|
|
66
|
+
*/
|
|
67
|
+
export declare function catalogFecAvailable(fec: unknown): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether `algorithm` is a token this receiver does not implement
|
|
70
|
+
* (draft-ramadan-moq-fec-01 4): any string but `none`, `raptorq` and
|
|
71
|
+
* `reed-solomon`. Such a track is consumed without FEC and its repair tracks
|
|
72
|
+
* are not joined; the catalog is not in error. An absent algorithm is not a
|
|
73
|
+
* token (the hang dialect omits it) and stays implemented.
|
|
74
|
+
*/
|
|
75
|
+
export declare function fecAlgorithmUnimplemented(algorithm: unknown): boolean;
|
|
76
|
+
/** Smallest `symbolSize` under `iso-ssbg1-v1` (draft-ramadan-moq-fec-01 5.1, 6.3.4 rule 13). */
|
|
77
|
+
export declare const ISO_SSBG1_MIN_SYMBOL_SIZE = 14;
|
|
78
|
+
/**
|
|
79
|
+
* Whether a source's `fec` block declares an FEC instance (any `algorithm`
|
|
80
|
+
* but `"none"`) whose `sourceSymbols` or `symbolSize` is not a positive
|
|
81
|
+
* integer, or whose `iso-ssbg1-v1` `symbolSize` is below
|
|
82
|
+
* `ISO_SSBG1_MIN_SYMBOL_SIZE` (rule 13: such a symbol carries no protected
|
|
83
|
+
* MMTP packet). Geometry a decoder cannot configure is a malformed catalog, not
|
|
84
|
+
* "no FEC": the container's per-track resolver throws `track_fec` for exactly
|
|
85
|
+
* this block, whatever its profile or span.
|
|
86
|
+
*/
|
|
87
|
+
export declare function catalogFecDeclaresUnconfigurableInstance(fec: unknown): boolean;
|
|
88
|
+
//# sourceMappingURL=catalog-fec-source.d.ts.map
|
|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AyB,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAErE;AAMD,gGAAgG;AAChG,eAAO,MAAM,yBAAyB,KAAK,CAAA;AAE3C;;;;;;;;GAQG;AACH,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAK9E"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog FEC source rules shared by every catalog reader (BLO-40851).
|
|
3
|
+
*
|
|
4
|
+
* These are the dialect-level reads the container resolvers
|
|
5
|
+
* (`resolveRepairLayers`, `catalogFecUnavailable`), the transport endpoint
|
|
6
|
+
* selection (`selectEndpointPacketIds`) and a player's repair inventory all
|
|
7
|
+
* need to agree on. They live here, in the leaf package every one of those
|
|
8
|
+
* depends on, so there is one copy of each rule instead of copies pinned
|
|
9
|
+
* against each other by tests.
|
|
10
|
+
*
|
|
11
|
+
* - `locateCatalogFecSource`: which catalog entry declares a source's `fec`
|
|
12
|
+
* block. hang `video`/`audio` rendition blocks are authoritative over an MSF
|
|
13
|
+
* `tracks[]` entry of the same name.
|
|
14
|
+
* - `catalogFecAvailable`: draft-ramadan-moq-fec §5.1, whether a block's FEC
|
|
15
|
+
* is usable at all (implemented `blockProfile`, usable span).
|
|
16
|
+
* - `catalogFecDeclaresUnconfigurableInstance`: a declared FEC instance whose
|
|
17
|
+
* geometry a decoder cannot configure, which is a malformed catalog rather
|
|
18
|
+
* than "no FEC".
|
|
19
|
+
*
|
|
20
|
+
* Every function is total: it never throws, whatever the input.
|
|
21
|
+
*/
|
|
22
|
+
import { isFecBlockProfile } from './fec-block-profile.js';
|
|
23
|
+
const ALL_ROLES = Object.freeze(['video', 'audio']);
|
|
24
|
+
function recordOf(value) {
|
|
25
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value)
|
|
26
|
+
? value
|
|
27
|
+
: undefined;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Locate the catalog entry that declares one media source's `fec` block, in
|
|
31
|
+
* either catalog dialect.
|
|
32
|
+
*
|
|
33
|
+
* A hang `video`/`audio` rendition named `source` wins, in `roles` order, over
|
|
34
|
+
* a `tracks[]` entry of the same name: when a catalog carries rendition blocks
|
|
35
|
+
* beside a `tracks[]` switching-set index (the unified ABR ladder catalog),
|
|
36
|
+
* the rendition blocks are authoritative, exactly as they are for hang's own
|
|
37
|
+
* catalog decode. The precedence is keyed on the rendition EXISTING as an
|
|
38
|
+
* object, not on it carrying `fec`: a rendition without `fec` locates with
|
|
39
|
+
* `fec: undefined` and never falls through to `tracks[]`.
|
|
40
|
+
*
|
|
41
|
+
* Otherwise the first `tracks[]` entry named `source` locates. Returns
|
|
42
|
+
* undefined when neither dialect names it, or when `catalog` is not an object.
|
|
43
|
+
*
|
|
44
|
+
* @param roles the hang roles to search, in order (both by default). A typed
|
|
45
|
+
* track reference passes its own role only.
|
|
46
|
+
*/
|
|
47
|
+
export function locateCatalogFecSource(catalog, source, roles = ALL_ROLES) {
|
|
48
|
+
const root = recordOf(catalog);
|
|
49
|
+
if (root === undefined)
|
|
50
|
+
return undefined;
|
|
51
|
+
for (const role of roles) {
|
|
52
|
+
const renditions = recordOf(recordOf(root[role])?.['renditions']);
|
|
53
|
+
if (renditions === undefined || !Object.hasOwn(renditions, source))
|
|
54
|
+
continue;
|
|
55
|
+
const entry = recordOf(renditions[source]);
|
|
56
|
+
if (entry === undefined)
|
|
57
|
+
continue;
|
|
58
|
+
return Object.freeze({
|
|
59
|
+
dialect: 'hang',
|
|
60
|
+
role,
|
|
61
|
+
entry,
|
|
62
|
+
fec: entry['fec'],
|
|
63
|
+
fecPath: `$.${role}.renditions[${JSON.stringify(source)}].fec`,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
const tracks = root['tracks'];
|
|
67
|
+
if (!Array.isArray(tracks))
|
|
68
|
+
return undefined;
|
|
69
|
+
const index = tracks.findIndex((track) => recordOf(track)?.['name'] === source);
|
|
70
|
+
if (index < 0)
|
|
71
|
+
return undefined;
|
|
72
|
+
const entry = recordOf(tracks[index]) ?? {};
|
|
73
|
+
return Object.freeze({
|
|
74
|
+
dialect: 'msf',
|
|
75
|
+
index,
|
|
76
|
+
entry,
|
|
77
|
+
fec: entry['fec'],
|
|
78
|
+
fecPath: `$.tracks[${index}].fec`,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Whether an `iso-ssbg1-v1` block's optional `interleaveDepthMs` span is
|
|
83
|
+
* usable: absent, or a non-negative safe integer. Zero or absence supplies no
|
|
84
|
+
* elapsed deadline and still permits in-band FEC. True for every block that
|
|
85
|
+
* names another profile (the span is not read) and for a non-object.
|
|
86
|
+
*/
|
|
87
|
+
export function isoBlockSpanUsable(fec) {
|
|
88
|
+
const block = recordOf(fec);
|
|
89
|
+
if (block === undefined || block['blockProfile'] !== 'iso-ssbg1-v1')
|
|
90
|
+
return true;
|
|
91
|
+
const ms = block['interleaveDepthMs'];
|
|
92
|
+
return ms === undefined || (typeof ms === 'number' && Number.isSafeInteger(ms) && ms >= 0);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Whether one catalog `fec` block leaves its FEC available
|
|
96
|
+
* (draft-ramadan-moq-fec §5.1): the decision the container's
|
|
97
|
+
* `catalogFecUnavailable` explains with a typed reason.
|
|
98
|
+
*
|
|
99
|
+
* False when the block's `algorithm` is a token this receiver does not
|
|
100
|
+
* implement (`fecAlgorithmUnimplemented`); when it declares an FEC instance
|
|
101
|
+
* (any `algorithm` but `"none"`) and names no implemented `blockProfile` (the retired `k-padded-v1`
|
|
102
|
+
* included), or carries an `iso-ssbg1-v1` span it cannot use; and when a block
|
|
103
|
+
* declaring no FEC instance carries a profile token that is not implemented.
|
|
104
|
+
* True for a non-object and for every other block. It reads only the profile
|
|
105
|
+
* and the span: malformed geometry (`sourceSymbols`, `symbolSize`) is
|
|
106
|
+
* `catalogFecDeclaresUnconfigurableInstance`'s.
|
|
107
|
+
*
|
|
108
|
+
* A receiver applies no FEC to a source whose block is unavailable and joins
|
|
109
|
+
* none of its repair tracks, without failing the session.
|
|
110
|
+
*/
|
|
111
|
+
export function catalogFecAvailable(fec) {
|
|
112
|
+
const block = recordOf(fec);
|
|
113
|
+
if (block === undefined)
|
|
114
|
+
return true;
|
|
115
|
+
if (fecAlgorithmUnimplemented(block['algorithm']))
|
|
116
|
+
return false;
|
|
117
|
+
const declaresFecInstance = block['algorithm'] !== 'none';
|
|
118
|
+
const profile = block['blockProfile'];
|
|
119
|
+
const profileOk = isFecBlockProfile(profile) || (profile === undefined && !declaresFecInstance);
|
|
120
|
+
return profileOk && (!declaresFecInstance || isoBlockSpanUsable(block));
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Whether `algorithm` is a token this receiver does not implement
|
|
124
|
+
* (draft-ramadan-moq-fec-01 4): any string but `none`, `raptorq` and
|
|
125
|
+
* `reed-solomon`. Such a track is consumed without FEC and its repair tracks
|
|
126
|
+
* are not joined; the catalog is not in error. An absent algorithm is not a
|
|
127
|
+
* token (the hang dialect omits it) and stays implemented.
|
|
128
|
+
*/
|
|
129
|
+
export function fecAlgorithmUnimplemented(algorithm) {
|
|
130
|
+
return typeof algorithm === 'string' && algorithm !== 'none' && algorithm !== 'raptorq' && algorithm !== 'reed-solomon';
|
|
131
|
+
}
|
|
132
|
+
function isPositiveSafeInteger(value) {
|
|
133
|
+
return typeof value === 'number' && Number.isSafeInteger(value) && value > 0;
|
|
134
|
+
}
|
|
135
|
+
/** Smallest `symbolSize` under `iso-ssbg1-v1` (draft-ramadan-moq-fec-01 5.1, 6.3.4 rule 13). */
|
|
136
|
+
export const ISO_SSBG1_MIN_SYMBOL_SIZE = 14;
|
|
137
|
+
/**
|
|
138
|
+
* Whether a source's `fec` block declares an FEC instance (any `algorithm`
|
|
139
|
+
* but `"none"`) whose `sourceSymbols` or `symbolSize` is not a positive
|
|
140
|
+
* integer, or whose `iso-ssbg1-v1` `symbolSize` is below
|
|
141
|
+
* `ISO_SSBG1_MIN_SYMBOL_SIZE` (rule 13: such a symbol carries no protected
|
|
142
|
+
* MMTP packet). Geometry a decoder cannot configure is a malformed catalog, not
|
|
143
|
+
* "no FEC": the container's per-track resolver throws `track_fec` for exactly
|
|
144
|
+
* this block, whatever its profile or span.
|
|
145
|
+
*/
|
|
146
|
+
export function catalogFecDeclaresUnconfigurableInstance(fec) {
|
|
147
|
+
const block = recordOf(fec);
|
|
148
|
+
if (block === undefined || block['algorithm'] === 'none' || fecAlgorithmUnimplemented(block['algorithm']))
|
|
149
|
+
return false;
|
|
150
|
+
if (!(isPositiveSafeInteger(block['sourceSymbols']) && isPositiveSafeInteger(block['symbolSize'])))
|
|
151
|
+
return true;
|
|
152
|
+
return block['blockProfile'] === 'iso-ssbg1-v1' && block['symbolSize'] < ISO_SSBG1_MIN_SYMBOL_SIZE;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=catalog-fec-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-fec-source.js","sourceRoot":"","sources":["../src/catalog-fec-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AA6B1D,MAAM,SAAS,GAA8B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAA;AAE9E,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACzE,CAAC,CAAE,KAAiC;QACpC,CAAC,CAAC,SAAS,CAAA;AACf,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAgB,EAChB,MAAc,EACd,QAAmC,SAAS;IAE5C,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC9B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S,KAAK,cAAc,CAAA;AACzH,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAc;IAC3C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,CAAA;AAC9E,CAAC;AAED,gGAAgG;AAChG,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAA;AAE3C;;;;;;;;GAQG;AACH,MAAM,UAAU,wCAAwC,CAAC,GAAY;IACnE,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAA;IAC3B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,MAAM,IAAI,yBAAyB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAAE,OAAO,KAAK,CAAA;IACvH,IAAI,CAAC,CAAC,qBAAqB,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,IAAI,qBAAqB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;QAAE,OAAO,IAAI,CAAA;IAC/G,OAAO,KAAK,CAAC,cAAc,CAAC,KAAK,cAAc,IAAK,KAAK,CAAC,YAAY,CAAY,GAAG,yBAAyB,CAAA;AAChH,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/** The
|
|
2
|
-
export type FecBlockProfile = '
|
|
3
|
-
/** Every accepted `fec.blockProfile` token
|
|
1
|
+
/** The block profile a catalog `fec.blockProfile` may name: the one this library implements. */
|
|
2
|
+
export type FecBlockProfile = 'iso-ssbg1-v1';
|
|
3
|
+
/** Every accepted `fec.blockProfile` token. */
|
|
4
4
|
export declare const FEC_BLOCK_PROFILES: readonly FecBlockProfile[];
|
|
5
|
-
/** True for a
|
|
5
|
+
/** True for a block-profile token this library implements. */
|
|
6
6
|
export declare function isFecBlockProfile(value: unknown): value is FecBlockProfile;
|
|
7
7
|
/**
|
|
8
|
-
* Read a required `fec.blockProfile`. Throws on an absent
|
|
9
|
-
* there is no default and nothing is
|
|
10
|
-
*
|
|
8
|
+
* Read a required `fec.blockProfile`. Throws on an absent token and on any
|
|
9
|
+
* token other than `iso-ssbg1-v1`: there is no default and nothing is
|
|
10
|
+
* inferred from the wire (draft-ramadan-moq-fec §5.1).
|
|
11
11
|
*
|
|
12
12
|
* @param where the catalog path of the field, for the error message.
|
|
13
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fec-block-profile.d.ts","sourceRoot":"","sources":["../src/fec-block-profile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fec-block-profile.d.ts","sourceRoot":"","sources":["../src/fec-block-profile.ts"],"names":[],"mappings":"AA6BA,gGAAgG;AAChG,MAAM,MAAM,eAAe,GAAG,cAAc,CAAA;AAE5C,+CAA+C;AAC/C,eAAO,MAAM,kBAAkB,EAAE,SAAS,eAAe,EAEvD,CAAA;AAEF,8DAA8D;AAC9D,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,eAAe,CAMnF;AAED,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,IAAI,CAAA;AAEzC,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAOjF;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,UAAU,CAczF;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,CAS3E;AAED,kFAAkF;AAClF,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1F;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAKpF"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* FEC block profile (BLO-35597, ISO/IEC 23008-1 Annex C).
|
|
3
3
|
*
|
|
4
|
-
* Every catalog `fec` object that declares an FEC instance names
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Every catalog `fec` object that declares an FEC instance names its block
|
|
5
|
+
* profile in `fec.blockProfile`. A receiver applies all of a profile's rules
|
|
6
|
+
* or none of them, so the token is the one explicit per-stream discriminator:
|
|
7
|
+
* it is never defaulted and never inferred from the wire.
|
|
8
|
+
*
|
|
9
|
+
* draft-ramadan-moq-fec §5.1 defines exactly one value, and it is the only
|
|
10
|
+
* profile this library implements:
|
|
8
11
|
*
|
|
9
|
-
* - `k-padded-v1` (legacy, Blockcast-private): a source symbol is the
|
|
10
|
-
* protected MMTP packet zero-padded to T with no length field; every block
|
|
11
|
-
* is a K-symbol RaptorQ block whose ESIs `SSB_length..K-1` are implicit
|
|
12
|
-
* zero padding; `SS_ID = SBN*K + ESI`, so `SS_Start = SBN*K`; repair
|
|
13
|
-
* ESI = K + RS_ID; the MoQ repair group id is the SBN.
|
|
14
12
|
* - `iso-ssbg1-v1`: ssbg_mode1 (C.3.3): a source symbol is
|
|
15
13
|
* `u16 length || protected packet || zero padding` to T; a block is a
|
|
16
14
|
* K' = SSB_length RaptorQ block (C.5.3) and repair ESI = SSB_length + RS_ID;
|
|
@@ -19,21 +17,27 @@
|
|
|
19
17
|
* under RFC 1982 serial arithmetic; the MoQ repair group id is the 62-bit
|
|
20
18
|
* wrap-epoch-extended SS_Start. The AL-FEC coding byte for this profile is
|
|
21
19
|
* 0x14 (one-stage, ssbg_mode1, fec_payload_id_mode 0, Amd 1:2025 Table C.3).
|
|
20
|
+
*
|
|
21
|
+
* A track whose `blockProfile` is absent or names any other token (the
|
|
22
|
+
* retired Blockcast-private `k-padded-v1` included) has no FEC: a receiver
|
|
23
|
+
* consumes its source without FEC and joins none of its repair tracks
|
|
24
|
+
* (draft-ramadan-moq-fec §5.1). `parseFecBlockProfile` throws for such a
|
|
25
|
+
* token; the per-track catalog resolver turns the same rule into a typed
|
|
26
|
+
* per-track "FEC unavailable" outcome instead of failing the session.
|
|
22
27
|
*/
|
|
23
28
|
import { serial32Add, serial32Distance, serial32Precedes } from './serial-number.js';
|
|
24
|
-
/** Every accepted `fec.blockProfile` token
|
|
29
|
+
/** Every accepted `fec.blockProfile` token. */
|
|
25
30
|
export const FEC_BLOCK_PROFILES = Object.freeze([
|
|
26
|
-
'k-padded-v1',
|
|
27
31
|
'iso-ssbg1-v1',
|
|
28
32
|
]);
|
|
29
|
-
/** True for a
|
|
33
|
+
/** True for a block-profile token this library implements. */
|
|
30
34
|
export function isFecBlockProfile(value) {
|
|
31
|
-
return value === '
|
|
35
|
+
return value === 'iso-ssbg1-v1';
|
|
32
36
|
}
|
|
33
37
|
/**
|
|
34
|
-
* Read a required `fec.blockProfile`. Throws on an absent
|
|
35
|
-
* there is no default and nothing is
|
|
36
|
-
*
|
|
38
|
+
* Read a required `fec.blockProfile`. Throws on an absent token and on any
|
|
39
|
+
* token other than `iso-ssbg1-v1`: there is no default and nothing is
|
|
40
|
+
* inferred from the wire (draft-ramadan-moq-fec §5.1).
|
|
37
41
|
*
|
|
38
42
|
* @param where the catalog path of the field, for the error message.
|
|
39
43
|
*/
|
|
@@ -41,9 +45,9 @@ export function parseFecBlockProfile(value, where) {
|
|
|
41
45
|
if (isFecBlockProfile(value))
|
|
42
46
|
return value;
|
|
43
47
|
if (value === undefined) {
|
|
44
|
-
throw new Error(`${where} is required: name the FEC block profile ("
|
|
48
|
+
throw new Error(`${where} is required: name the FEC block profile ("iso-ssbg1-v1")`);
|
|
45
49
|
}
|
|
46
|
-
throw new Error(`${where} must be "
|
|
50
|
+
throw new Error(`${where} must be "iso-ssbg1-v1" (got ${JSON.stringify(value)})`);
|
|
47
51
|
}
|
|
48
52
|
/** ISO/IEC 23008-1 C.3.3 ssbg_mode1: the two-octet packet length field. */
|
|
49
53
|
export const SSBG1_LENGTH_FIELD_BYTES = 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fec-block-profile.js","sourceRoot":"","sources":["../src/fec-block-profile.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"fec-block-profile.js","sourceRoot":"","sources":["../src/fec-block-profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAKpF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,kBAAkB,GAA+B,MAAM,CAAC,MAAM,CAAC;IAC1E,cAAc;CACf,CAAC,CAAA;AAEF,8DAA8D;AAC9D,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,OAAO,KAAK,KAAK,cAAc,CAAA;AACjC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAc,EAAE,KAAa;IAChE,IAAI,iBAAiB,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAA;IAC1C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,2DAA2D,CAAC,CAAA;IACtF,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,gCAAgC,IAAI,CAAC,SAAS,C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,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAC/E,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA"}
|
package/dist/mmtp.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { extractAltaTrailer as _leafExtractAltaTrailer, type AltaTrailer as _LeafAltaTrailer } from '@blockcast/mmt-alta-parse';
|
|
2
1
|
/**
|
|
3
2
|
* @mmt/container - MMTP Parser
|
|
4
3
|
*
|
|
@@ -70,6 +69,7 @@ export declare const MMTP_HEADER_SIZE = 12;
|
|
|
70
69
|
export declare const MPU_HEADER_SIZE = 8;
|
|
71
70
|
export declare const MFU_DU_HEADER_SIZE_TIMED = 14;
|
|
72
71
|
export declare const MFU_DU_HEADER_SIZE_NONTIMED = 4;
|
|
72
|
+
export declare const SOURCE_FEC_PAYLOAD_ID_SIZE = 4;
|
|
73
73
|
export declare const PACKET_TYPE_MPU = 0;
|
|
74
74
|
export declare const PACKET_TYPE_SIGNALING = 2;
|
|
75
75
|
export declare const PACKET_TYPE_REPAIR = 3;
|
|
@@ -84,8 +84,8 @@ export declare const ALFEC_MESSAGE_ID = 515;
|
|
|
84
84
|
export declare const MMTP_SIGNALING_PACKET_ID = 0;
|
|
85
85
|
/** Largest value of the 16-bit MMTP `packet_id` header field. */
|
|
86
86
|
export declare const MMTP_PACKET_ID_MAX = 65535;
|
|
87
|
-
export declare const
|
|
88
|
-
export declare const FEC_CODE_RAPTORQ =
|
|
87
|
+
export declare const FEC_CODE_REED_SOLOMON = 1;
|
|
88
|
+
export declare const FEC_CODE_RAPTORQ = 3;
|
|
89
89
|
/**
|
|
90
90
|
* Parse MMTP header from buffer
|
|
91
91
|
*/
|
|
@@ -128,6 +128,24 @@ export interface MFURejection {
|
|
|
128
128
|
/** Human-readable detail, including the byte arithmetic that decided it. */
|
|
129
129
|
detail: string;
|
|
130
130
|
}
|
|
131
|
+
/** Options for extractMFUPayload and explainMFURejection. */
|
|
132
|
+
export interface MFUExtractOptions {
|
|
133
|
+
/**
|
|
134
|
+
* When true, do NOT subtract the Source FEC Payload ID from the payload
|
|
135
|
+
* boundary, even if fecType >= 1. For FEC-recovered symbols whose FEC PID
|
|
136
|
+
* was already stripped before WASM decoding.
|
|
137
|
+
*/
|
|
138
|
+
skipFecId?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* The catalog declares a keyframe overlay (`scope: "keyframe"` repair track)
|
|
141
|
+
* for this packet's source. A RAP packet then carries two Source FEC Payload
|
|
142
|
+
* IDs, base first and overlay last (BLO-32719 Clarification 7). This is a
|
|
143
|
+
* catalog fact, never inferred: the header has no overlay bit, and a payload
|
|
144
|
+
* four bytes shorter is byte-identical to a missing overlay. Mirrors
|
|
145
|
+
* mmt-core `split_payload_and_source_fec_trailers(overlay_declared)`.
|
|
146
|
+
*/
|
|
147
|
+
overlayDeclared?: boolean;
|
|
148
|
+
}
|
|
131
149
|
/**
|
|
132
150
|
* Extract NAL unit payload from MMTP packet
|
|
133
151
|
*/
|
|
@@ -150,6 +168,10 @@ export interface MFUExtraction {
|
|
|
150
168
|
fecPayloadId: {
|
|
151
169
|
ssId: number;
|
|
152
170
|
} | null;
|
|
171
|
+
/** Keyframe-overlay Source FEC Payload ID: RAP packets with `overlayDeclared` only. */
|
|
172
|
+
overlayFecPayloadId: {
|
|
173
|
+
ssId: number;
|
|
174
|
+
} | null;
|
|
153
175
|
}
|
|
154
176
|
/**
|
|
155
177
|
* Report why `extractMFUPayload` would refuse this packet, or null if it would
|
|
@@ -161,12 +183,8 @@ export interface MFUExtraction {
|
|
|
161
183
|
* that distinction matters: diagnostics, contract tests, and operator-facing
|
|
162
184
|
* logs.
|
|
163
185
|
*/
|
|
164
|
-
export declare function explainMFURejection(mmtpPacket: Uint8Array, options?:
|
|
165
|
-
|
|
166
|
-
}): MFURejection | null;
|
|
167
|
-
export declare function extractMFUPayload(mmtpPacket: Uint8Array, options?: {
|
|
168
|
-
skipFecId?: boolean;
|
|
169
|
-
}): MFUExtraction | null;
|
|
186
|
+
export declare function explainMFURejection(mmtpPacket: Uint8Array, options?: MFUExtractOptions): MFURejection | null;
|
|
187
|
+
export declare function extractMFUPayload(mmtpPacket: Uint8Array, options?: MFUExtractOptions): MFUExtraction | null;
|
|
170
188
|
/**
|
|
171
189
|
* extractMFUPayload for a caller that already holds this packet's parsed MMTP
|
|
172
190
|
* header, so the header is not parsed a second time (BLO-36599).
|
|
@@ -174,9 +192,7 @@ export declare function extractMFUPayload(mmtpPacket: Uint8Array, options?: {
|
|
|
174
192
|
* `header` must be `parseMMTPHeader(mmtpPacket)` of this same packet; the
|
|
175
193
|
* result is then identical to `extractMFUPayload(mmtpPacket, options)`.
|
|
176
194
|
*/
|
|
177
|
-
export declare function extractMFUPayloadWithHeader(mmtpPacket: Uint8Array, header: MMTPHeader, options?:
|
|
178
|
-
skipFecId?: boolean;
|
|
179
|
-
}): MFUExtraction | null;
|
|
195
|
+
export declare function extractMFUPayloadWithHeader(mmtpPacket: Uint8Array, header: MMTPHeader, options?: MFUExtractOptions): MFUExtraction | null;
|
|
180
196
|
/**
|
|
181
197
|
* Extract timestamp from MMTP packet
|
|
182
198
|
*/
|
|
@@ -220,18 +236,6 @@ export declare function hasSourceFecPayloadId(mmtpPacket: Uint8Array): boolean;
|
|
|
220
236
|
export declare function sourceFecPayloadIdOf(mmtpPacket: Uint8Array, header: MMTPHeader): {
|
|
221
237
|
ssId: number;
|
|
222
238
|
} | null;
|
|
223
|
-
/**
|
|
224
|
-
* MMTP header-extension ext_type assigned to the detached ALTA authenticator
|
|
225
|
-
* trailer (Path 2 / 08-07). Carried in an `[ext_type][ext_length][auth]`
|
|
226
|
-
* block appended after the MPU's declared payload bytes, before the 4-byte
|
|
227
|
-
* Source FEC Payload ID. MMTP X-bit stays 0 — non-ALTA MMTP receivers treat
|
|
228
|
-
* the trailer as bytes past `payload_length` and skip it (per ISO 23008-1
|
|
229
|
-
* §9.2.2 "may be discarded without impacting correct processing").
|
|
230
|
-
*/
|
|
231
|
-
export declare const MMTP_EXT_TYPE_ALTA_AUTH = 61601;
|
|
232
|
-
export declare const MMTP_EXT_TRAILER_HEADER_SIZE = 4;
|
|
233
|
-
export type AltaTrailer = _LeafAltaTrailer;
|
|
234
|
-
export declare const extractAltaTrailer: typeof _leafExtractAltaTrailer;
|
|
235
239
|
/** Size of Repair FEC Payload ID per ISO/IEC 23008-1 Section C.5.3 */
|
|
236
240
|
export declare const REPAIR_FEC_PID_SIZE = 13;
|
|
237
241
|
/**
|
package/dist/mmtp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mmtp.d.ts","sourceRoot":"","sources":["../src/mmtp.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mmtp.d.ts","sourceRoot":"","sources":["../src/mmtp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,sDAAsD;IACtD,iBAAiB,EAAE,OAAO,CAAA;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4DAA4D;IAC5D,aAAa,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,CAAA;IAC9C,oDAAoD;IACpD,YAAY,EAAE,MAAM,CAAA;IACpB,gFAAgF;IAChF,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,sBAAsB,EAAE,MAAM,CAAA;IAC9B,8CAA8C;IAC9C,eAAe,EAAE,MAAM,CAAA;IACvB,iFAAiF;IACjF,SAAS,EAA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