ipa: rkisp1: agc: Make size argument to computeHistogramPredivider const
The Agc::computeHistogramPredivider() function doesn't need to modify its size parameter. Make it const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
9f04e8e1ff
commit
de4ed4e966
2 changed files with 3 additions and 2 deletions
|
@ -84,7 +84,8 @@ int Agc::parseMeteringModes(IPAContext &context, const YamlObject &tuningData)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t Agc::computeHistogramPredivider(Size &size, enum rkisp1_cif_isp_histogram_mode mode)
|
uint8_t Agc::computeHistogramPredivider(const Size &size,
|
||||||
|
enum rkisp1_cif_isp_histogram_mode mode)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* The maximum number of pixels that could potentially be in one bin is
|
* The maximum number of pixels that could potentially be in one bin is
|
||||||
|
|
|
@ -45,7 +45,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int parseMeteringModes(IPAContext &context, const YamlObject &tuningData);
|
int parseMeteringModes(IPAContext &context, const YamlObject &tuningData);
|
||||||
uint8_t computeHistogramPredivider(Size &size,
|
uint8_t computeHistogramPredivider(const Size &size,
|
||||||
enum rkisp1_cif_isp_histogram_mode mode);
|
enum rkisp1_cif_isp_histogram_mode mode);
|
||||||
|
|
||||||
void fillMetadata(IPAContext &context, IPAFrameContext &frameContext,
|
void fillMetadata(IPAContext &context, IPAFrameContext &frameContext,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue