Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions api/datatype.proto
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,26 @@ message AnnotatedTensor {
// e.g. pipeline latencies
map<string, google.protobuf.Value> metadata = 2;
}

enum PixelFormat {
kPixelFormatUnknown = 0;
kYUV420_888 = 1;
kRGB888 = 2;
kRGBA8888 = 3;
kGrayscale8 = 4;
kRAW10 = 5;
kRAW16 = 6;
kNV12 = 7;
kNV21 = 8;
}

message ImageFrame {
uint32 width = 1;
uint32 height = 2;
PixelFormat format = 3;
Comment thread
karls-science marked this conversation as resolved.
uint32 sample_rate_hz = 4;
uint64 sequence_number = 5;
uint64 timestamp_ns = 6;
uint64 unix_timestamp_ns = 7;
bytes data = 8;
}
1 change: 1 addition & 0 deletions api/device.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ message Peripheral {
kElectricalStimulation = 2;
kOpticalStimulation = 3;
kSpikeSource = 4;
kCamera = 5;
}
string name = 1;
string vendor = 2;
Expand Down
4 changes: 4 additions & 0 deletions api/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import "api/nodes/disk_writer.proto";
import "api/nodes/spike_source.proto";
import "api/nodes/spike_binner.proto";
import "api/nodes/application.proto";
import "api/nodes/camera.proto";

enum NodeType {
kNodeTypeUnknown = 0;
Expand All @@ -27,6 +28,7 @@ enum NodeType {
kDiskWriter = 9;
kSpikeBinner = 10;
kApplication = 11;
kCamera = 12;
}

message NodeConfig {
Expand All @@ -47,6 +49,7 @@ message NodeConfig {
SpikeSourceConfig spike_source = 12;
SpikeBinnerConfig spike_binner = 13;
ApplicationNodeConfig application = 14;
CameraConfig camera = 15;
}
}

Expand All @@ -63,6 +66,7 @@ message NodeStatus {
ApplicationNodeStatus application = 7;
OpticalStimulationStatus optical_stimulation = 8;
DiskWriterStatus disk_writer = 10;
CameraStatus camera = 11;
}
}

Expand Down
18 changes: 18 additions & 0 deletions api/nodes/camera.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";

package synapse;

import "api/datatype.proto";

message CameraConfig {
uint32 peripheral_id = 1;
uint32 width = 2;
uint32 height = 3;
PixelFormat format = 4;
uint32 frame_rate_hz = 5;
}

message CameraStatus {
uint64 frames_produced = 1;
uint64 frames_dropped = 2;
}
Loading