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

Commit 52588ffe authored by Aurimas Liutikas's avatar Aurimas Liutikas Committed by Android (Google) Code Review
Browse files

Merge "Suppressed unused parameter warnings in frameworks/base/tests/Camera2Tests" into nyc-dev

parents 7295bcbe 4642ae06
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ LOCAL_SRC_FILES := contrast.cpp \
                sobeloperator.cpp \
                stats_scorer.cpp

LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter

LOCAL_STATIC_LIBRARIES += \
    libcutils

+0 −3
Original line number Diff line number Diff line
@@ -65,9 +65,6 @@ void JNI_COLORSPACE_METHOD(nativeYuv420pToRgba8888)(
  uint8* pInV = pInput + size + size / 4;
  Rgba* pOutColor = pOutput;

  const int u_offset = size;
  const int v_offset = u_offset + size / 4;

  for (int y = 0; y < height; y += 2) {
    for (int x = 0; x < width; x += 2) {
      int u, v, y1, y2, y3, y4;
+0 −2
Original line number Diff line number Diff line
@@ -81,8 +81,6 @@ jboolean Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator(
  short* gyPtr = new short[3 * numPixels];
  computeGradient(srcPtr, width, height, gxPtr, gyPtr);

  unsigned char* mag = magPtr;
  unsigned char* dir = dirPtr;
  for (int i = 0; i < numPixels; ++i) {
    for (int c = 0; c < 3; c++) {
      int gx = static_cast<int>(*(gxPtr + 3 * i + c) / 8 + 127.5);