Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Issue 785343002: Added function to implement Coded Frame Eviction Algorithm (Closed)

Created:
6 years ago by kjoswiak
Modified:
5 years, 8 months ago
Reviewers:
philipj_slow, wolenetz
CC:
blink-reviews, feature-media-reviews_chromium.org, dglazkov+blink, eric.carlson_apple.com, lcwu1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Added function to implement Coded Frame Eviction Algorithm Provided interface to allow blink to implement "3.5.12 Coded Frame Eviction Algorithm" https://w3c.github.io/media-source/#sourcebuffer-coded-frame-eviction Also allowed this function to detect when buffer is overfull, and throw QUOTA_EXCEEDED_ERR accordingly. https://w3c.github.io/media-source/#sourcebuffer-prepare-append

Patch Set 1 #

Total comments: 6

Patch Set 2 : WIP Need layout tests #

Patch Set 3 : Added CodedFrameEviction() to 3.5.6 Stream Append Loop #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -16 lines) Patch
M Source/modules/mediasource/SourceBuffer.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/mediasource/SourceBuffer.cpp View 1 2 3 6 chunks +45 lines, -16 lines 0 comments Download
M public/platform/WebSourceBuffer.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
kjoswiak
Codependent on https://codereview.chromium.org/789983003/ (is there a way to merge these CLs under a single issue? ...
6 years ago (2014-12-09 22:59:07 UTC) #1
kjoswiak
+dalecurtis, wolenetz Please add anyone else who would be interested, and let me know who ...
6 years ago (2014-12-09 23:28:10 UTC) #3
philipj_slow
This looks reasonable. Please add some LayoutTests that trigger each of the exceptions. If they're ...
6 years ago (2014-12-10 09:28:26 UTC) #5
philipj_slow
Also either remove BUG= or link both CLs to a common bug.
6 years ago (2014-12-10 09:28:57 UTC) #6
kjoswiak
Working on layout tests https://codereview.chromium.org/785343002/diff/1/Source/modules/mediasource/SourceBuffer.cpp File Source/modules/mediasource/SourceBuffer.cpp (right): https://codereview.chromium.org/785343002/diff/1/Source/modules/mediasource/SourceBuffer.cpp#newcode518 Source/modules/mediasource/SourceBuffer.cpp:518: // 5. If the buffer ...
6 years ago (2014-12-10 19:11:45 UTC) #8
servolk
5 years, 9 months ago (2015-03-17 00:04:16 UTC) #9
On 2014/12/10 19:11:45, kjoswiak wrote:
> Working on layout tests
> 
>
https://codereview.chromium.org/785343002/diff/1/Source/modules/mediasource/S...
> File Source/modules/mediasource/SourceBuffer.cpp (right):
> 
>
https://codereview.chromium.org/785343002/diff/1/Source/modules/mediasource/S...
> Source/modules/mediasource/SourceBuffer.cpp:518: //  5. If the buffer full
flag
> equals true, then throw a QUOTA_EXCEEDED_ERR exception and abort these steps.
> On 2014/12/10 09:28:26, philipj wrote:
> > I see that we don't have an explicit "buffer full flag" in Chromium or
Blink.
> > That would have made this code more like the spec, but I guess that's OK.
> 
> Though other thing I considered doing is adding a separate function that just
> queried the buffer, asking if its full, instead of relying on this new
functions
> return value. It felt a little redundant though, so I left it out.
> 
>
https://codereview.chromium.org/785343002/diff/1/Source/modules/mediasource/S...
> Source/modules/mediasource/SourceBuffer.cpp:519:
> exceptionState.throwDOMException(QuotaExceededError, "The SourceBuffer is
full,
> and cannot free space append additional buffers.");
> On 2014/12/10 09:28:26, philipj wrote:
> > missing "to"
> 
> Done.
> 
>
https://codereview.chromium.org/785343002/diff/1/Source/modules/mediasource/S...
> Source/modules/mediasource/SourceBuffer.cpp:650: // TODO(kjoswiak): Is this
> accurate? Are we actually appending data, or appending a data source?
> On 2014/12/10 09:28:26, philipj wrote:
> > No TODO(user) in Blink, just FIXME. Even better, investigate it and remove
the
> > comment :)
> 
> whoops meant to remove this, I had actually come to a decision about it,
> specifically that since MSE says to run prepare append and this is in the spec
> for prepare append its probably best to just leave it in. Done.

Kyle has left Google, continuing this work as a separate CL:
https://codereview.chromium.org/1013923002/

Powered by Google App Engine
This is Rietveld 408576698