[libcamera-devel,v6,0/6] Raspberry Pi: Colour denoise
mbox series

Message ID 20210208150738.2293520-1-naush@raspberrypi.com
Headers show
Series
  • Raspberry Pi: Colour denoise
Related show

Message

Naushir Patuck Feb. 8, 2021, 3:07 p.m. UTC
Hi all,

Here is the next revision of the colour denoise work.

This version includes all of the small typos pointed out in the last round of reviews.
I've also added a \todo for the following items:
1) Disable ISP output 1 if we know colour denoise will not be running due to a resolution/format mismatch.
2) Return out the correct metadata status for CDN if it is not running.

Regards,
Naush

Naushir Patuck (6):
  pipeline: raspberrypi: Refactor stream configuration routine
  pipeline: raspberrypi: Set the ISP Output1 to 1/4 resolution if unused
  uapi: raspberrypi: Update the bcm2835-isp header definition
  ipa: raspberrypi: Rename SdnStatus to DenoiseStatus
  ipa: raspberrypi: Add a DenoiseAlgorithm class to the Controller
  ipa: raspberrypi: Handle control::NoiseReductionMode in the controller

 include/libcamera/ipa/raspberrypi.h           |  1 +
 include/linux/bcm2835-isp.h                   | 32 +++++-
 .../controller/denoise_algorithm.hpp          | 23 +++++
 .../raspberrypi/controller/denoise_status.h   | 24 +++++
 src/ipa/raspberrypi/controller/rpi/sdn.cpp    | 15 ++-
 src/ipa/raspberrypi/controller/rpi/sdn.hpp    |  5 +-
 src/ipa/raspberrypi/controller/sdn_status.h   | 23 -----
 src/ipa/raspberrypi/raspberrypi.cpp           | 65 ++++++++++++-
 .../pipeline/raspberrypi/raspberrypi.cpp      | 97 +++++++++++--------
 9 files changed, 210 insertions(+), 75 deletions(-)
 create mode 100644 src/ipa/raspberrypi/controller/denoise_algorithm.hpp
 create mode 100644 src/ipa/raspberrypi/controller/denoise_status.h
 delete mode 100644 src/ipa/raspberrypi/controller/sdn_status.h

Comments

Laurent Pinchart Feb. 9, 2021, 12:40 a.m. UTC | #1
Hi Naush,

On Mon, Feb 08, 2021 at 03:07:32PM +0000, Naushir Patuck wrote:
> Hi all,
> 
> Here is the next revision of the colour denoise work.
> 
> This version includes all of the small typos pointed out in the last round of reviews.
> I've also added a \todo for the following items:
> 1) Disable ISP output 1 if we know colour denoise will not be running due to a resolution/format mismatch.
> 2) Return out the correct metadata status for CDN if it is not running.

There's a typo in patch 2/6, and I think there's also a bug in 4/6 that
was likely cause by a rebase problem. I can fix these when applying if
my analysis is correct.

> Naushir Patuck (6):
>   pipeline: raspberrypi: Refactor stream configuration routine
>   pipeline: raspberrypi: Set the ISP Output1 to 1/4 resolution if unused
>   uapi: raspberrypi: Update the bcm2835-isp header definition
>   ipa: raspberrypi: Rename SdnStatus to DenoiseStatus
>   ipa: raspberrypi: Add a DenoiseAlgorithm class to the Controller
>   ipa: raspberrypi: Handle control::NoiseReductionMode in the controller
> 
>  include/libcamera/ipa/raspberrypi.h           |  1 +
>  include/linux/bcm2835-isp.h                   | 32 +++++-
>  .../controller/denoise_algorithm.hpp          | 23 +++++
>  .../raspberrypi/controller/denoise_status.h   | 24 +++++
>  src/ipa/raspberrypi/controller/rpi/sdn.cpp    | 15 ++-
>  src/ipa/raspberrypi/controller/rpi/sdn.hpp    |  5 +-
>  src/ipa/raspberrypi/controller/sdn_status.h   | 23 -----
>  src/ipa/raspberrypi/raspberrypi.cpp           | 65 ++++++++++++-
>  .../pipeline/raspberrypi/raspberrypi.cpp      | 97 +++++++++++--------
>  9 files changed, 210 insertions(+), 75 deletions(-)
>  create mode 100644 src/ipa/raspberrypi/controller/denoise_algorithm.hpp
>  create mode 100644 src/ipa/raspberrypi/controller/denoise_status.h
>  delete mode 100644 src/ipa/raspberrypi/controller/sdn_status.h
Naushir Patuck Feb. 9, 2021, 7:32 a.m. UTC | #2
Hi Laurent,

On Tue, 9 Feb 2021 at 00:40, Laurent Pinchart <
laurent.pinchart@ideasonboard.com> wrote:

