summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/controller/pdaf_data.h
blob: 470510f2eb175f9848a8277d95a31b5713c5669e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (C) 2022, Raspberry Pi Ltd
 *
 * pdaf_data.h - PDAF Metadata
 */
#pragma once

#include <stdint.h>

#include "region_stats.h"

namespace RPiController {

struct PdafData {
	/* Confidence, in arbitrary units */
	uint16_t conf;
	/* Phase error, in s16 Q4 format (S.11.4) */
	int16_t phase;
};

using PdafRegions = RegionStats<PdafData>;

} /* namespace RPiController */