diff options
author | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-20 21:17:08 +0000 |
---|---|---|
committer | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-20 21:17:08 +0000 |
commit | cd17400c4774731af8c289e84fe5ebf813dd0389 (patch) | |
tree | 390937d8d6565e94a087fd877de464d6b46e2406 /ppapi/c/dev/pp_video_dev.h | |
parent | 501ed4a5d261a1ec783f63c63a615527b6d634dd (diff) | |
download | chromium_src-cd17400c4774731af8c289e84fe5ebf813dd0389.zip chromium_src-cd17400c4774731af8c289e84fe5ebf813dd0389.tar.gz chromium_src-cd17400c4774731af8c289e84fe5ebf813dd0389.tar.bz2 |
Redid VideoDecodeAccelerator::Error codes and propagated to ppapi.
BUG=none
TEST=chrome builds, gles2 & ovdatest pass, trybots
Review URL: http://codereview.chromium.org/7452010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93251 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/dev/pp_video_dev.h')
-rw-r--r-- | ppapi/c/dev/pp_video_dev.h | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/ppapi/c/dev/pp_video_dev.h b/ppapi/c/dev/pp_video_dev.h index 49867b0..0ae1fd7 100644 --- a/ppapi/c/dev/pp_video_dev.h +++ b/ppapi/c/dev/pp_video_dev.h @@ -201,28 +201,20 @@ struct PP_Picture_Dev { int32_t bitstream_buffer_id; }; -// Enumeration for error events that may be reported through -// PP_VideoDecodeErrorHandler_Func_Dev callback function to the plugin. Default -// error handling functionality expected from the plugin is to Flush and Destroy -// the decoder. +// Decoder error codes reported to the plugin. A reasonable naive +// error handling policy is for the plugin to Destroy() the decoder on error. +// Note: Keep these in sync with media::VideoDecodeAccelerator::Error. enum PP_VideoDecodeError_Dev { - PP_VIDEODECODEERROR_NONE = 0, - // Decoder has not been initialized and configured properly. - PP_VIDEODECODEERROR_UNINITIALIZED, - // Decoder does not support feature of configuration or bitstream. - PP_VIDEODECODEERROR_UNSUPPORTED, - // Decoder did not get valid input. - PP_VIDEODECODERERROR_INVALIDINPUT, - // Failure in memory allocation or mapping. - PP_VIDEODECODERERROR_MEMFAILURE, - // Decoder was given bitstream that would result in output pictures but it - // has not been provided buffers to do all this. - PP_VIDEODECODEERROR_INSUFFICIENT_BUFFERS, - // Decoder cannot continue operation due to insufficient resources for the - // current configuration. - PP_VIDEODECODEERROR_INSUFFICIENTRESOURCES, - // Decoder hardware has reported hardware error. - PP_VIDEODECODEERROR_HARDWARE + // An operation was attempted during an incompatible decoder state. + PP_VIDEODECODERERROR_ILLEGAL_STATE = 1, + // Invalid argument was passed to an API method. + PP_VIDEODECODERERROR_INVALID_ARGUMENT, + // Encoded input is unreadable. + PP_VIDEODECODERERROR_UNREADABLE_INPUT, + // A failure occurred at the browser layer or lower. Examples of such + // failures include GPU hardware failures, GPU driver failures, GPU library + // failures, browser programming errors, and so on. + PP_VIDEODECODERERROR_PLATFORM_FAILURE }; PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES(PP_VideoDecodeError_Dev, 4); |