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>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user