Searched refs:cropped_width (Results 1 – 2 of 2) sorted by relevance
140 int cropped_width = yu12_frame_->GetHeight() * yu12_frame_->GetHeight() / in CropRotateScale() local142 if (cropped_width % 2 == 1) { in CropRotateScale()144 cropped_width++; in CropRotateScale()147 int margin = (yu12_frame_->GetWidth() - cropped_width) / 2; in CropRotateScale()149 int rotated_height = cropped_width; in CropRotateScale()183 yu12_frame_->GetHeight(), cropped_width, cropped_height, rotation_mode, in CropRotateScale()
1155 int32_t cropped_width = 0, cropped_height = 0; in mm_jpeg_update_thumbnail_crop() local1160 cropped_width = floor((cropped_height * p_thumb_dim->dst_dim.width) / in mm_jpeg_update_thumbnail_crop()1162 if (cropped_width % 2) { in mm_jpeg_update_thumbnail_crop()1163 cropped_width -= 1; in mm_jpeg_update_thumbnail_crop()1167 cropped_width = p_thumb_dim->crop.width; in mm_jpeg_update_thumbnail_crop()1168 cropped_height = floor((cropped_width * p_thumb_dim->dst_dim.height) / in mm_jpeg_update_thumbnail_crop()1175 floor((p_thumb_dim->crop.width - cropped_width) / 2); in mm_jpeg_update_thumbnail_crop()1184 p_thumb_dim->crop.width = cropped_width; in mm_jpeg_update_thumbnail_crop()