DescriptionV4L2(S)VDA: Check if device handles profile for supported fourccs on init.
A media::VideoCodecProfile can be supported by a device via different V4L2
fourccs. For example, H264 profiles may be supported via V4L2_PIX_FMT_H264
or V4L2_PIX_FMT_H264_SLICE. A single VDA type may only support a subset of
these fourccs however.
When querying for supported profiles, we return a sum of all supported
profiles for all VDAs on the system, and then rely on VDA selection code to
instantiate each VDA one by one and find the first one that does not fail
for the requested profile. In V4L2 VDAs, this effectively happens when
querying supported resolutions, resulting in confusing error messages in
the logs about the VDA not being able to query supported resolutions.
To prevent this, check if the requested profile is handled in the device
via fourccs that the VDA supports earlier, on VDA::Initialize().
BUG=None
TEST=vdatest, crosvideo.appspot
Committed: https://crrev.com/ce4fe47570a6fe94438791c8b16de92283b6e6f6
Cr-Commit-Position: refs/heads/master@{#368835}
Patch Set 1 #
Total comments: 2
Patch Set 2 : #
Messages
Total messages: 14 (6 generated)
|