This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21373 - Improve Coded Frame Processing and Segment Parser Loop algorithms
Summary: Improve Coded Frame Processing and Segment Parser Loop algorithms
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Aaron Colwell (c)
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-22 10:22 UTC by Cyril Concolato
Modified: 2013-04-04 20:40 UTC (History)
4 users (show)

See Also:


Attachments

Description Cyril Concolato 2013-03-22 10:22:57 UTC
I think the descriptions of the Coded Frame Processing (CFP) and the Segment Parser Loop (SPL) algorithms should be improved.

The CFP algorithm starts with:
"When complete coded frames have been parsed by the segment parser loop then the following steps are run:"

While the CFP algorithm is invoke from the SPL algo after the step:
"If the input buffer does not contain a complete media segment header yet, then jump to the need more data step below."

The CFP assumes that SPL has actually detected coded frame boundaries (not just the header), which is not obvious from reading the SPL algo only.

To clarify that, I'd suggest moving the first sentence of CFP and including it in step 6.3 of SPL. I'd suggest also moving and rephrasing the note about progressive parsing after step 6.3. The result would be as follows:

"3. If the input buffer contains one or more complete coded frames, run the coded frame processing algorithm.
NOTE: The frequency at which the coded frame processing algorithm is run is implementation-specific. The coded frame processing algorithm may be called when the input buffer contains the complete media segment or only some complete coded frames."
Comment 1 Aaron Colwell (c) 2013-03-26 18:00:09 UTC
Changes committed.
https://dvcs.w3.org/hg/html-media/rev/1e6898152c5b