Lines Matching refs:crop

1230     cam_rect_t crop;
1231 memset(&crop, 0, sizeof(cam_rect_t));
1233 //main_stream->getCropInfo(crop);
1235 // Set JPEG encode crop in reprocess frame metadata
1236 // If this JPEG crop info exist, encoder should do cropping
1239 memcpy(&crop, &(jpeg_crop->crop), sizeof(cam_rect_t));
1242 // Set JPEG encode crop in reprocess frame metadata
1367 jpg_job.encode_job.main_dim.crop.width = crop.height;
1368 jpg_job.encode_job.main_dim.crop.height = crop.width;
1369 jpg_job.encode_job.main_dim.crop.left = crop.top;
1370 jpg_job.encode_job.main_dim.crop.top = crop.left;
1374 jpg_job.encode_job.main_dim.crop = crop;
1418 jpg_job.encode_job.thumb_dim.crop.width = crop.height;
1419 jpg_job.encode_job.thumb_dim.crop.height = crop.width;
1420 jpg_job.encode_job.thumb_dim.crop.left = crop.top;
1421 jpg_job.encode_job.thumb_dim.crop.top = crop.left;
1424 jpg_job.encode_job.thumb_dim.crop = crop;
1772 cam_rect_t crop;
1773 memset(&crop, 0, sizeof(cam_rect_t));
1775 //main_stream->getCropInfo(crop);
1777 // Make sure crop region has the same aspect ratio as dst_dim
1779 crop.height = src_dim.height;
1780 crop.width = crop.height * dst_dim.width / dst_dim.height;
1781 crop.left = (src_dim.width - crop.width) / 2;
1782 crop.top = 0;
1784 crop.width = src_dim.width;
1785 crop.height = crop.width * dst_dim.height / dst_dim.width;
1786 crop.left = 0;
1787 crop.top = (src_dim.height - crop.height) / 2;
1800 jpg_job.encode_job.main_dim.crop.width = crop.height;
1801 jpg_job.encode_job.main_dim.crop.height = crop.width;
1802 jpg_job.encode_job.main_dim.crop.left = crop.top;
1803 jpg_job.encode_job.main_dim.crop.top = crop.left;
1807 jpg_job.encode_job.main_dim.crop = crop;
1853 jpg_job.encode_job.thumb_dim.crop.width = crop.height;
1854 jpg_job.encode_job.thumb_dim.crop.height = crop.width;
1855 jpg_job.encode_job.thumb_dim.crop.left = crop.top;
1856 jpg_job.encode_job.thumb_dim.crop.top = crop.left;
1859 jpg_job.encode_job.thumb_dim.crop = crop;
2128 LOGE("Failed to extract output crop");