summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergii Piatakov <sergii.piatakov@globallogic.com>2018-08-06 09:32:25 +0300
committerSergii Piatakov <sergii.piatakov@globallogic.com>2018-08-10 14:37:02 +0300
commit752836d7a6e1b364068662099342190c43301288 (patch)
tree24f3410444cc074346bcff39ef60199f7d846801
parent1bd0addfc982bc978e0d075c754a715f8c22bb9d (diff)
downloadlibhardware-752836d7a6e1b364068662099342190c43301288.tar.gz
camera: fix `-Wunused-private-field` compiler warnings
Test: add `USE_CAMERA_V4L2_HAL := true` to hardware/libhardware/modules/camera/3_4/Android.mk and build mmm hardware/libhardware/modules/camera/3_4 Change-Id: I113e14a4296e098a6a04068262186aa8cb81fba7 Signed-off-by: Sergii Piatakov <sergii.piatakov@globallogic.com>
-rw-r--r--modules/camera/3_4/stream_format.cpp9
-rw-r--r--modules/camera/3_4/stream_format.h1
2 files changed, 3 insertions, 7 deletions
diff --git a/modules/camera/3_4/stream_format.cpp b/modules/camera/3_4/stream_format.cpp
index 89b58bd3..401a2f09 100644
--- a/modules/camera/3_4/stream_format.cpp
+++ b/modules/camera/3_4/stream_format.cpp
@@ -44,8 +44,7 @@ StreamFormat::StreamFormat(int format, uint32_t width, uint32_t height)
v4l2_pixel_format_(StreamFormat::HalToV4L2PixelFormat(format)),
width_(width),
height_(height),
- bytes_per_line_(0),
- min_buffer_size_(0) {}
+ bytes_per_line_(0) {}
StreamFormat::StreamFormat(const v4l2_format& format)
: type_(format.type),
@@ -53,16 +52,14 @@ StreamFormat::StreamFormat(const v4l2_format& format)
v4l2_pixel_format_(format.fmt.pix.pixelformat),
width_(format.fmt.pix.width),
height_(format.fmt.pix.height),
- bytes_per_line_(format.fmt.pix.bytesperline),
- min_buffer_size_(format.fmt.pix.sizeimage) {}
+ bytes_per_line_(format.fmt.pix.bytesperline) {}
StreamFormat::StreamFormat(const arc::SupportedFormat& format)
: type_(V4L2_BUF_TYPE_VIDEO_CAPTURE),
v4l2_pixel_format_(format.fourcc),
width_(format.width),
height_(format.height),
- bytes_per_line_(0),
- min_buffer_size_(0) {}
+ bytes_per_line_(0) {}
void StreamFormat::FillFormatRequest(v4l2_format* format) const {
memset(format, 0, sizeof(*format));
diff --git a/modules/camera/3_4/stream_format.h b/modules/camera/3_4/stream_format.h
index 720e3800..82ec440d 100644
--- a/modules/camera/3_4/stream_format.h
+++ b/modules/camera/3_4/stream_format.h
@@ -78,7 +78,6 @@ class StreamFormat {
uint32_t width_;
uint32_t height_;
uint32_t bytes_per_line_;
- uint32_t min_buffer_size_;
};
} // namespace v4l2_camera_hal