diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2021-04-19 14:10:40 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2021-05-06 15:09:42 +0200 |
commit | 7df772f5592cafce72521d000bde33502309ad37 (patch) | |
tree | a77d4320398c4784963b3ef33da720c23ab55e1c /src/cam/main.cpp | |
parent | fcfb1dc02a6baed23a85aa1186dc8aa9b2217f49 (diff) |
cam: Add option to print the Request metadata
Add the "--metadata" option to the cam tool, which will be used to
print the metadata associated with a completed capture request.
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r-- | src/cam/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp index 994fbb34..70e9f62c 100644 --- a/src/cam/main.cpp +++ b/src/cam/main.cpp @@ -197,6 +197,9 @@ int CamApp::parseOptions(int argc, char *argv[]) parser.addOption(OptStrictFormats, OptionNone, "Do not allow requested stream format(s) to be adjusted", "strict-formats"); + parser.addOption(OptMetadata, OptionNone, + "Print the metadata for completed requests", + "metadata"); options_ = parser.parse(argc, argv); if (!options_.valid()) |