mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 10:25:05 +03:00
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>
This commit is contained in:
parent
fcfb1dc02a
commit
7df772f559
2 changed files with 4 additions and 0 deletions
|
@ -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())
|
||||
|
|
|
@ -19,6 +19,7 @@ enum {
|
|||
OptStream = 's',
|
||||
OptListControls = 256,
|
||||
OptStrictFormats = 257,
|
||||
OptMetadata = 258,
|
||||
};
|
||||
|
||||
#endif /* __CAM_MAIN_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue