summaryrefslogtreecommitdiff
path: root/include/android/hardware/libhardware
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-09-03 17:44:00 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-09-07 00:32:08 +0300
commitf98919307e411c57f24de7587b22ac90a7850bdc (patch)
treeae5eb4f9358d9aed2ebeb844fe953455c9d3683f /include/android/hardware/libhardware
parent52660f2b13dd9f1032de5e50c416845def66a838 (diff)
pipeline: uvcvideo: Cache supported formats in UVCCameraData
Populate and cache the list of supported formats in UVCCameraData::init(), to avoid repeating the operation every time generateConfiguration() is called. Combine this with the search for the largest size advertised by the camera to avoid iterating over the formats twice in init(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Tested-by: Christian Rauch <Rauch.Christian@gmx.de>
Diffstat (limited to 'include/android/hardware/libhardware')
0 files changed, 0 insertions, 0 deletions