Lines Matching refs:dst

83     struct camera2_shot * dst = NULL;  in ToInternalShot()  local
89 dst = &dst_ext->shot; in ToInternalShot()
91 dst->magicNumber = 0x23456789; in ToInternalShot()
92 dst->ctl.aa.aeTargetFpsRange[0] = 15; in ToInternalShot()
93 dst->ctl.aa.aeTargetFpsRange[1] = 30; in ToInternalShot()
94 dst->ctl.aa.aeExpCompensation = 5; in ToInternalShot()
105 dst->ctl.lens.focusDistance = curr_entry.data.f[0]; in ToInternalShot()
111 dst->ctl.lens.aperture = curr_entry.data.f[0]; in ToInternalShot()
117 dst->ctl.lens.focalLength = curr_entry.data.f[0]; in ToInternalShot()
123 dst->ctl.lens.filterDensity = curr_entry.data.f[0]; in ToInternalShot()
129 dst->ctl.lens.opticalStabilizationMode = in ToInternalShot()
137 dst->dm.sensor.timeStamp = curr_entry.data.i64[0]; in ToInternalShot()
144 dst->dm.aa.isoValue = curr_entry.data.i32[0]; in ToInternalShot()
150 dst->dm.sensor.exposureTime = curr_entry.data.i64[0]; in ToInternalShot()
157 dst->ctl.flash.flashMode = (enum flash_mode)(curr_entry.data.u8[0] + 1); in ToInternalShot()
163 dst->ctl.flash.firingPower = curr_entry.data.u8[0]; in ToInternalShot()
169 dst->ctl.flash.firingTime = curr_entry.data.i64[0]; in ToInternalShot()
178 dst->ctl.scaler.cropRegion[i] = ALIGN(curr_entry.data.i32[i], 2); in ToInternalShot()
185 dst->ctl.jpeg.quality= curr_entry.data.i32[0]; in ToInternalShot()
192 dst->ctl.jpeg.thumbnailSize[i] = curr_entry.data.i32[i]; in ToInternalShot()
198 dst->ctl.jpeg.thumbnailQuality= curr_entry.data.i32[0]; in ToInternalShot()
205 dst->ctl.jpeg.gpsCoordinates[i] = curr_entry.data.d[i]; in ToInternalShot()
222 dst->ctl.jpeg.gpsTimestamp = curr_entry.data.i64[0]; in ToInternalShot()
228 dst->ctl.jpeg.orientation = curr_entry.data.i32[0]; in ToInternalShot()
236 dst->ctl.stats.faceDetectMode = (enum facedetect_mode)(curr_entry.data.u8[0] + 1); in ToInternalShot()
242 dst->ctl.aa.captureIntent = (enum aa_capture_intent)curr_entry.data.u8[0]; in ToInternalShot()
248 dst->ctl.aa.mode = (enum aa_mode)(curr_entry.data.u8[0] + 1); in ToInternalShot()
255 dst->ctl.aa.videoStabilizationMode = curr_entry.data.u8[0]; in ToInternalShot()
261 dst->ctl.aa.aeMode = (enum aa_aemode)(curr_entry.data.u8[0] + 2); in ToInternalShot()
263 if (dst->ctl.aa.aeMode == AA_AEMODE_LOCKED) in ToInternalShot()
264 dst->ctl.aa.aeMode = AA_AEMODE_OFF; in ToInternalShot()
265 ALOGV("DEBUG(%s): ANDROID_CONTROL_AE_MODE (%d)", __FUNCTION__, dst->ctl.aa.aeMode); in ToInternalShot()
277 dst->ctl.aa.aeExpCompensation = curr_entry.data.i32[0] + 5; in ToInternalShot()
283 dst->ctl.aa.awbMode = (enum aa_awbmode)(curr_entry.data.u8[0] + 2); in ToInternalShot()
285 if (dst->ctl.aa.awbMode == AA_AWBMODE_LOCKED) in ToInternalShot()
286 dst->ctl.aa.awbMode = AA_AWBMODE_OFF; in ToInternalShot()
299 dst->ctl.aa.afMode = (enum aa_afmode)(curr_entry.data.u8[0] + 1); in ToInternalShot()
300 if (dst->ctl.aa.afMode == AA_AFMODE_OFF) in ToInternalShot()
301 dst->ctl.aa.afMode = AA_AFMODE_MANUAL; in ToInternalShot()
308 dst->ctl.aa.afRegions[i] = curr_entry.data.i32[i]; in ToInternalShot()
315 dst->ctl.aa.aeRegions[i] = curr_entry.data.i32[i]; in ToInternalShot()
322 dst->ctl.request.id = curr_entry.data.i32[0]; in ToInternalShot()
323 ALOGV("DEBUG(%s): ANDROID_REQUEST_ID (%d)", __FUNCTION__, dst->ctl.request.id); in ToInternalShot()
329 dst->ctl.request.metadataMode = (enum metadata_mode)curr_entry.data.u8[0]; in ToInternalShot()
330 …ALOGV("DEBUG(%s): ANDROID_REQUEST_METADATA_MODE (%d)", __FUNCTION__, (int)( dst->ctl.request.meta… in ToInternalShot()
337 dst->ctl.request.outputStreams[0] = 0; in ToInternalShot()
340 dst->ctl.request.outputStreams[0] |= (1 << curr_entry.data.i32[i]); in ToInternalShot()
364 dst->ctl.request.frameCount = curr_entry.data.i32[0]; in ToInternalShot()
365 … ALOGV("DEBUG(%s): ANDROID_REQUEST_FRAME_COUNT (%d)", __FUNCTION__, dst->ctl.request.frameCount); in ToInternalShot()
371 dst->ctl.aa.sceneMode = (enum aa_scene_mode)(curr_entry.data.u8[0] + 1); in ToInternalShot()
378 dst->ctl.aa.aeTargetFpsRange[i] = curr_entry.data.i32[i]; in ToInternalShot()
387 if (dst->ctl.aa.mode != AA_CONTROL_USE_SCENE_MODE) in ToInternalShot()
388 dst->ctl.aa.sceneMode = AA_SCENE_MODE_UNSUPPORTED; in ToInternalShot()
396 struct camera2_shot * dst = NULL; in ApplySceneModeParameters() local
400 dst = &(dst_ext->shot); in ApplySceneModeParameters()
402 switch (dst->ctl.aa.sceneMode) { in ApplySceneModeParameters()
405 dst->ctl.aa.mode = AA_CONTROL_USE_SCENE_MODE; in ApplySceneModeParameters()
406 if (dst->ctl.aa.aeMode != AA_AEMODE_LOCKED) in ApplySceneModeParameters()
407 dst->ctl.aa.aeMode = AA_AEMODE_ON; in ApplySceneModeParameters()
408 dst->ctl.aa.awbMode = AA_AWBMODE_WB_AUTO; in ApplySceneModeParameters()
410 dst->ctl.aa.isoMode = AA_ISOMODE_AUTO; in ApplySceneModeParameters()
411 dst->ctl.aa.isoValue = 0; in ApplySceneModeParameters()
412 dst->ctl.aa.aeTargetFpsRange[0] = 30; in ApplySceneModeParameters()
413 dst->ctl.aa.aeTargetFpsRange[1] = 30; in ApplySceneModeParameters()
415 dst->ctl.noise.mode = PROCESSING_MODE_FAST; in ApplySceneModeParameters()
416 dst->ctl.noise.strength = 0; in ApplySceneModeParameters()
417 dst->ctl.edge.mode = PROCESSING_MODE_FAST; in ApplySceneModeParameters()
418 dst->ctl.edge.strength = 0; in ApplySceneModeParameters()
420 dst->ctl.color.saturation = 3; // means '0' in ApplySceneModeParameters()
424 dst->ctl.aa.mode = AA_CONTROL_USE_SCENE_MODE; in ApplySceneModeParameters()
425 if (dst->ctl.aa.aeMode != AA_AEMODE_LOCKED) in ApplySceneModeParameters()
426 dst->ctl.aa.aeMode = AA_AEMODE_ON; in ApplySceneModeParameters()
427 dst->ctl.aa.awbMode = AA_AWBMODE_WB_AUTO; in ApplySceneModeParameters()
429 dst->ctl.aa.isoMode = AA_ISOMODE_MANUAL; in ApplySceneModeParameters()
430 dst->ctl.aa.isoValue = 200; in ApplySceneModeParameters()
431 dst->ctl.aa.aeTargetFpsRange[0] = 15; in ApplySceneModeParameters()
432 dst->ctl.aa.aeTargetFpsRange[1] = 30; in ApplySceneModeParameters()
434 dst->ctl.noise.mode = PROCESSING_MODE_FAST; in ApplySceneModeParameters()
435 dst->ctl.noise.strength = 0; in ApplySceneModeParameters()
436 dst->ctl.edge.mode = PROCESSING_MODE_FAST; in ApplySceneModeParameters()
437 dst->ctl.edge.strength = 0; in ApplySceneModeParameters()
439 dst->ctl.color.saturation = 4; // means '+1' in ApplySceneModeParameters()
443 dst->ctl.aa.mode = AA_CONTROL_USE_SCENE_MODE; in ApplySceneModeParameters()
444 if (dst->ctl.aa.aeMode != AA_AEMODE_LOCKED) in ApplySceneModeParameters()
445 dst->ctl.aa.aeMode = AA_AEMODE_ON; in ApplySceneModeParameters()
446 dst->ctl.aa.awbMode = AA_AWBMODE_WB_DAYLIGHT; in ApplySceneModeParameters()
448 dst->ctl.aa.isoMode = AA_ISOMODE_AUTO; in ApplySceneModeParameters()
449 dst->ctl.aa.isoValue = 0; in ApplySceneModeParameters()
450 dst->ctl.aa.aeTargetFpsRange[0] = 15; in ApplySceneModeParameters()
451 dst->ctl.aa.aeTargetFpsRange[1] = 30; in ApplySceneModeParameters()
453 dst->ctl.noise.mode = PROCESSING_MODE_FAST; in ApplySceneModeParameters()
454 dst->ctl.noise.strength = 0; in ApplySceneModeParameters()
455 dst->ctl.edge.mode = PROCESSING_MODE_FAST; in ApplySceneModeParameters()
456 dst->ctl.edge.strength = 0; in ApplySceneModeParameters()
458 dst->ctl.color.saturation = 3; // means '0' in ApplySceneModeParameters()
462 dst->ctl.aa.mode = AA_CONTROL_USE_SCENE_MODE; in ApplySceneModeParameters()
463 dst->ctl.aa.aeMode = AA_AEMODE_ON; // AE_LOCK is prohibited in ApplySceneModeParameters()
464 dst->ctl.aa.awbMode = AA_AWBMODE_WB_AUTO; in ApplySceneModeParameters()
466 dst->ctl.aa.isoMode = AA_ISOMODE_AUTO; in ApplySceneModeParameters()
467 dst->ctl.aa.isoValue = 0; in ApplySceneModeParameters()
468 dst->ctl.aa.aeTargetFpsRange[0] = 8; in ApplySceneModeParameters()
469 dst->ctl.aa.aeTargetFpsRange[1] = 30; in ApplySceneModeParameters()
471 dst->ctl.noise.mode = PROCESSING_MODE_FAST; in ApplySceneModeParameters()
472 dst->ctl.noise.strength = 0; in ApplySceneModeParameters()
473 dst->ctl.edge.mode = PROCESSING_MODE_FAST; in ApplySceneModeParameters()
474 dst->ctl.edge.strength = 0; in ApplySceneModeParameters()
476 dst->ctl.color.saturation = 3; // means '0' in ApplySceneModeParameters()
480 dst->ctl.aa.mode = AA_CONTROL_AUTO; in ApplySceneModeParameters()
481 … if ((dst->ctl.aa.aeMode != AA_AEMODE_LOCKED) && (dst->ctl.aa.aeMode < AA_AEMODE_ON_AUTO_FLASH)) in ApplySceneModeParameters()
482 dst->ctl.aa.aeMode = AA_AEMODE_ON; in ApplySceneModeParameters()
483 dst->ctl.aa.sceneMode = AA_SCENE_MODE_FACE_PRIORITY; in ApplySceneModeParameters()
484 dst->ctl.aa.isoMode = AA_ISOMODE_AUTO; in ApplySceneModeParameters()
485 dst->ctl.aa.isoValue = 0; in ApplySceneModeParameters()
486 dst->ctl.noise.mode = PROCESSING_MODE_OFF; in ApplySceneModeParameters()
487 dst->ctl.noise.strength = 0; in ApplySceneModeParameters()
488 dst->ctl.edge.mode = PROCESSING_MODE_OFF; in ApplySceneModeParameters()
489 dst->ctl.edge.strength = 0; in ApplySceneModeParameters()
490 dst->ctl.color.saturation = 3; // means '0' in ApplySceneModeParameters()
494 dst->ctl.aa.mode = AA_CONTROL_AUTO; in ApplySceneModeParameters()
495 … if ((dst->ctl.aa.aeMode != AA_AEMODE_LOCKED) && (dst->ctl.aa.aeMode < AA_AEMODE_ON_AUTO_FLASH)) in ApplySceneModeParameters()
496 dst->ctl.aa.aeMode = AA_AEMODE_ON; in ApplySceneModeParameters()
497 dst->ctl.aa.sceneMode = AA_SCENE_MODE_UNSUPPORTED; in ApplySceneModeParameters()
498 dst->ctl.aa.isoMode = AA_ISOMODE_AUTO; in ApplySceneModeParameters()
499 dst->ctl.aa.isoValue = 0; in ApplySceneModeParameters()
500 dst->ctl.noise.mode = PROCESSING_MODE_OFF; in ApplySceneModeParameters()
501 dst->ctl.noise.strength = 0; in ApplySceneModeParameters()
502 dst->ctl.edge.mode = PROCESSING_MODE_OFF; in ApplySceneModeParameters()
503 dst->ctl.edge.strength = 0; in ApplySceneModeParameters()
504 dst->ctl.color.saturation = 3; // means '0' in ApplySceneModeParameters()
512 …tadataConverter::ToDynamicMetadata(struct camera2_shot_ext * metadata_ext, camera_metadata_t * dst) in ToDynamicMetadata() argument
519 if (0 != add_camera_metadata_entry(dst, ANDROID_REQUEST_ID, in ToDynamicMetadata()
523 if (0 != add_camera_metadata_entry(dst, ANDROID_REQUEST_METADATA_MODE, in ToDynamicMetadata()
527 if (0 != add_camera_metadata_entry(dst, ANDROID_REQUEST_FRAME_COUNT, in ToDynamicMetadata()
531 if (0 != add_camera_metadata_entry(dst, ANDROID_SENSOR_TIMESTAMP, in ToDynamicMetadata()
535 if (0 != add_camera_metadata_entry(dst, ANDROID_SENSOR_EXPOSURE_TIME, in ToDynamicMetadata()
539 if (0 != add_camera_metadata_entry(dst, ANDROID_LENS_APERTURE, in ToDynamicMetadata()
543 if (0 != add_camera_metadata_entry(dst, ANDROID_CONTROL_AE_TARGET_FPS_RANGE, in ToDynamicMetadata()
553 if (0 != add_camera_metadata_entry(dst, ANDROID_CONTROL_AWB_MODE, in ToDynamicMetadata()
558 if (0 != add_camera_metadata_entry(dst, ANDROID_CONTROL_AE_MODE, in ToDynamicMetadata()
563 if (0 != add_camera_metadata_entry(dst, ANDROID_CONTROL_AF_MODE, in ToDynamicMetadata()
568 if (0 != add_camera_metadata_entry(dst, ANDROID_CONTROL_SCENE_MODE, in ToDynamicMetadata()
573 if (0 != add_camera_metadata_entry(dst, ANDROID_CONTROL_AE_EXPOSURE_COMPENSATION, in ToDynamicMetadata()
578 if (0 != add_camera_metadata_entry(dst, ANDROID_STATISTICS_FACE_DETECT_MODE, in ToDynamicMetadata()
583 if (0 != add_camera_metadata_entry(dst, ANDROID_STATISTICS_INFO_MAX_FACE_COUNT, in ToDynamicMetadata()
604 if (0 != add_camera_metadata_entry(dst, ANDROID_STATISTICS_FACE_RECTANGLES, in ToDynamicMetadata()
608 if (0 != add_camera_metadata_entry(dst, ANDROID_STATISTICS_FACE_LANDMARKS, in ToDynamicMetadata()
612 if (0 != add_camera_metadata_entry(dst, ANDROID_STATISTICS_FACE_IDS, in ToDynamicMetadata()
616 if (0 != add_camera_metadata_entry(dst, ANDROID_STATISTICS_FACE_SCORES, in ToDynamicMetadata()
620 if (0 != add_camera_metadata_entry(dst, ANDROID_SENSOR_SENSITIVITY, in ToDynamicMetadata()
631 if (0 != add_camera_metadata_entry(dst, ANDROID_SCALER_CROP_REGION, in ToDynamicMetadata()
636 if (0 != add_camera_metadata_entry(dst, ANDROID_CONTROL_AE_STATE, in ToDynamicMetadata()
640 if (0 != add_camera_metadata_entry(dst, ANDROID_CONTROL_AWB_STATE, in ToDynamicMetadata()
645 if (0 != add_camera_metadata_entry(dst, ANDROID_JPEG_ORIENTATION, in ToDynamicMetadata()
649 if (0 != add_camera_metadata_entry(dst, ANDROID_JPEG_QUALITY, in ToDynamicMetadata()
653 if (0 != add_camera_metadata_entry(dst, ANDROID_JPEG_THUMBNAIL_SIZE, in ToDynamicMetadata()
657 if (0 != add_camera_metadata_entry(dst, ANDROID_JPEG_THUMBNAIL_QUALITY, in ToDynamicMetadata()
662 if (0 != add_camera_metadata_entry(dst, ANDROID_JPEG_GPS_COORDINATES, in ToDynamicMetadata()
666 if (0 != add_camera_metadata_entry(dst, ANDROID_JPEG_GPS_PROCESSING_METHOD, in ToDynamicMetadata()
670 if (0 != add_camera_metadata_entry(dst, ANDROID_JPEG_GPS_TIMESTAMP, in ToDynamicMetadata()