summaryrefslogtreecommitdiff
path: root/src/android/camera3_hal.cpp
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2020-07-23 11:19:38 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-08-06 15:43:59 +0100
commit38ca814e9723562da7b3a63f89662f801ca45614 (patch)
tree1693b25e31479240b71ea9e8253398942a7b08a8 /src/android/camera3_hal.cpp
parent000257a707fed083c6b9ed95d9497ba709cf6f30 (diff)
libcamera: formats: add numPlanes helper
Determine the number of planes used by a format by counting the number of PixelFormatPlaneInfo entries with a valid entry. Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/android/camera3_hal.cpp')
0 files changed, 0 insertions, 0 deletions
a> 35 36 37 38 39 40 41 42 43
/* SPDX-License-Identifier: LGPL-2.1-or-later */

module ipa.ipu3;

import "include/libcamera/ipa/core.mojom";

enum IPU3Operations {
	ActionSetSensorControls = 1,
	ActionParamFilled = 2,
	ActionMetadataReady = 3,
	EventProcessControls = 4,
	EventStatReady = 5,
	EventFillParams = 6,
};

struct IPU3Event {
	IPU3Operations op;
	uint32 frame;
	uint32 bufferId;
	ControlList controls;
};

struct IPU3Action {
	IPU3Operations op;
	ControlList controls;
};

interface IPAIPU3Interface {
	init(IPASettings settings) => (int32 ret);
	start() => (int32 ret);
	stop();

	configure(map<uint32, ControlInfoMap> entityControls, Size bdsOutputSize) => ();

	mapBuffers(array<IPABuffer> buffers);
	unmapBuffers(array<uint32> ids);

	[async] processEvent(IPU3Event ev);
};

interface IPAIPU3EventInterface {
	queueFrameAction(uint32 frame, IPU3Action action);
};