From 905a684cda4a70fec8b03dbd880734cf1571397a Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Tue, 26 Feb 2019 17:58:58 +0800 Subject: [PATCH] Remove unused variables --- CameraHardware.cpp | 5 ----- V4L2Camera.cpp | 1 - 2 files changed, 6 deletions(-) diff --git a/CameraHardware.cpp b/CameraHardware.cpp index bcedcde..656997e 100644 --- a/CameraHardware.cpp +++ b/CameraHardware.cpp @@ -1095,8 +1095,6 @@ void CameraHardware::initHeapLocked() int y_size = stride * preview_height; int c_stride = ((stride >> 1) + 15) & (-16); // Round to 16 pixels int c_size = c_stride * preview_height >> 1; - int cr_offset = y_size; - int cb_offset = y_size + c_size; int size = y_size + (c_size << 1); how_preview_big = size; @@ -1165,8 +1163,6 @@ void CameraHardware::initHeapLocked() int y_size = stride * video_height; int c_stride = ((stride >> 1) + 15) & (-16); // Round to 16 pixels int c_size = c_stride * video_height >> 1; - int cr_offset = y_size; - int cb_offset = y_size + c_size; int size = y_size + (c_size << 1); how_recording_big = size; @@ -1676,7 +1672,6 @@ int CameraHardware::pictureThread() int maxFramesToWait = 8; int luminanceStableFor = 0; int prevLuminance = 0; - int prevDif = -1; int stride = w << 1; int thresh = (w >> 4) * (h >> 4) * 12; // 5% of full range diff --git a/V4L2Camera.cpp b/V4L2Camera.cpp index 08b5ba2..99b84c2 100644 --- a/V4L2Camera.cpp +++ b/V4L2Camera.cpp @@ -779,7 +779,6 @@ bool V4L2Camera::EnumFrameIntervals(int pixfmt, int width, int height) bool V4L2Camera::EnumFrameSizes(int pixfmt) { ALOGD("V4L2Camera::EnumFrameSizes: pixfmt: 0x%08x",pixfmt); - int ret=0; int fsizeind = 0; struct v4l2_frmsizeenum fsize; -- 2.11.0