Searched refs:requested_ratio (Results 1 – 2 of 2) sorted by relevance
570 double max_ratio, requested_ratio; in mm_app_get_analysis_stream_dim() local573 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()
10152 double max_ratio, requested_ratio; in getStreamDimension() local10155 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()