libcamera: Switch PixelFormat to DRM FourCC values
Use DRM FourCC values for the newly defined PixelFormat. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
2a8bf04227
commit
448716d8f7
@@ -155,7 +155,16 @@ public:
|
||||
}
|
||||
|
||||
bool done() const { return done_; }
|
||||
const V4L2DeviceFormat &format() const { return format_; }
|
||||
|
||||
PixelFormat format() const
|
||||
{
|
||||
return video_->toPixelFormat(format_.fourcc);
|
||||
}
|
||||
|
||||
const Size &size() const
|
||||
{
|
||||
return format_.size;
|
||||
}
|
||||
|
||||
Signal<uint64_t, int> requestReady;
|
||||
|
||||
@@ -314,11 +323,9 @@ protected:
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
const V4L2DeviceFormat &format = sink_.format();
|
||||
|
||||
StreamConfiguration &cfg = config->at(0);
|
||||
cfg.size = format.size;
|
||||
cfg.pixelFormat = format.fourcc;
|
||||
cfg.size = sink_.size();
|
||||
cfg.pixelFormat = sink_.format();
|
||||
cfg.bufferCount = CAMERA_BUFFER_COUNT;
|
||||
cfg.memoryType = ExternalMemory;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user