hyperion.ng/libsrc/flatbufserver/hyperion_request.fbs
Markus 98654e48f6
Flatbuffer/Protobuf now able to receive rgba data (#1399)
* Flatbuffer/Protobuf now able to receive rgba data

* Proto/Flat schema comment added

* Prevent diveded by zero

* Address LGTM findings

* Fix EncoderThread & cleanup

Co-authored-by: LordGrey <lordgrey.emmel@gmail.com>
2022-01-09 17:23:50 +01:00

39 lines
553 B
Plaintext

namespace hyperionnet;
// A priority value of -1 clears all priorities
table Register {
origin:string (required);
priority:int;
}
table RawImage {
data:[ubyte];
width:int = -1;
height:int = -1;
}
union ImageType {RawImage}
// Either RGB or RGBA data can be transferred
table Image {
data:ImageType (required);
duration:int = -1;
}
table Clear {
priority:int;
}
table Color {
data:int = -1;
duration:int = -1;
}
union Command {Color, Image, Clear, Register}
table Request {
command:Command (required);
}
root_type Request;