diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-02-28 02:38:18 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-03-18 18:02:40 +0100 |
commit | f28ca209602a93a3b7176d86a6329ddb2a341293 (patch) | |
tree | 95da5dcb930ed59aa031e812bc1c8b8dcf92a479 /src/cam | |
parent | 9a1e71b8a169930c3be06fb71ab01db67588d689 (diff) |
libcamera: Use PixelFormat instead of unsigned int where appropriate
Use the PixelFormat instead of unsigned int where a pixel format is to
be used. PixelFormat is defined as an unsigned int but is about to be
turned into a class to add functionality.
There is no functional change in this patch.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/cam')
-rw-r--r-- | src/cam/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp index ea6f7914..af516f1c 100644 --- a/src/cam/main.cpp +++ b/src/cam/main.cpp @@ -303,7 +303,7 @@ int CamApp::infoConfiguration() std::cout << index << ": " << cfg.toString() << std::endl; const StreamFormats &formats = cfg.formats(); - for (unsigned int pixelformat : formats.pixelformats()) { + for (PixelFormat pixelformat : formats.pixelformats()) { std::cout << " * Pixelformat: 0x" << std::hex << std::setw(8) << pixelformat << " " << formats.range(pixelformat).toString() |