Project import generated by Copybara.

GitOrigin-RevId: 19a829ffd755edb43e54d20c0e7b9348512d5108
This commit is contained in:
MediaPipe Team
2022-05-05 19:57:20 +00:00
committed by schmidt-sebastian
parent c6c80c3745
commit 7fb37c80e8
136 changed files with 2572 additions and 555 deletions
+7
View File
@@ -94,6 +94,7 @@ class PacketDataType(enum.Enum):
BOOL = 'bool'
BOOL_LIST = 'bool_list'
INT = 'int'
INT_LIST = 'int_list'
FLOAT = 'float'
FLOAT_LIST = 'float_list'
AUDIO = 'matrix'
@@ -123,6 +124,12 @@ NAME_TO_TYPE: Mapping[str, 'PacketDataType'] = {
PacketDataType.BOOL_LIST,
'int':
PacketDataType.INT,
'::std::vector<int>':
PacketDataType.INT_LIST,
'int64':
PacketDataType.INT,
'::std::vector<int64>':
PacketDataType.INT_LIST,
'float':
PacketDataType.FLOAT,
'::std::vector<float>':