Home
last modified time | relevance | path

Searched refs:requested_ratio (Results 1 – 2 of 2) sorted by relevance

/hardware/qcom/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_preview.c570 double max_ratio, requested_ratio; in mm_app_get_analysis_stream_dim() local
573 requested_ratio = (double)preview_dim->width / (double)preview_dim->height; in mm_app_get_analysis_stream_dim()
575 if (max_ratio < requested_ratio) { in mm_app_get_analysis_stream_dim()
577 analysis_dim.height = (int32_t)((double)analysis_dim.width / requested_ratio); in mm_app_get_analysis_stream_dim()
580 analysis_dim.width = (int32_t)((double)analysis_dim.height * requested_ratio); in mm_app_get_analysis_stream_dim()
/hardware/qcom/camera/QCamera2/HAL/
DQCameraParameters.cpp10152 double max_ratio, requested_ratio; in getStreamDimension() local
10155 requested_ratio = (double)prv_dim.width / (double)prv_dim.height; in getStreamDimension()
10157 if (max_ratio < requested_ratio) { in getStreamDimension()
10159 dim.height = (int32_t)((double)dim.width / requested_ratio); in getStreamDimension()
10162 dim.width = (int32_t)((double)max_dim.height * requested_ratio); in getStreamDimension()