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:
parent
2a8bf04227
commit
448716d8f7
7 changed files with 58 additions and 46 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue