-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uapi: bcm2835-isp: Add colour denoise mode config #4069
Conversation
@davidplowman and @6by9 Not ready to merge just yet though. |
Admittedly the uapi hasn't been officially released, but adding extra fields like this does cause problems of backwards compatibility. What's it actually controlling? This generally maps directly onto the hardware, but I don't see any differentiation of modes there. |
Yes, this is a bit of a problem. I feel that we should be able to get away with it in this case given that we have not upstreamed yet, and libcamera is not yet had a stable release. But if you do feel that this could cause problems, we may have to do alternative things.
There are accompanying firmware changes in the works that will make things clearer. |
Update the bcm2835-isp.h file with the latest version available in the downstream Raspberryp Pi linux repo. This change adds support for colour denoise processing, and must be synced with the downstream kernel change: raspberrypi/linux#4069 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
18f91b2
to
e9505f4
Compare
@6by9 and @davidplowman, can I get a review please? |
Hi Naush, this thing is showing up with 766 files changed and 481 commits, making me a bit scared of trying to review anything. Is there a way to see just the colour denoise changes? (Surely everything else was merged ages ago??) |
Dom has rebased the rpi-5.10.y parent branch, so naush needs fetch and rebase. |
Add a configuration structure for colour denoise to the bcm2835_isp driver. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Done. |
Hi Naush, I had just a couple of minor comments to consider:
|
Yes, this is indeed the case here. I did expect users would have to simultaneously update FW, kernel, and libcamera once this change went through. If that does seem too restrictive, I could put this at the end of the enum.
I could put in a strength field as a placeholder, and set the value to a constant through libcamera for now. |
`
One question on this one - should I make it a rational value like the SDN strength? |
Maybe it should just be a low/medium/strong thing? Which is probably not a bad reason for leaving it until such time as we have good reason for it...! |
Agreed, I won't make this change. |
Have an "LGTM" from me. I'll leave to it you if you want to change the enum order, I agree that in reality it will probably matter little. |
Add colour denoise control to the bcm2835 driver through a new v4l2 control: V4L2_CID_USER_BCM2835_ISP_CDN. Add the accompanying MMAL configuration structure definitions as well. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Latest version has the enum value at the end. |
kernel: bcm2835-isp: Add colour denoise mode config See: raspberrypi/linux#4069 kernel: configs: Enable BCM2835 thermal driver in kernel8 See: raspberrypi/linux#4077 firmware: Export bootloader config via device-tree firmware: ISP: Colour denoise See: raspberrypi/linux#4083
kernel: bcm2835-isp: Add colour denoise mode config See: raspberrypi/linux#4069 kernel: configs: Enable BCM2835 thermal driver in kernel8 See: raspberrypi/linux#4077 firmware: Export bootloader config via device-tree firmware: ISP: Colour denoise See: raspberrypi/linux#4083
Update the bcm2835-isp.h file with the latest version available in the downstream Raspberry Pi linux repo at commit: 68878170d8a98afd6d519a3a2c909080c19de4ce This change adds support for colour denoise processing, and the following downstream kernel changes must be available: raspberrypi/linux#4069 raspberrypi/linux#4083 The Raspberry Pi image must also be running the latest firmware, obtained by running rpi-update. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Update the bcm2835-isp.h file with the latest version available in the downstream Raspberry Pi linux repo at commit: 68878170d8a98afd6d519a3a2c909080c19de4ce This change adds support for colour denoise processing, and the following downstream kernel changes must be available: raspberrypi/linux#4069 raspberrypi/linux#4083 The Raspberry Pi image must also be running the latest firmware, obtained by running rpi-update. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This change adds a colour denoise config structure to allow us to set the operating mode of the software colour denoise. This essentially chooses between the video and stills colour denoise variants. The related kernel change is at: raspberrypi/linux#4069
Add a field to the bcm2835_isp_denoise config structure to control
colour denoise operating modes.
Signed-off-by: Naushir Patuck naush@raspberrypi.com