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

Issue 1218513003: ppapi: VideoEncoder: prevent scheduling encoding multiple times (Closed)

Created:
5 years, 5 months ago by llandwerlin-old
Modified:
5 years, 5 months ago
Reviewers:
bbudge, binji, Sam Clegg
CC:
binji+watch_chromium.org, chromium-reviews, Sam Clegg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ppapi: VideoEncoder: prevent scheduling encoding multiple times The ScheduleNextEncode() can be called at multiple stages in the example depending on whether it needs to reconfigure the MediaVideoStreamTrack. This can lead the example to encode at twice 30fps. At this speed we can exhaust the 33ms lifespan of video buffers, leading to errors in the example plugins which can't retrieve new frames to respect the 30fps framerate. BUG=503153 TEST=run video_encoder example from NaCl SDK with VP8 codec and verify there are no error messages after 1 minute Committed: https://crrev.com/cd74d5568a25c0a50ca8275b88a8d37bc066d275 Cr-Commit-Position: refs/heads/master@{#336850}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Do not clamp twice #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2 lines) Patch
M native_client_sdk/src/examples/api/video_encode/video_encode.cc View 1 4 chunks +20 lines, -1 line 2 comments Download
M ppapi/examples/video_encode/video_encode.cc View 1 4 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 16 (5 generated)
llandwerlin-old
bbudge@: Could you review this change in ppapi/ ? Thanks. sbc@: Just need a stamp ...
5 years, 5 months ago (2015-06-30 14:06:23 UTC) #2
llandwerlin-old
5 years, 5 months ago (2015-06-30 14:08:01 UTC) #4
bbudge
lgtm
5 years, 5 months ago (2015-06-30 15:45:05 UTC) #5
binji
https://codereview.chromium.org/1218513003/diff/1/native_client_sdk/src/examples/api/video_encode/video_encode.cc File native_client_sdk/src/examples/api/video_encode/video_encode.cc (right): https://codereview.chromium.org/1218513003/diff/1/native_client_sdk/src/examples/api/video_encode/video_encode.cc#newcode355 native_client_sdk/src/examples/api/video_encode/video_encode.cc:355: PP_Time delta = This produces a constant value for ...
5 years, 5 months ago (2015-06-30 17:02:02 UTC) #7
llandwerlin-old
https://codereview.chromium.org/1218513003/diff/1/native_client_sdk/src/examples/api/video_encode/video_encode.cc File native_client_sdk/src/examples/api/video_encode/video_encode.cc (right): https://codereview.chromium.org/1218513003/diff/1/native_client_sdk/src/examples/api/video_encode/video_encode.cc#newcode355 native_client_sdk/src/examples/api/video_encode/video_encode.cc:355: PP_Time delta = On 2015/06/30 17:02:02, binji wrote: > ...
5 years, 5 months ago (2015-06-30 17:15:23 UTC) #8
binji
lgtm https://codereview.chromium.org/1218513003/diff/20001/native_client_sdk/src/examples/api/video_encode/video_encode.cc File native_client_sdk/src/examples/api/video_encode/video_encode.cc (right): https://codereview.chromium.org/1218513003/diff/20001/native_client_sdk/src/examples/api/video_encode/video_encode.cc#newcode357 native_client_sdk/src/examples/api/video_encode/video_encode.cc:357: PP_Time delta = tick - clamp(0, tick, now ...
5 years, 5 months ago (2015-06-30 18:50:34 UTC) #9
llandwerlin-old
https://codereview.chromium.org/1218513003/diff/20001/native_client_sdk/src/examples/api/video_encode/video_encode.cc File native_client_sdk/src/examples/api/video_encode/video_encode.cc (right): https://codereview.chromium.org/1218513003/diff/20001/native_client_sdk/src/examples/api/video_encode/video_encode.cc#newcode357 native_client_sdk/src/examples/api/video_encode/video_encode.cc:357: PP_Time delta = tick - clamp(0, tick, now - ...
5 years, 5 months ago (2015-06-30 19:14:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218513003/20001
5 years, 5 months ago (2015-06-30 19:14:47 UTC) #13
commit-bot: I haz the power
The author lionel.g.landwerlin@intel.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-06-30 19:14:54 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-06-30 19:24:33 UTC) #15
commit-bot: I haz the power
5 years, 5 months ago (2015-06-30 19:26:41 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cd74d5568a25c0a50ca8275b88a8d37bc066d275
Cr-Commit-Position: refs/heads/master@{#336850}

Powered by Google App Engine
This is Rietveld 408576698