Home | History | Annotate | Download | only in libcamera2

Lines Matching defs:curr_entry

82     camera_metadata_entry_t curr_entry;
99 if (get_camera_metadata_entry(request, index, &curr_entry)==0) {
100 switch (curr_entry.tag) {
103 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_FLOAT, 1))
105 dst->ctl.lens.focusDistance = curr_entry.data.f[0];
109 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_FLOAT, 1))
111 dst->ctl.lens.aperture = curr_entry.data.f[0];
115 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_FLOAT, 1))
117 dst->ctl.lens.focalLength = curr_entry.data.f[0];
121 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_FLOAT, 1))
123 dst->ctl.lens.filterDensity = curr_entry.data.f[0];
127 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
130 (enum optical_stabilization_mode)curr_entry.data.u8[0];
135 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT64, 1))
137 dst->dm.sensor.timeStamp = curr_entry.data.i64[0];
142 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 1))
144 dst->dm.aa.isoValue = curr_entry.data.i32[0];
148 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT64, 1))
150 dst->dm.sensor.exposureTime = curr_entry.data.i64[0];
155 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
157 dst->ctl.flash.flashMode = (enum flash_mode)(curr_entry.data.u8[0] + 1);
161 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
163 dst->ctl.flash.firingPower = curr_entry.data.u8[0];
167 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT64, 1))
169 dst->ctl.flash.firingTime = curr_entry.data.i64[0];
175 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 4))
178 dst->ctl.scaler.cropRegion[i] = ALIGN(curr_entry.data.i32[i], 2);
183 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 1))
185 dst->ctl.jpeg.quality= curr_entry.data.i32[0];
189 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 2))
191 for (i=0 ; i<curr_entry.count ; i++)
192 dst->ctl.jpeg.thumbnailSize[i] = curr_entry.data.i32[i];
196 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 1))
198 dst->ctl.jpeg.thumbnailQuality= curr_entry.data.i32[0];
202 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_DOUBLE, 3))
204 for (i=0 ; i<curr_entry.count ; i++)
205 dst->ctl.jpeg.gpsCoordinates[i] = curr_entry.data.d[i];
209 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE))
211 if (curr_entry.count > 32)
214 cnt = curr_entry.count;
216 dst_ext->gpsProcessingMethod[i] = curr_entry.data.u8[i];
220 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT64, 1))
222 dst->ctl.jpeg.gpsTimestamp = curr_entry.data.i64[0];
226 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 1))
228 dst->ctl.jpeg.orientation = curr_entry.data.i32[0];
234 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
236 dst->ctl.stats.faceDetectMode = (enum facedetect_mode)(curr_entry.data.u8[0] + 1);
240 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
242 dst->ctl.aa.captureIntent = (enum aa_capture_intent)curr_entry.data.u8[0];
246 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
248 dst->ctl.aa.mode = (enum aa_mode)(curr_entry.data.u8[0] + 1);
253 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
255 dst->ctl.aa.videoStabilizationMode = curr_entry.data.u8[0];
259 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
261 dst->ctl.aa.aeMode = (enum aa_aemode)(curr_entry.data.u8[0] + 2);
269 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
271 dst_ext->ae_lock = (enum ae_lockmode)(curr_entry.data.u8[0]);
275 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 1))
277 dst->ctl.aa.aeExpCompensation = curr_entry.data.i32[0] + 5;
281 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
283 dst->ctl.aa.awbMode = (enum aa_awbmode)(curr_entry.data.u8[0] + 2);
287 dst_ext->awb_mode_dm = (enum aa_awbmode)(curr_entry.data.u8[0] + 2);
291 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
293 dst_ext->awb_lock = (enum awb_lockmode)(curr_entry.data.u8[0]);
297 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
299 dst->ctl.aa.afMode = (enum aa_afmode)(curr_entry.data.u8[0] + 1);
305 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 5))
307 for (i=0 ; i<curr_entry.count ; i++)
308 dst->ctl.aa.afRegions[i] = curr_entry.data.i32[i];
312 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 5))
314 for (i=0 ; i<curr_entry.count ; i++)
315 dst->ctl.aa.aeRegions[i] = curr_entry.data.i32[i];
320 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 1))
322 dst->ctl.request.id = curr_entry.data.i32[0];
327 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
329 dst->ctl.request.metadataMode = (enum metadata_mode)curr_entry.data.u8[0];
334 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32))
338 for (i=0 ; i<curr_entry.count ; i++) {
339 ALOGV("DEBUG(%s): OUTPUT_STREAM[%d] = %d ", __FUNCTION__, i, curr_entry.data.i32[i]);
340 dst->ctl.request.outputStreams[0] |= (1 << curr_entry.data.i32[i]);
345 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32))
348 for (i=0 ; i<curr_entry.count ; i++) {
349 dst_ext->reprocessInput = curr_entry.data.i32[0];
355 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
357 dst_ext->isReprocessing = curr_entry.data.u8[0];
362 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 1))
364 dst->ctl.request.frameCount = curr_entry.data.i32[0];
369 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_BYTE, 1))
371 dst->ctl.aa.sceneMode = (enum aa_scene_mode)(curr_entry.data.u8[0] + 1);
375 if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 2))
377 for (i=0 ; i<curr_entry.count ; i++)
378 dst->ctl.aa.aeTargetFpsRange[i] = curr_entry.data.i32[i];
382 ALOGV("DEBUG(%s):Bad Metadata tag (%d)", __FUNCTION__, curr_entry.tag);
395 camera_metadata_entry_t curr_entry;