commit | 4596c80251c8c66e2335ca01f56eba4621952dc7 | [log] [tgz] |
---|---|---|
author | Dan Sanders <sandersd@chromium.org> | Tue Apr 24 23:34:41 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Apr 24 23:34:41 2018 |
tree | 4037f58968862602f469f24a320cf766765460d6 | |
parent | afbbed182ccff8c8ec1e58f610f985d2a0ec1082 [diff] |
[media] Add interface for VDAs to Decode() media::DecoderBuffers. Using DecoderBuffer removes the need to provided SharedMemoryHandles in cases that SharedMemory is not already allocated (in particular, when VDAs are used through MojoVideoDecoder+VdaVideoDecoder). Since base::SharedMemory is not an interface, a new type is required, and DecoderBuffer already implements a suitable interface for this use case. This CL adds: - A VideoDecodeAccelerator::Decode() overload for decoding DecoderBuffers, which VDAs may optionally implement. Note that VdaVideoDecoder will require this, and therefore all VDAs will be updated to support DecoderBuffers over time. - Support for SHM in DecoderBuffer. This eases the transition by allowing BitstreamBuffers to be easily converted to equivalent DecoderBuffers. - An implementation of the new VideoDecodeAccelerator::Decode() overload in VTVideoDecodeAccelerator. - Calling the new overload from VdaVideoDecoder. Bug: 522298 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: Ib932c3524b37e339f592b150685937ea94d4199d Reviewed-on: https://chromium-review.googlesource.com/1015965 Reviewed-by: Pawel Osciak <posciak@chromium.org> Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Dan Sanders <sandersd@chromium.org> Cr-Commit-Position: refs/heads/master@{#553364}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .