Support multiple video decoders and encoders
commit712f1acaf22f225a5eaef28b3dff9aecb7bc5cc8
authorhenryhsu <henryhsu@chromium.org>
Fri, 9 Jan 2015 11:25:45 +0000 (9 03:25 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 9 Jan 2015 11:26:26 +0000 (9 11:26 +0000)
tree44c6fd03017fc4e6e43379e332e86293f51ec6c6
parentd4eff31d57ec1be91736ba32f56dda2c8edfb195
Support multiple video decoders and encoders

Some platforms have multiple video decoders and encoders.
For decode and encoder, return the first succeed initialized VDA and VEA
from all possible platforms. GetSupportedProfile return all possible
profiles from all encoders.

This cl is submitted again because crrev.com/826663002 was reverted in
crrev.com/832383004.

BUG=445016
TEST=Tested on squawks. For decoder, make sure V4L2 initialization
failed and VAAPI successed. For encoder, test on extension.

TBR=piman@chromium.org,posciak@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#310754}
content/common/BUILD.gn
content/common/gpu/media/gpu_video_decode_accelerator.cc
content/common/gpu/media/gpu_video_decode_accelerator.h
content/common/gpu/media/gpu_video_encode_accelerator.cc
content/common/gpu/media/gpu_video_encode_accelerator.h
content/common/gpu/media/v4l2_image_processor.cc
content/common/gpu/media/v4l2_image_processor.h
content/common/gpu/media/v4l2_video_device.cc
content/common/gpu/media/v4l2_video_encode_accelerator.cc
content/common/gpu/media/v4l2_video_encode_accelerator.h
content/content_common.gypi