Files
external_libcamera/include/libcamera/ipa/rkisp1.mojom
T
Dafna Hirschfeld f4fe8cf588 ipa: rkisp1: Return error from IPA's configure method if it fails
The IPA of rkisp1 relies on some of the camera's controls.
Therefore it can't work if those controls are not given.
Return -EINVAL from 'configure' in that case.
Also return error from the pipeline's 'configure' method
if the IPA configure fails.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-03-11 02:13:28 +02:00

45 lines
899 B
Plaintext

/* SPDX-License-Identifier: LGPL-2.1-or-later */
module ipa.rkisp1;
import "include/libcamera/ipa/core.mojom";
enum RkISP1Operations {
ActionV4L2Set = 1,
ActionParamFilled = 2,
ActionMetadata = 3,
EventSignalStatBuffer = 4,
EventQueueRequest = 5,
};
struct RkISP1Event {
RkISP1Operations op;
uint32 frame;
uint32 bufferId;
ControlList controls;
};
struct RkISP1Action {
RkISP1Operations op;
ControlList controls;
};
interface IPARkISP1Interface {
init(IPASettings settings) => (int32 ret);
start() => (int32 ret);
stop();
configure(CameraSensorInfo sensorInfo,
map<uint32, IPAStream> streamConfig,
map<uint32, ControlInfoMap> entityControls) => (int32 ret);
mapBuffers(array<IPABuffer> buffers);
unmapBuffers(array<uint32> ids);
[async] processEvent(RkISP1Event ev);
};
interface IPARkISP1EventInterface {
queueFrameAction(uint32 frame, RkISP1Action action);
};