Convert V4L2 format to human readable string for logging purpose. |
|
Issue descriptionWe sometimes need to output v4l2_format in logs for debug purpose. We need a function to coverts v4l2_format struct to string for logging. Also, we output pixel format, type uint32, to log, which is not easily to read. We need a function to convert pixel format (fourcc code) to string.
,
Sep 13
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/960ca51c36cb1a98164ce2a34887dd7f655087d5 commit 960ca51c36cb1a98164ce2a34887dd7f655087d5 Author: Dean Liao <deanliao@chromium.org> Date: Thu Sep 13 14:15:02 2018 v4l2: Add V4L2FormatToString(). V4L2FormatToString() converts v4l2_format struct to human readable string to facilitate debugging. BUG=chromium:882339 TEST=None Change-Id: I9637d57a3f7c85e17195a224a6fa20ba86fe54ed Reviewed-on: https://chromium-review.googlesource.com/1189313 Reviewed-by: Pawel Osciak <posciak@chromium.org> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Commit-Queue: Shuo-Peng Liao <deanliao@google.com> Cr-Commit-Position: refs/heads/master@{#591000} [modify] https://crrev.com/960ca51c36cb1a98164ce2a34887dd7f655087d5/media/gpu/v4l2/v4l2_device.cc [modify] https://crrev.com/960ca51c36cb1a98164ce2a34887dd7f655087d5/media/gpu/v4l2/v4l2_device.h |
|
►
Sign in to add a comment |
|
Comment 1 by bugdroid1@chromium.org
, Sep 12