ipa: vimc: Add Flags to parameters
For the purpose of testing serializing/deserializing Flags in function parameters, add an enum class TestFlags and Flags<TestFlags> to some function parameters, both for input and output and Signals. While at it, update the ipa_interface_test. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -17,8 +17,18 @@ enum IPAOperationCode {
|
||||
IPAOperationStop,
|
||||
};
|
||||
|
||||
[scopedEnum] enum TestFlag {
|
||||
Flag1 = 0x1,
|
||||
Flag2 = 0x2,
|
||||
Flag3 = 0x4,
|
||||
Flag4 = 0x8,
|
||||
};
|
||||
|
||||
interface IPAVimcInterface {
|
||||
init(libcamera.IPASettings settings, IPAOperationCode code) => (int32 ret);
|
||||
init(libcamera.IPASettings settings,
|
||||
IPAOperationCode code,
|
||||
[flags] TestFlag inFlags)
|
||||
=> (int32 ret, [flags] TestFlag outFlags);
|
||||
|
||||
configure(libcamera.IPACameraSensorInfo sensorInfo,
|
||||
map<uint32, libcamera.IPAStream> streamConfig,
|
||||
@@ -41,5 +51,5 @@ interface IPAVimcInterface {
|
||||
};
|
||||
|
||||
interface IPAVimcEventInterface {
|
||||
paramsBufferReady(uint32 bufferId);
|
||||
paramsBufferReady(uint32 bufferId, [flags] TestFlag flags);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user