]> git.sesse.net Git - nageru/blob - futatabi/frame.proto
Make the MIDI play button blinking when something is ready to play, and solid when...
[nageru] / futatabi / frame.proto
1 syntax = "proto3";
2
3 // Used as header before each frame in a .frames file:
4 //
5 //  1. "Ftbifrm0" (8 bytes, ASCII -- note that no byte repeats)
6 //  2. Length of upcoming FrameHeaderProto (uint32, binary, big endian)
7 //  3. The FrameHeaderProto itself
8 //  4. The actual frame
9
10 message FrameHeaderProto {
11         int32 stream_idx = 1;
12         int64 pts = 2;
13         int64 file_size = 3;  // In bytes of compressed frame. TODO: rename to size.
14 }
15
16 message StreamContentsProto {
17         int32 stream_idx = 1;
18         repeated int64 pts = 2 [packed=true];
19         repeated int64 file_size = 3 [packed=true];
20         repeated int64 offset = 4 [packed=true];
21 }
22
23 message FileContentsProto {
24         repeated StreamContentsProto stream = 1;  // Typically only one.
25 }