Suppressed unused parameter warnings in frameworks/base/tests/Camera2Tests

Bug: 27149500
Change-Id: I3e522d58db88d2933ae82f6f448a8671316b0b35
This commit is contained in:
Aurimas Liutikas
2016-02-18 11:25:48 -08:00
parent aafff2f835
commit 4642ae0614
3 changed files with 2 additions and 5 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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);