Judge whether pixel format is supported by seeing format.fmt.pix_mp.pixelformat returned on S_FMT |
||
Issue descriptionV4L2 VEA currently judges whether pixel format is supported by seeing the return value of S_FMT. According to the definition, S_FMT doesn't have to fail even if the pixel format is unsupported. The correct way is to compare format.fmt.pix_mp.pixelformat returned on S_FMT with the queried pixel format.
,
Nov 29
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/8e96110f2d81b831da9cbc0180519eaaf5c51aec commit 8e96110f2d81b831da9cbc0180519eaaf5c51aec Author: Hirokazu Honda <hiroh@chromium.org> Date: Thu Nov 29 07:20:13 2018 media/gpu/v4l2/V4L2JEA: Execute S_FMT for YUV420M and YUV420 separately Formerly, V4L2JEA calls S_FMT one time for YUV420M and checks if the pixel format filled by driver is either YUV420 or YUV420M. Then, a driver can fill NV12 even if it supports YUV420. V4L2JEA would rather execute S_FMT for YUV420M and YUV420 separately and check if the returned format is exactly same as the specified one. Bug: 908357 Test: VEA unittest on kevin Change-Id: I15b5bae4f8d1c728f0db0bb961a1f5d39fed3c53 Reviewed-on: https://chromium-review.googlesource.com/c/1352074 Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Ricky Liang <jcliang@chromium.org> Cr-Commit-Position: refs/heads/master@{#612084} [modify] https://crrev.com/8e96110f2d81b831da9cbc0180519eaaf5c51aec/media/gpu/v4l2/v4l2_jpeg_encode_accelerator.cc
,
Nov 29
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Nov 29