Home
last modified time | relevance | path

Searched refs:crop (Results 1 – 24 of 24) sorted by relevance

/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c994 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/google/marlin/camera/QCamera2/HAL3/
DQCamera3PostProc.cpp1222 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()
1513 cam_rect_t crop; in encodeData() local
[all …]
DQCamera3HWI.cpp3544 int32_t crop[4] = { in handleMetadataWithLock() local
3545 crop_data->crop_info[j].crop.left + eisCrop.delta_x, in handleMetadataWithLock()
3546 crop_data->crop_info[j].crop.top + eisCrop.delta_y, in handleMetadataWithLock()
3547 crop_data->crop_info[j].crop.width - eisCrop.delta_width, in handleMetadataWithLock()
3548 crop_data->crop_info[j].crop.height - eisCrop.delta_height in handleMetadataWithLock()
3551 if (isCropValid(crop[0], crop[1], crop[2], crop[3], in handleMetadataWithLock()
3553 crop_data->crop_info[j].crop.left = crop[0]; in handleMetadataWithLock()
3554 crop_data->crop_info[j].crop.top = crop[1]; in handleMetadataWithLock()
3555 crop_data->crop_info[j].crop.width = crop[2]; in handleMetadataWithLock()
3556 crop_data->crop_info[j].crop.height = crop[3]; in handleMetadataWithLock()
[all …]
DQCamera3Channel.cpp4489 crop_data->crop_info[crop_data->num_of_streams].crop = in overrideMetadata()
4490 crop_data->crop_info[j].crop; in overrideMetadata()
4500 crop_data->crop_info[j].crop.left, in overrideMetadata()
4501 crop_data->crop_info[j].crop.top, in overrideMetadata()
4502 crop_data->crop_info[j].crop.width, in overrideMetadata()
4503 crop_data->crop_info[j].crop.height); in overrideMetadata()
4583 crop_data->crop_info[crop_data->num_of_streams].crop = in overrideFwkMetadata()
4584 crop_data->crop_info[0].crop; in overrideFwkMetadata()
4594 crop_data->crop_info[0].crop.left, in overrideFwkMetadata()
4595 crop_data->crop_info[0].crop.top, in overrideFwkMetadata()
[all …]
/device/google/marlin/camera/QCamera2/HAL/
DQCameraPostProc.cpp482 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 …]
DQCameraChannel.cpp1428 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()
DQCameraStream.h90 int32_t getCropInfo(cam_rect_t &crop);
91 int32_t setCropInfo(cam_rect_t crop);
DQCameraStream.cpp1000 mCropInfo = crop_info.crop_info[i].crop; in processZoomDone()
2381 int32_t QCameraStream::getCropInfo(cam_rect_t &crop) in getCropInfo() argument
2384 crop = mCropInfo; in getCropInfo()
2401 int32_t QCameraStream::setCropInfo(cam_rect_t crop) in setCropInfo() argument
2404 mCropInfo = crop; in setCropInfo()
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c426 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()
Dmm_jpegdec_test.c310 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/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_imageop.py86 newimage = imageop.crop (image, 4, width, height, 0, 0, 1, 1)
/device/google/marlin/camera/usbcamcore/src/
DQualcommUsbCamera.cpp1294 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()
/device/google/marlin/camera/QCamera2/stack/common/
Dmm_jpeg_interface.h150 cam_rect_t crop; member
Dcam_types.h1361 cam_rect_t crop; member
2645 cam_crop_param_t crop; member
Dcam_intf.h562 cam_rect_t crop; /* crop info for the image */ member
/device/generic/goldfish-opengl/system/hwc2/
DEmuHWC2.h155 hwc_frect_t crop; member
380 HWC2::Error setSourceCrop(hwc_frect_t crop);
DEmuHWC2.cpp771 l->crop = layer->getSourceCrop(); in present()
1306 Error EmuHWC2::Layer::setSourceCrop(hwc_frect_t crop) { in setSourceCrop() argument
1308 mSourceCrop = crop; in setSourceCrop()
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/include/
Dcam_types.h1361 cam_rect_t crop; member
2645 cam_crop_param_t crop; member
Dcam_intf.h562 cam_rect_t crop; /* crop info for the image */ member
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_channel.c2544 if (!crop_data.crop_info[i].crop.left && in mm_channel_handle_metadata()
2545 !crop_data.crop_info[i].crop.top) { in mm_channel_handle_metadata()
/device/google/crosshatch/sdm845/original-kernel-headers/media/
Dmsm_camera.h390 struct msm_pp_crop crop; member
/device/google/crosshatch/sdm845/kernel-headers/media/
Dmsm_camera.h215 struct msm_pp_crop crop; member
/device/google/bonito/sdm710/original-kernel-headers/media/
Dmsm_camera.h390 struct msm_pp_crop crop; member
/device/google/bonito/sdm710/kernel-headers/media/
Dmsm_camera.h215 struct msm_pp_crop crop; member