MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / get_sensor_orientation

Function get_sensor_orientation

libavdevice/android_camera.c:227–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227static void get_sensor_orientation(AVFormatContext *avctx)
228{
229 AndroidCameraCtx *ctx = avctx->priv_data;
230 ACameraMetadata_const_entry lens_facing;
231 ACameraMetadata_const_entry sensor_orientation;
232
233 ACameraMetadata_getConstEntry(ctx->camera_metadata,
234 ACAMERA_LENS_FACING, &lens_facing);
235 ACameraMetadata_getConstEntry(ctx->camera_metadata,
236 ACAMERA_SENSOR_ORIENTATION, &sensor_orientation);
237
238 ctx->lens_facing = lens_facing.data.u8[0];
239 ctx->sensor_orientation = sensor_orientation.data.i32[0];
240}
241
242static void match_video_size(AVFormatContext *avctx)
243{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected