mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 08:25:07 +03:00
ipa: raspberrypi: Replace void cast with [[maybe_unused]]
The standard way in C++17 to specify that a function or function argument may be unused it to specify the [[maybe_unused]] attribute. Replace manual void casts to silence compiler warnings. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
dbafe16da7
commit
de012767e7
5 changed files with 15 additions and 23 deletions
|
@ -137,9 +137,9 @@ Pwl apply_manual_contrast(Pwl const &gamma_curve, double brightness,
|
|||
return new_gamma_curve;
|
||||
}
|
||||
|
||||
void Contrast::Process(StatisticsPtr &stats, Metadata *image_metadata)
|
||||
void Contrast::Process(StatisticsPtr &stats,
|
||||
[[maybe_unused]] Metadata *image_metadata)
|
||||
{
|
||||
(void)image_metadata;
|
||||
double brightness = brightness_, contrast = contrast_;
|
||||
Histogram histogram(stats->hist[0].g_hist, NUM_HISTOGRAM_BINS);
|
||||
// We look at the histogram and adjust the gamma curve in the following
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue