summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/focus_status.h
blob: 8b74e59840c11ee40d9b7e5c35a63e50164c9183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (C) 2020, Raspberry Pi Ltd
 *
 * focus_status.h - focus measurement status
 */
#pragma once

#include <linux/bcm2835-isp.h>

/*
 * The focus algorithm should post the following structure into the image's
 * "focus.status" metadata. Recall that it's only reporting focus (contrast)
 * measurements, it's not driving any kind of auto-focus algorithm!
 */

struct FocusStatus {
	unsigned int num;
	uint32_t focusMeasures[FOCUS_REGIONS];
};