forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created MP4 box parsers to parse data for common box types (shaka-pro…
- Loading branch information
1 parent
6064574
commit ffaed64
Showing
6 changed files
with
298 additions
and
141 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
/*! @license | ||
* Shaka Player | ||
* Copyright 2016 Google LLC | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
|
||
/** | ||
* @externs | ||
*/ | ||
|
||
/** | ||
* @typedef {{ | ||
* defaultSampleDuration: ?number | ||
* }} | ||
* | ||
* @property {?number} defaultSampleDuration | ||
* If specified via flags, this overrides the default sample | ||
* duration in the Track Extends Box for this fragment | ||
* | ||
* @exportDoc | ||
*/ | ||
shaka.extern.ParsedTFHDBox; | ||
|
||
/** | ||
* @typedef {{ | ||
* baseMediaDecodeTime: !number | ||
* }} | ||
* | ||
* @property {!number} baseMediaDecodeTime | ||
* As per the spec: the absolute decode time, measured on the media | ||
* timeline, of the first sample in decode order in the track fragment | ||
* | ||
* @exportDoc | ||
*/ | ||
shaka.extern.ParsedTFDTBox; | ||
|
||
/** | ||
* @typedef {{ | ||
* timescale: !number | ||
* }} | ||
* | ||
* @property {!number} timescale | ||
* As per the spec: an integer that specifies the time‐scale for this media; | ||
* this is the number of time units that pass in one second | ||
* | ||
* @exportDoc | ||
*/ | ||
shaka.extern.ParsedMDHDBox; | ||
|
||
/** | ||
* @typedef {{ | ||
* defaultSampleDuration: !number | ||
* }} | ||
* | ||
* @property {!number} defaultSampleDuration | ||
* The default sample duration to be used in track fragments | ||
* | ||
* @exportDoc | ||
*/ | ||
shaka.extern.ParsedTREXBox; | ||
|
||
/** | ||
* @typedef {{ | ||
* sampleCount: !number, | ||
* sampleData: !Array.<shaka.extern.TRUNSample> | ||
* }} | ||
* | ||
* @property {!number} sampleCount | ||
* As per the spec: the number of samples being added in this run; | ||
* @property {!Array.<shaka.extern.TRUNSample>} sampleData | ||
* An array of size <sampleCount> containing data for each sample | ||
* | ||
* @exportDoc | ||
*/ | ||
shaka.extern.ParsedTRUNBox; | ||
|
||
/** | ||
* @typedef {{ | ||
* sampleDuration: ?number, | ||
* sampleSize: ?number, | ||
* sampleCompositionTimeOffset: ?number | ||
* }} | ||
* | ||
* @property {?number} sampleDuration | ||
* The length of the sample in timescale units. | ||
* @property {?number} sampleSize | ||
* The size of the sample in bytes. | ||
* @property {?number} sampleCompositionTimeOffset | ||
* The time since the start of the sample in timescale units. Time | ||
* offset is based of the start of the sample. If this value is | ||
* missing, the accumated durations preceeding this time sample will | ||
* be used to create the start time. | ||
*/ | ||
shaka.extern.TRUNSample; |
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
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
Oops, something went wrong.