mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "[hardware][interfaces][camera] fix -Wreorder-init-list"
am: 977e274043
Change-Id: Ifc6ba9337a2065ae17a02248523be0613d92f5ea
This commit is contained in:
@@ -754,11 +754,11 @@ void ExternalCameraDevice::getFrameRateList(
|
||||
int fd, double fpsUpperBound, SupportedV4L2Format* format) {
|
||||
format->frameRates.clear();
|
||||
|
||||
v4l2_frmivalenum frameInterval {
|
||||
.pixel_format = format->fourcc,
|
||||
.width = format->width,
|
||||
.height = format->height,
|
||||
.index = 0
|
||||
v4l2_frmivalenum frameInterval{
|
||||
.index = 0,
|
||||
.pixel_format = format->fourcc,
|
||||
.width = format->width,
|
||||
.height = format->height,
|
||||
};
|
||||
|
||||
for (frameInterval.index = 0;
|
||||
|
||||
@@ -2412,9 +2412,7 @@ int ExternalCameraDeviceSession::configureV4l2StreamLocked(
|
||||
mV4L2BufferCount = req_buffers.count;
|
||||
for (uint32_t i = 0; i < req_buffers.count; i++) {
|
||||
v4l2_buffer buffer = {
|
||||
.type = V4L2_BUF_TYPE_VIDEO_CAPTURE,
|
||||
.index = i,
|
||||
.memory = V4L2_MEMORY_MMAP};
|
||||
.index = i, .type = V4L2_BUF_TYPE_VIDEO_CAPTURE, .memory = V4L2_MEMORY_MMAP};
|
||||
|
||||
if (TEMP_FAILURE_RETRY(ioctl(mV4l2Fd.get(), VIDIOC_QUERYBUF, &buffer)) < 0) {
|
||||
ALOGE("%s: QUERYBUF %d failed: %s", __FUNCTION__, i, strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user