Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d16e041 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix Clang unused-but-set-variable warning" into main

parents 607ae9ad 36064e59
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -76,13 +76,13 @@ void Java_androidx_media_filterpacks_histogram_ChromaHistogramFilter_extractChro

    for (int i = 0; i < hBins * sBins; ++i) histOut[i] = 0.0f;

    int h, s, v;
    int h, s;
    float hScaler = hBins / 256.0f;
    float sScaler = sBins / 256.0f;
    for( ; numPixels > 0; --numPixels) {
      h = *(pixelIn++);
      s = *(pixelIn++);
      v = *(pixelIn++);
      pixelIn++;
      pixelIn++;

      int index = static_cast<int>(s * sScaler) * hBins + static_cast<int>(h * hScaler);