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

Issue 291083003: Update PPB_VideoDecoder documentation. (Closed)

Created:
6 years, 7 months ago by bbudge
Modified:
6 years, 7 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, teravest+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org
Visibility:
Public.

Description

Update PPB_VideoDecoder documentation. The Decode function should not require the plugin to maintain its buffer when it completes asynchronously. BUG=281689 R=dmichael@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271917

Patch Set 1 #

Total comments: 2

Patch Set 2 : Document error codes. #

Patch Set 3 : Clarify behavior of Flush, Reset. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -47 lines) Patch
M ppapi/api/ppb_video_decoder.idl View 1 2 7 chunks +27 lines, -15 lines 5 comments Download
M ppapi/c/ppb_video_decoder.h View 1 2 7 chunks +28 lines, -16 lines 0 comments Download
M ppapi/cpp/video_decoder.h View 1 2 4 chunks +28 lines, -16 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
bbudge
6 years, 7 months ago (2014-05-20 01:10:35 UTC) #1
dmichael (off chromium)
lgtm https://chromiumcodereview.appspot.com/291083003/diff/1/ppapi/api/ppb_video_decoder.idl File ppapi/api/ppb_video_decoder.idl (right): https://chromiumcodereview.appspot.com/291083003/diff/1/ppapi/api/ppb_video_decoder.idl#newcode95 ppapi/api/ppb_video_decoder.idl:95: * returning PP_OK or by running |callback| before ...
6 years, 7 months ago (2014-05-20 19:47:32 UTC) #2
bbudge
https://codereview.chromium.org/291083003/diff/1/ppapi/api/ppb_video_decoder.idl File ppapi/api/ppb_video_decoder.idl (right): https://codereview.chromium.org/291083003/diff/1/ppapi/api/ppb_video_decoder.idl#newcode95 ppapi/api/ppb_video_decoder.idl:95: * returning PP_OK or by running |callback| before calling ...
6 years, 7 months ago (2014-05-20 21:04:57 UTC) #3
bbudge
The CQ bit was checked by bbudge@chromium.org
6 years, 7 months ago (2014-05-20 21:05:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/291083003/60001
6 years, 7 months ago (2014-05-20 21:05:22 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-21 00:02:32 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-21 01:05:18 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/7222)
6 years, 7 months ago (2014-05-21 01:05:18 UTC) #8
bbudge
The CQ bit was checked by bbudge@chromium.org
6 years, 7 months ago (2014-05-21 01:43:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/291083003/60001
6 years, 7 months ago (2014-05-21 01:43:55 UTC) #10
bbudge
The CQ bit was unchecked by bbudge@chromium.org
6 years, 7 months ago (2014-05-21 16:37:57 UTC) #11
bbudge
Committed patchset #3 manually as r271917 (presubmit successful).
6 years, 7 months ago (2014-05-21 16:59:43 UTC) #12
igorc
https://codereview.chromium.org/291083003/diff/80001/ppapi/api/ppb_video_decoder.idl File ppapi/api/ppb_video_decoder.idl (right): https://codereview.chromium.org/291083003/diff/80001/ppapi/api/ppb_video_decoder.idl#newcode176 ppapi/api/ppb_video_decoder.idl:176: * calls to the decoder other than GetPicture() and ...
6 years, 7 months ago (2014-05-21 19:07:05 UTC) #13
igorc
https://codereview.chromium.org/291083003/diff/80001/ppapi/api/ppb_video_decoder.idl File ppapi/api/ppb_video_decoder.idl (right): https://codereview.chromium.org/291083003/diff/80001/ppapi/api/ppb_video_decoder.idl#newcode170 ppapi/api/ppb_video_decoder.idl:170: [in] PP_VideoPicture picture); Could you clarify which fields need ...
6 years, 7 months ago (2014-05-21 19:44:36 UTC) #14
igorc
https://codereview.chromium.org/291083003/diff/80001/ppapi/api/ppb_video_decoder.idl File ppapi/api/ppb_video_decoder.idl (right): https://codereview.chromium.org/291083003/diff/80001/ppapi/api/ppb_video_decoder.idl#newcode191 ppapi/api/ppb_video_decoder.idl:191: int32_t Flush( Could you also clarify the difference between ...
6 years, 7 months ago (2014-05-21 20:15:46 UTC) #15
igorc
https://codereview.chromium.org/291083003/diff/80001/ppapi/api/ppb_video_decoder.idl File ppapi/api/ppb_video_decoder.idl (right): https://codereview.chromium.org/291083003/diff/80001/ppapi/api/ppb_video_decoder.idl#newcode95 ppapi/api/ppb_video_decoder.idl:95: * returning PP_OK or by running |callback| before calling ...
6 years, 7 months ago (2014-05-21 20:34:29 UTC) #16
dmichael (off chromium)
On Wed, May 21, 2014 at 2:34 PM, <igorc@chromium.org> wrote: > > https://codereview.chromium.org/291083003/diff/80001/ > ppapi/api/ppb_video_decoder.idl ...
6 years, 7 months ago (2014-05-21 20:54:20 UTC) #17
igorc
6 years, 7 months ago (2014-05-21 22:54:19 UTC) #18
Message was sent while issue was closed.
On 2014/05/21 20:54:20, dmichael wrote:
> On Wed, May 21, 2014 at 2:34 PM, <mailto:igorc@chromium.org> wrote:
> 
> >
> > https://codereview.chromium.org/291083003/diff/80001/
> > ppapi/api/ppb_video_decoder.idl
> > File ppapi/api/ppb_video_decoder.idl (right):
> >
> > https://codereview.chromium.org/291083003/diff/80001/
> > ppapi/api/ppb_video_decoder.idl#newcode95
> >
> > ppapi/api/ppb_video_decoder.idl:95: * returning PP_OK or by running
> > |callback| before calling Decode() again.
> > And another one - why do we need two ways to successfully complete
> > Decode()? This makes me write more code than feels necessary... I
> > checked with Elijah and he said this feels a bit unusual.
> >
> > For simplicity, I would just say that none of the functions that take
> > callbacks should ever return PP_OK - they either fail, or tell that
> > callback is now pending.
> >
> By default, that's actually how it will work. The reason is that by
> default, completion callbacks only work asynchronously. But if you want to
> squeeze the most performance out, you can use an "OPTIONAL" completion
> callback, which will complete *synchronously *if it can. That would allow
> you to pipeline decodes. I.e., you call using an optional callback until it
> returns PP_OK_COMPLETIONPENDING, at which point you have to wait until a
> Decode completes to do the next one.
> 
> If you don't want that behavior, you *can* simply use the asynchronous path
> all the time. That would actually be the default. But you'll probably add
> latency to your decoding.

The doc says "The plugin should wait until the decoder signals completion by
returning PP_OK or by running |callback| before calling Decode() again."

It does not mention anything about optional callbacks, so my assumption
is that it will still run the callback, and I will get 2 notifications
to decode more data, one of which sounds incorrect.

I may not understand some common knowledge about PPAPI, but I'm still confused
on how to handle 2 successive successes of one operation : )

> 
> Here's some documentation on the optional vs required completion callbacks:
>
https://code.google.com/p/chromium/codesearch#chromium/src/ppapi/c/pp_complet...
> 
> 
> >
> > https://codereview.chromium.org/291083003/
> >
> 
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698