/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 994 cropped_height = p_thumb_dim->crop.height; in mm_jpeg_update_thumbnail_crop() 1002 cropped_width = p_thumb_dim->crop.width; in mm_jpeg_update_thumbnail_crop() 1009 p_thumb_dim->crop.left = p_thumb_dim->crop.left + in mm_jpeg_update_thumbnail_crop() 1010 floor((p_thumb_dim->crop.width - cropped_width) / 2); in mm_jpeg_update_thumbnail_crop() 1011 if (p_thumb_dim->crop.left % 2) { in mm_jpeg_update_thumbnail_crop() 1012 p_thumb_dim->crop.left -= 1; in mm_jpeg_update_thumbnail_crop() 1014 p_thumb_dim->crop.top = p_thumb_dim->crop.top + in mm_jpeg_update_thumbnail_crop() 1015 floor((p_thumb_dim->crop.height - cropped_height) / 2); in mm_jpeg_update_thumbnail_crop() 1016 if (p_thumb_dim->crop.top % 2) { in mm_jpeg_update_thumbnail_crop() 1017 p_thumb_dim->crop.top -= 1; in mm_jpeg_update_thumbnail_crop() [all …]
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 888 p_thumb_dim->crop.left = floor(p_thumb_dim->src_dim.width - cropped_width) / 2; in mm_jpeg_get_thumbnail_crop() 889 p_thumb_dim->crop.top = floor(p_thumb_dim->src_dim.height - cropped_height) / 2; in mm_jpeg_get_thumbnail_crop() 890 p_thumb_dim->crop.width = cropped_width; in mm_jpeg_get_thumbnail_crop() 891 p_thumb_dim->crop.height = cropped_height; in mm_jpeg_get_thumbnail_crop() 894 __func__, __LINE__, p_thumb_dim->crop.left, p_thumb_dim->crop.top, in mm_jpeg_get_thumbnail_crop() 895 p_thumb_dim->crop.width, p_thumb_dim->crop.height); in mm_jpeg_get_thumbnail_crop() 942 if ((p_thumb_dim->crop.width == 0) || (p_thumb_dim->crop.height == 0)) { in mm_jpeg_session_config_thumbnail() 943 p_thumb_dim->crop.width = p_thumb_dim->src_dim.width; in mm_jpeg_session_config_thumbnail() 944 p_thumb_dim->crop.height = p_thumb_dim->src_dim.height; in mm_jpeg_session_config_thumbnail() 948 if ((p_thumb_dim->crop.width + p_thumb_dim->crop.left > p_thumb_dim->src_dim.width) || in mm_jpeg_session_config_thumbnail() [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 888 p_thumb_dim->crop.left = floor(p_thumb_dim->src_dim.width - cropped_width) / 2; in mm_jpeg_get_thumbnail_crop() 889 p_thumb_dim->crop.top = floor(p_thumb_dim->src_dim.height - cropped_height) / 2; in mm_jpeg_get_thumbnail_crop() 890 p_thumb_dim->crop.width = cropped_width; in mm_jpeg_get_thumbnail_crop() 891 p_thumb_dim->crop.height = cropped_height; in mm_jpeg_get_thumbnail_crop() 894 __func__, __LINE__, p_thumb_dim->crop.left, p_thumb_dim->crop.top, in mm_jpeg_get_thumbnail_crop() 895 p_thumb_dim->crop.width, p_thumb_dim->crop.height); in mm_jpeg_get_thumbnail_crop() 942 if ((p_thumb_dim->crop.width == 0) || (p_thumb_dim->crop.height == 0)) { in mm_jpeg_session_config_thumbnail() 943 p_thumb_dim->crop.width = p_thumb_dim->src_dim.width; in mm_jpeg_session_config_thumbnail() 944 p_thumb_dim->crop.height = p_thumb_dim->src_dim.height; in mm_jpeg_session_config_thumbnail() 948 if ((p_thumb_dim->crop.width + p_thumb_dim->crop.left > p_thumb_dim->src_dim.width) || in mm_jpeg_session_config_thumbnail() [all …]
|
/device/huawei/angler/camera/QCamera2/HAL/ |
D | QCameraChannel.cpp | 1214 IF_META_AVAILABLE(cam_crop_data_t, crop, CAM_INTF_META_CROP_DATA, pMetaData) { in doReprocessOffline() 1215 if (MAX_NUM_STREAMS > crop->num_of_streams) { in doReprocessOffline() 1217 if (crop->crop_info[j].stream_id == in doReprocessOffline() 1221 crop->crop_info[crop->num_of_streams].crop = in doReprocessOffline() 1222 crop->crop_info[j].crop; in doReprocessOffline() 1223 crop->crop_info[crop->num_of_streams].roi_map = in doReprocessOffline() 1224 crop->crop_info[j].roi_map; in doReprocessOffline() 1225 crop->crop_info[crop->num_of_streams].stream_id = in doReprocessOffline() 1227 crop->num_of_streams++; in doReprocessOffline()
|
D | QCameraPostProc.cpp | 429 cam_rect_t crop; in getJpegEncodingConfig() local 430 memset(&crop, 0, sizeof(cam_rect_t)); in getJpegEncodingConfig() 431 main_stream->getCropInfo(crop); in getJpegEncodingConfig() 439 if (hdr_output_crop && crop.height) { in getJpegEncodingConfig() 440 dst_dim.height = crop.height; in getJpegEncodingConfig() 444 if (hdr_output_crop && crop.width) { in getJpegEncodingConfig() 445 dst_dim.width = crop.width; in getJpegEncodingConfig() 546 memset(&crop, 0, sizeof(cam_rect_t)); in getJpegEncodingConfig() 547 thumb_stream->getCropInfo(crop); in getJpegEncodingConfig() 562 encode_parm.thumb_dim.crop = crop; in getJpegEncodingConfig() [all …]
|
D | QCameraStream.h | 82 int32_t getCropInfo(cam_rect_t &crop); 83 int32_t setCropInfo(cam_rect_t crop);
|
/device/lge/bullhead/camera/QCamera2/HAL/ |
D | QCameraChannel.cpp | 1202 IF_META_AVAILABLE(cam_crop_data_t, crop, CAM_INTF_META_CROP_DATA, pMetaData) { in doReprocessOffline() 1203 if (MAX_NUM_STREAMS > crop->num_of_streams) { in doReprocessOffline() 1205 if (crop->crop_info[j].stream_id == in doReprocessOffline() 1209 crop->crop_info[crop->num_of_streams].crop = in doReprocessOffline() 1210 crop->crop_info[j].crop; in doReprocessOffline() 1211 crop->crop_info[crop->num_of_streams].roi_map = in doReprocessOffline() 1212 crop->crop_info[j].roi_map; in doReprocessOffline() 1213 crop->crop_info[crop->num_of_streams].stream_id = in doReprocessOffline() 1215 crop->num_of_streams++; in doReprocessOffline()
|
D | QCameraPostProc.cpp | 429 cam_rect_t crop; in getJpegEncodingConfig() local 430 memset(&crop, 0, sizeof(cam_rect_t)); in getJpegEncodingConfig() 431 main_stream->getCropInfo(crop); in getJpegEncodingConfig() 439 if (hdr_output_crop && crop.height) { in getJpegEncodingConfig() 440 dst_dim.height = crop.height; in getJpegEncodingConfig() 444 if (hdr_output_crop && crop.width) { in getJpegEncodingConfig() 445 dst_dim.width = crop.width; in getJpegEncodingConfig() 546 memset(&crop, 0, sizeof(cam_rect_t)); in getJpegEncodingConfig() 547 thumb_stream->getCropInfo(crop); in getJpegEncodingConfig() 562 encode_parm.thumb_dim.crop = crop; in getJpegEncodingConfig() [all …]
|
D | QCameraStream.h | 82 int32_t getCropInfo(cam_rect_t &crop); 83 int32_t setCropInfo(cam_rect_t crop);
|
/device/lge/bullhead/camera/QCamera2/HAL3/ |
D | QCamera3PostProc.cpp | 1174 cam_rect_t crop; in encodeFWKData() local 1175 memset(&crop, 0, sizeof(cam_rect_t)); in encodeFWKData() 1190 jpg_job.encode_job.main_dim.crop.width = crop.height; in encodeFWKData() 1191 jpg_job.encode_job.main_dim.crop.height = crop.width; in encodeFWKData() 1192 jpg_job.encode_job.main_dim.crop.left = crop.top; in encodeFWKData() 1193 jpg_job.encode_job.main_dim.crop.top = crop.left; in encodeFWKData() 1197 jpg_job.encode_job.main_dim.crop = crop; in encodeFWKData() 1227 memset(&crop, 0, sizeof(cam_rect_t)); in encodeFWKData() 1244 jpg_job.encode_job.thumb_dim.crop = crop; in encodeFWKData() 1449 cam_rect_t crop; in encodeData() local [all …]
|
/device/huawei/angler/camera/QCamera2/HAL3/ |
D | QCamera3PostProc.cpp | 1174 cam_rect_t crop; in encodeFWKData() local 1175 memset(&crop, 0, sizeof(cam_rect_t)); in encodeFWKData() 1190 jpg_job.encode_job.main_dim.crop.width = crop.height; in encodeFWKData() 1191 jpg_job.encode_job.main_dim.crop.height = crop.width; in encodeFWKData() 1192 jpg_job.encode_job.main_dim.crop.left = crop.top; in encodeFWKData() 1193 jpg_job.encode_job.main_dim.crop.top = crop.left; in encodeFWKData() 1197 jpg_job.encode_job.main_dim.crop = crop; in encodeFWKData() 1227 memset(&crop, 0, sizeof(cam_rect_t)); in encodeFWKData() 1244 jpg_job.encode_job.thumb_dim.crop = crop; in encodeFWKData() 1449 cam_rect_t crop; in encodeData() local [all …]
|
/device/google/marlin/camera/QCamera2/HAL3/ |
D | QCamera3PostProc.cpp | 1222 cam_rect_t crop; in encodeFWKData() local 1223 memset(&crop, 0, sizeof(cam_rect_t)); in encodeFWKData() 1237 jpg_job.encode_job.main_dim.crop.width = crop.height; in encodeFWKData() 1238 jpg_job.encode_job.main_dim.crop.height = crop.width; in encodeFWKData() 1239 jpg_job.encode_job.main_dim.crop.left = crop.top; in encodeFWKData() 1240 jpg_job.encode_job.main_dim.crop.top = crop.left; in encodeFWKData() 1244 jpg_job.encode_job.main_dim.crop = crop; in encodeFWKData() 1274 memset(&crop, 0, sizeof(cam_rect_t)); in encodeFWKData() 1288 jpg_job.encode_job.thumb_dim.crop = crop; in encodeFWKData() 1509 cam_rect_t crop; in encodeData() local [all …]
|
/device/google/marlin/camera/QCamera2/HAL/ |
D | QCameraPostProc.cpp | 482 cam_rect_t crop; in getJpegEncodingConfig() local 483 memset(&crop, 0, sizeof(cam_rect_t)); in getJpegEncodingConfig() 484 main_stream->getCropInfo(crop); in getJpegEncodingConfig() 492 if (hdr_output_crop && crop.height) { in getJpegEncodingConfig() 493 dst_dim.height = crop.height; in getJpegEncodingConfig() 497 if (hdr_output_crop && crop.width) { in getJpegEncodingConfig() 498 dst_dim.width = crop.width; in getJpegEncodingConfig() 619 memset(&crop, 0, sizeof(cam_rect_t)); in getJpegEncodingConfig() 620 thumb_stream->getCropInfo(crop); in getJpegEncodingConfig() 630 encode_parm.thumb_dim.crop = crop; in getJpegEncodingConfig() [all …]
|
D | QCameraChannel.cpp | 1428 IF_META_AVAILABLE(cam_crop_data_t, crop, in doReprocessOffline() 1430 if (MAX_NUM_STREAMS > crop->num_of_streams) { in doReprocessOffline() 1432 if (crop->crop_info[j].stream_id == in doReprocessOffline() 1436 crop->crop_info[crop->num_of_streams].crop = in doReprocessOffline() 1437 crop->crop_info[j].crop; in doReprocessOffline() 1438 crop->crop_info[crop->num_of_streams].roi_map = in doReprocessOffline() 1439 crop->crop_info[j].roi_map; in doReprocessOffline() 1443 crop->crop_info[crop->num_of_streams].stream_id = in doReprocessOffline() 1448 crop->num_of_streams++; in doReprocessOffline()
|
D | QCameraStream.h | 90 int32_t getCropInfo(cam_rect_t &crop); 91 int32_t setCropInfo(cam_rect_t crop);
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 358 p_job_params->main_dim.crop.top = 0; in encode_init() 359 p_job_params->main_dim.crop.left = 0; in encode_init() 360 p_job_params->main_dim.crop.width = p_obj->width; in encode_init() 361 p_job_params->main_dim.crop.height = p_obj->height; in encode_init() 370 p_job_params->thumb_dim.crop.top = 0; in encode_init() 371 p_job_params->thumb_dim.crop.left = 0; in encode_init() 372 p_job_params->thumb_dim.crop.width = 0; in encode_init() 373 p_job_params->thumb_dim.crop.height = 0; in encode_init()
|
D | mm_jpegdec_test.c | 302 p_job_params->main_dim.crop.top = 0; in decode_init() 303 p_job_params->main_dim.crop.left = 0; in decode_init() 304 p_job_params->main_dim.crop.width = p_obj->width; in decode_init() 305 p_job_params->main_dim.crop.height = p_obj->height; in decode_init()
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 358 p_job_params->main_dim.crop.top = 0; in encode_init() 359 p_job_params->main_dim.crop.left = 0; in encode_init() 360 p_job_params->main_dim.crop.width = p_obj->width; in encode_init() 361 p_job_params->main_dim.crop.height = p_obj->height; in encode_init() 370 p_job_params->thumb_dim.crop.top = 0; in encode_init() 371 p_job_params->thumb_dim.crop.left = 0; in encode_init() 372 p_job_params->thumb_dim.crop.width = 0; in encode_init() 373 p_job_params->thumb_dim.crop.height = 0; in encode_init()
|
D | mm_jpegdec_test.c | 302 p_job_params->main_dim.crop.top = 0; in decode_init() 303 p_job_params->main_dim.crop.left = 0; in decode_init() 304 p_job_params->main_dim.crop.width = p_obj->width; in decode_init() 305 p_job_params->main_dim.crop.height = p_obj->height; in decode_init()
|
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/test/ |
D | mm_jpeg_test.c | 426 p_job_params->main_dim.crop.top = 0; in encode_init() 427 p_job_params->main_dim.crop.left = 0; in encode_init() 428 p_job_params->main_dim.crop.width = p_obj->width; in encode_init() 429 p_job_params->main_dim.crop.height = p_obj->height; in encode_init() 438 p_job_params->thumb_dim.crop.top = 0; in encode_init() 439 p_job_params->thumb_dim.crop.left = 0; in encode_init() 440 p_job_params->thumb_dim.crop.width = 0; in encode_init() 441 p_job_params->thumb_dim.crop.height = 0; in encode_init()
|
D | mm_jpegdec_test.c | 310 p_job_params->main_dim.crop.top = 0; in decode_init() 311 p_job_params->main_dim.crop.left = 0; in decode_init() 312 p_job_params->main_dim.crop.width = p_obj->width; in decode_init() 313 p_job_params->main_dim.crop.height = p_obj->height; in decode_init()
|
/device/lge/bullhead/camera/QCamera2/stack/common/ |
D | mm_jpeg_interface.h | 113 cam_rect_t crop; member
|
/device/huawei/angler/camera/QCamera2/stack/common/ |
D | mm_jpeg_interface.h | 113 cam_rect_t crop; member
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_imageop.py | 86 newimage = imageop.crop (image, 4, width, height, 0, 0, 1, 1)
|
/device/google/marlin/camera/usbcamcore/src/ |
D | QualcommUsbCamera.cpp | 1294 struct v4l2_crop crop; in initUsbCamera() local 1328 crop.c = cropcap.defrect; in initUsbCamera() 1329 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in initUsbCamera() 1332 if (-1 == ioctlLoop(camHal->fd, VIDIOC_S_CROP, &crop)) { in initUsbCamera() 2865 srcBuf->crop.offset_x = 0; in encodeJpeg() 2866 srcBuf->crop.offset_y = 0; in encodeJpeg() 2867 srcBuf->crop.width = srcBuf->src_dim.width; in encodeJpeg() 2868 srcBuf->crop.height = srcBuf->src_dim.height; in encodeJpeg()
|