| 225 | } |
| 226 | |
| 227 | static 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 | |
| 242 | static void match_video_size(AVFormatContext *avctx) |
| 243 | { |
no outgoing calls
no test coverage detected