Implement dynamic software fallback in PPB_VideoDecoder API.
commit691cccea9cb56cdfae01aa7adfcba096c2a22c5c
authorsergeyu <sergeyu@chromium.org>
Wed, 9 Sep 2015 18:28:00 +0000 (9 11:28 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 9 Sep 2015 18:28:46 +0000 (9 18:28 +0000)
tree4d07e784764cca41cb7ae58847f4475c0fdfc66b
parentb103e37028d2d83982b77b84aecef93350a98e91
Implement dynamic software fallback in PPB_VideoDecoder API.

Hardware decoder are usually limited in which types of streams they can
handle. Particularly they often limit stream resolution. But the decoder
API doesn't expose any of these details. As result decoding fails when
a frame that's is too big is sent to the decoder.

Now whenever hardware decoder returns an error PepperVideoDecoderHost
tries to decode the same data using software decoder.

BUG=514906

Review URL: https://codereview.chromium.org/1303183003

Cr-Commit-Position: refs/heads/master@{#347962}
content/renderer/pepper/pepper_video_decoder_host.cc
content/renderer/pepper/pepper_video_decoder_host.h