> Hi Naush,
>
> On Mon, Feb 08, 2021 at 03:07:32PM +0000, Naushir Patuck wrote:
> > Hi all,
> >
> > Here is the next revision of the colour denoise work.
> >
> > This version includes all of the small typos pointed out in the last
> round of reviews.
> > I've also added a \todo for the following items:
> > 1) Disable ISP output 1 if we know colour denoise will not be running
> due to a resolution/format mismatch.
> > 2) Return out the correct metadata status for CDN if it is not running.
>
> There's a typo in patch 2/6, and I think there's also a bug in 4/6 that
> was likely cause by a rebase problem. I can fix these when applying if
> my analysis is correct.
>

Yes, if it's not too much trouble, please go ahead and fix all the issues
you raised before merging.

Thanks again!
Naush



>
> > Naushir Patuck (6):
> >   pipeline: raspberrypi: Refactor stream configuration routine
> >   pipeline: raspberrypi: Set the ISP Output1 to 1/4 resolution if unused
> >   uapi: raspberrypi: Update the bcm2835-isp header definition
> >   ipa: raspberrypi: Rename SdnStatus to DenoiseStatus
> >   ipa: raspberrypi: Add a DenoiseAlgorithm class to the Controller
> >   ipa: raspberrypi: Handle control::NoiseReductionMode in the controller
> >
> >  include/libcamera/ipa/raspberrypi.h           |  1 +
> >  include/linux/bcm2835-isp.h                   | 32 +++++-
> >  .../controller/denoise_algorithm.hpp          | 23 +++++
> >  .../raspberrypi/controller/denoise_status.h   | 24 +++++
> >  src/ipa/raspberrypi/controller/rpi/sdn.cpp    | 15 ++-
> >  src/ipa/raspberrypi/controller/rpi/sdn.hpp    |  5 +-
> >  src/ipa/raspberrypi/controller/sdn_status.h   | 23 -----
> >  src/ipa/raspberrypi/raspberrypi.cpp           | 65 ++++++++++++-
> >  .../pipeline/raspberrypi/raspberrypi.cpp      | 97 +++++++++++--------
> >  9 files changed, 210 insertions(+), 75 deletions(-)
> >  create mode 100644 src/ipa/raspberrypi/controller/denoise_algorithm.hpp
> >  create mode 100644 src/ipa/raspberrypi/controller/denoise_status.h
> >  delete mode 100644 src/ipa/raspberrypi/controller/sdn_status.h
>
> --
> Regards,
>
> Laurent Pinchart
>
Laurent Pinchart Feb. 9, 2021, 1:31 p.m. UTC | #3
Hi Naush,

On Tue, Feb 09, 2021 at 07:32:39AM +0000, Naushir Patuck wrote:
> On Tue, 9 Feb 2021 at 00:40, Laurent Pinchart wrote:
> > On Mon, Feb 08, 2021 at 03:07:32PM +0000, Naushir Patuck wrote:
> > > Hi all,
> > >
> > > Here is the next revision of the colour denoise work.
> > >
> > > This version includes all of the small typos pointed out in the
> > > last round of reviews.
> > > I've also added a \todo for the following items:
> > > 1) Disable ISP output 1 if we know colour denoise will not be
> > > running due to a resolution/format mismatch.
> > > 2) Return out the correct metadata status for CDN if it is not running.
> >
> > There's a typo in patch 2/6, and I think there's also a bug in 4/6 that
> > was likely cause by a rebase problem. I can fix these when applying if
> > my analysis is correct.
> 
> Yes, if it's not too much trouble, please go ahead and fix all the issues
> you raised before merging.

Done.

> > > Naushir Patuck (6):
> > >   pipeline: raspberrypi: Refactor stream configuration routine
> > >   pipeline: raspberrypi: Set the ISP Output1 to 1/4 resolution if unused
> > >   uapi: raspberrypi: Update the bcm2835-isp header definition
> > >   ipa: raspberrypi: Rename SdnStatus to DenoiseStatus
> > >   ipa: raspberrypi: Add a DenoiseAlgorithm class to the Controller
> > >   ipa: raspberrypi: Handle control::NoiseReductionMode in the controller
> > >
> > >  include/libcamera/ipa/raspberrypi.h           |  1 +
> > >  include/linux/bcm2835-isp.h                   | 32 +++++-
> > >  .../controller/denoise_algorithm.hpp          | 23 +++++
> > >  .../raspberrypi/controller/denoise_status.h   | 24 +++++
> > >  src/ipa/raspberrypi/controller/rpi/sdn.cpp    | 15 ++-
> > >  src/ipa/raspberrypi/controller/rpi/sdn.hpp    |  5 +-
> > >  src/ipa/raspberrypi/controller/sdn_status.h   | 23 -----
> > >  src/ipa/raspberrypi/raspberrypi.cpp           | 65 ++++++++++++-
> > >  .../pipeline/raspberrypi/raspberrypi.cpp      | 97 +++++++++++--------
> > >  9 files changed, 210 insertions(+), 75 deletions(-)
> > >  create mode 100644 src/ipa/raspberrypi/controller/denoise_algorithm.hpp
> > >  create mode 100644 src/ipa/raspberrypi/controller/denoise_status.h
> > >  delete mode 100644 src/ipa/raspberrypi/controller/sdn_status.h