livekit 1.2.1__py3-none-win_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. livekit/rtc/__init__.py +264 -0
  2. livekit/rtc/_ffi_client.py +321 -0
  3. livekit/rtc/_proto/__init__.py +0 -0
  4. livekit/rtc/_proto/audio_frame_pb2.py +159 -0
  5. livekit/rtc/_proto/audio_frame_pb2.pyi +1560 -0
  6. livekit/rtc/_proto/capture_pb2.py +70 -0
  7. livekit/rtc/_proto/capture_pb2.pyi +559 -0
  8. livekit/rtc/_proto/data_stream_pb2.py +171 -0
  9. livekit/rtc/_proto/data_stream_pb2.pyi +1498 -0
  10. livekit/rtc/_proto/data_track_pb2.py +120 -0
  11. livekit/rtc/_proto/data_track_pb2.pyi +1073 -0
  12. livekit/rtc/_proto/e2ee_pb2.py +81 -0
  13. livekit/rtc/_proto/e2ee_pb2.pyi +591 -0
  14. livekit/rtc/_proto/ffi_pb2.py +55 -0
  15. livekit/rtc/_proto/ffi_pb2.pyi +1246 -0
  16. livekit/rtc/_proto/handle_pb2.py +27 -0
  17. livekit/rtc/_proto/handle_pb2.pyi +51 -0
  18. livekit/rtc/_proto/participant_pb2.py +45 -0
  19. livekit/rtc/_proto/participant_pb2.pyi +313 -0
  20. livekit/rtc/_proto/room_pb2.py +311 -0
  21. livekit/rtc/_proto/room_pb2.pyi +3136 -0
  22. livekit/rtc/_proto/rpc_pb2.py +47 -0
  23. livekit/rtc/_proto/rpc_pb2.pyi +261 -0
  24. livekit/rtc/_proto/stats_pb2.py +123 -0
  25. livekit/rtc/_proto/stats_pb2.pyi +1514 -0
  26. livekit/rtc/_proto/track_pb2.py +76 -0
  27. livekit/rtc/_proto/track_pb2.pyi +544 -0
  28. livekit/rtc/_proto/track_publication_pb2.py +39 -0
  29. livekit/rtc/_proto/track_publication_pb2.pyi +145 -0
  30. livekit/rtc/_proto/video_frame_pb2.py +97 -0
  31. livekit/rtc/_proto/video_frame_pb2.pyi +838 -0
  32. livekit/rtc/_utils.py +187 -0
  33. livekit/rtc/apm.py +119 -0
  34. livekit/rtc/audio_filter.py +23 -0
  35. livekit/rtc/audio_frame.py +242 -0
  36. livekit/rtc/audio_mixer.py +247 -0
  37. livekit/rtc/audio_resampler.py +174 -0
  38. livekit/rtc/audio_source.py +191 -0
  39. livekit/rtc/audio_stream.py +354 -0
  40. livekit/rtc/data_stream.py +640 -0
  41. livekit/rtc/data_track.py +296 -0
  42. livekit/rtc/e2ee.py +320 -0
  43. livekit/rtc/encoded_video.py +127 -0
  44. livekit/rtc/event_emitter.py +215 -0
  45. livekit/rtc/frame_processor.py +37 -0
  46. livekit/rtc/jupyter.py +68 -0
  47. livekit/rtc/log.py +3 -0
  48. livekit/rtc/media_devices.py +596 -0
  49. livekit/rtc/participant.py +1171 -0
  50. livekit/rtc/platform_audio.py +426 -0
  51. livekit/rtc/py.typed +0 -0
  52. livekit/rtc/resources/LICENSE.md +4055 -0
  53. livekit/rtc/resources/__init__.py +1 -0
  54. livekit/rtc/resources/jupyter-html/index.html +101 -0
  55. livekit/rtc/resources/livekit_ffi.dll +0 -0
  56. livekit/rtc/resources/livekit_ffi.h +42 -0
  57. livekit/rtc/room.py +1304 -0
  58. livekit/rtc/rpc.py +244 -0
  59. livekit/rtc/synchronizer.py +202 -0
  60. livekit/rtc/track.py +264 -0
  61. livekit/rtc/track_publication.py +145 -0
  62. livekit/rtc/transcription.py +19 -0
  63. livekit/rtc/utils.py +138 -0
  64. livekit/rtc/version.py +1 -0
  65. livekit/rtc/video_frame.py +347 -0
  66. livekit/rtc/video_source.py +74 -0
  67. livekit/rtc/video_stream.py +191 -0
  68. livekit-1.2.1.dist-info/METADATA +80 -0
  69. livekit-1.2.1.dist-info/RECORD +71 -0
  70. livekit-1.2.1.dist-info/WHEEL +5 -0
  71. livekit-1.2.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,838 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ Copyright 2025 LiveKit, Inc.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ """
18
+
19
+ import builtins
20
+ import collections.abc
21
+ import google.protobuf.descriptor
22
+ import google.protobuf.internal.containers
23
+ import google.protobuf.internal.enum_type_wrapper
24
+ import google.protobuf.message
25
+ from . import handle_pb2
26
+ import sys
27
+ from . import track_pb2
28
+ import typing
29
+
30
+ if sys.version_info >= (3, 10):
31
+ import typing as typing_extensions
32
+ else:
33
+ import typing_extensions
34
+
35
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
36
+
37
+ class _VideoCodec:
38
+ ValueType = typing.NewType("ValueType", builtins.int)
39
+ V: typing_extensions.TypeAlias = ValueType
40
+
41
+ class _VideoCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoCodec.ValueType], builtins.type):
42
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
43
+ VP8: _VideoCodec.ValueType # 0
44
+ H264: _VideoCodec.ValueType # 1
45
+ AV1: _VideoCodec.ValueType # 2
46
+ VP9: _VideoCodec.ValueType # 3
47
+ H265: _VideoCodec.ValueType # 4
48
+
49
+ class VideoCodec(_VideoCodec, metaclass=_VideoCodecEnumTypeWrapper): ...
50
+
51
+ VP8: VideoCodec.ValueType # 0
52
+ H264: VideoCodec.ValueType # 1
53
+ AV1: VideoCodec.ValueType # 2
54
+ VP9: VideoCodec.ValueType # 3
55
+ H265: VideoCodec.ValueType # 4
56
+ global___VideoCodec = VideoCodec
57
+
58
+ class _EncodedFrameType:
59
+ ValueType = typing.NewType("ValueType", builtins.int)
60
+ V: typing_extensions.TypeAlias = ValueType
61
+
62
+ class _EncodedFrameTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncodedFrameType.ValueType], builtins.type):
63
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
64
+ ENCODED_FRAME_KEY: _EncodedFrameType.ValueType # 0
65
+ ENCODED_FRAME_DELTA: _EncodedFrameType.ValueType # 1
66
+
67
+ class EncodedFrameType(_EncodedFrameType, metaclass=_EncodedFrameTypeEnumTypeWrapper): ...
68
+
69
+ ENCODED_FRAME_KEY: EncodedFrameType.ValueType # 0
70
+ ENCODED_FRAME_DELTA: EncodedFrameType.ValueType # 1
71
+ global___EncodedFrameType = EncodedFrameType
72
+
73
+ class _VideoRotation:
74
+ ValueType = typing.NewType("ValueType", builtins.int)
75
+ V: typing_extensions.TypeAlias = ValueType
76
+
77
+ class _VideoRotationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoRotation.ValueType], builtins.type):
78
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
79
+ VIDEO_ROTATION_0: _VideoRotation.ValueType # 0
80
+ VIDEO_ROTATION_90: _VideoRotation.ValueType # 1
81
+ VIDEO_ROTATION_180: _VideoRotation.ValueType # 2
82
+ VIDEO_ROTATION_270: _VideoRotation.ValueType # 3
83
+
84
+ class VideoRotation(_VideoRotation, metaclass=_VideoRotationEnumTypeWrapper): ...
85
+
86
+ VIDEO_ROTATION_0: VideoRotation.ValueType # 0
87
+ VIDEO_ROTATION_90: VideoRotation.ValueType # 1
88
+ VIDEO_ROTATION_180: VideoRotation.ValueType # 2
89
+ VIDEO_ROTATION_270: VideoRotation.ValueType # 3
90
+ global___VideoRotation = VideoRotation
91
+
92
+ class _VideoBufferType:
93
+ ValueType = typing.NewType("ValueType", builtins.int)
94
+ V: typing_extensions.TypeAlias = ValueType
95
+
96
+ class _VideoBufferTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoBufferType.ValueType], builtins.type):
97
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
98
+ RGBA: _VideoBufferType.ValueType # 0
99
+ ABGR: _VideoBufferType.ValueType # 1
100
+ ARGB: _VideoBufferType.ValueType # 2
101
+ BGRA: _VideoBufferType.ValueType # 3
102
+ RGB24: _VideoBufferType.ValueType # 4
103
+ I420: _VideoBufferType.ValueType # 5
104
+ I420A: _VideoBufferType.ValueType # 6
105
+ I422: _VideoBufferType.ValueType # 7
106
+ I444: _VideoBufferType.ValueType # 8
107
+ I010: _VideoBufferType.ValueType # 9
108
+ NV12: _VideoBufferType.ValueType # 10
109
+
110
+ class VideoBufferType(_VideoBufferType, metaclass=_VideoBufferTypeEnumTypeWrapper):
111
+ """Values of this enum must not be changed
112
+ It is used to serialize a rtc.VideoFrame on Python
113
+ """
114
+
115
+ RGBA: VideoBufferType.ValueType # 0
116
+ ABGR: VideoBufferType.ValueType # 1
117
+ ARGB: VideoBufferType.ValueType # 2
118
+ BGRA: VideoBufferType.ValueType # 3
119
+ RGB24: VideoBufferType.ValueType # 4
120
+ I420: VideoBufferType.ValueType # 5
121
+ I420A: VideoBufferType.ValueType # 6
122
+ I422: VideoBufferType.ValueType # 7
123
+ I444: VideoBufferType.ValueType # 8
124
+ I010: VideoBufferType.ValueType # 9
125
+ NV12: VideoBufferType.ValueType # 10
126
+ global___VideoBufferType = VideoBufferType
127
+
128
+ class _VideoStreamType:
129
+ ValueType = typing.NewType("ValueType", builtins.int)
130
+ V: typing_extensions.TypeAlias = ValueType
131
+
132
+ class _VideoStreamTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoStreamType.ValueType], builtins.type):
133
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
134
+ VIDEO_STREAM_NATIVE: _VideoStreamType.ValueType # 0
135
+ VIDEO_STREAM_WEBGL: _VideoStreamType.ValueType # 1
136
+ VIDEO_STREAM_HTML: _VideoStreamType.ValueType # 2
137
+
138
+ class VideoStreamType(_VideoStreamType, metaclass=_VideoStreamTypeEnumTypeWrapper):
139
+ """
140
+ VideoStream
141
+ """
142
+
143
+ VIDEO_STREAM_NATIVE: VideoStreamType.ValueType # 0
144
+ VIDEO_STREAM_WEBGL: VideoStreamType.ValueType # 1
145
+ VIDEO_STREAM_HTML: VideoStreamType.ValueType # 2
146
+ global___VideoStreamType = VideoStreamType
147
+
148
+ class _VideoSourceType:
149
+ ValueType = typing.NewType("ValueType", builtins.int)
150
+ V: typing_extensions.TypeAlias = ValueType
151
+
152
+ class _VideoSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoSourceType.ValueType], builtins.type):
153
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
154
+ VIDEO_SOURCE_NATIVE: _VideoSourceType.ValueType # 0
155
+ VIDEO_SOURCE_ENCODED: _VideoSourceType.ValueType # 1
156
+
157
+ class VideoSourceType(_VideoSourceType, metaclass=_VideoSourceTypeEnumTypeWrapper): ...
158
+
159
+ VIDEO_SOURCE_NATIVE: VideoSourceType.ValueType # 0
160
+ VIDEO_SOURCE_ENCODED: VideoSourceType.ValueType # 1
161
+ global___VideoSourceType = VideoSourceType
162
+
163
+ @typing.final
164
+ class NewVideoStreamRequest(google.protobuf.message.Message):
165
+ """Create a new VideoStream
166
+ VideoStream is used to receive video frames from a track
167
+ """
168
+
169
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
170
+
171
+ TRACK_HANDLE_FIELD_NUMBER: builtins.int
172
+ TYPE_FIELD_NUMBER: builtins.int
173
+ FORMAT_FIELD_NUMBER: builtins.int
174
+ NORMALIZE_STRIDE_FIELD_NUMBER: builtins.int
175
+ QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int
176
+ track_handle: builtins.int
177
+ type: global___VideoStreamType.ValueType
178
+ format: global___VideoBufferType.ValueType
179
+ """Get the frame on a specific format"""
180
+ normalize_stride: builtins.bool
181
+ """if true, stride will be set to width/chroma_width"""
182
+ queue_size_frames: builtins.int
183
+ """Maximum number of queued WebRTC sink frames on the receive path. Omit this
184
+ field to use the default bounded queue size of 1 frame. Set it to 0 to
185
+ request unbounded buffering.
186
+
187
+ If your application consumes both audio and video, keep the queue sizing
188
+ strategy coordinated across both streams. Using a much larger queue, or
189
+ unbounded buffering, for only one of them can increase end-to-end latency
190
+ for that stream and cause audio/video drift.
191
+ """
192
+ def __init__(
193
+ self,
194
+ *,
195
+ track_handle: builtins.int | None = ...,
196
+ type: global___VideoStreamType.ValueType | None = ...,
197
+ format: global___VideoBufferType.ValueType | None = ...,
198
+ normalize_stride: builtins.bool | None = ...,
199
+ queue_size_frames: builtins.int | None = ...,
200
+ ) -> None: ...
201
+ def HasField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"]) -> builtins.bool: ...
202
+ def ClearField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "queue_size_frames", b"queue_size_frames", "track_handle", b"track_handle", "type", b"type"]) -> None: ...
203
+
204
+ global___NewVideoStreamRequest = NewVideoStreamRequest
205
+
206
+ @typing.final
207
+ class NewVideoStreamResponse(google.protobuf.message.Message):
208
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
209
+
210
+ STREAM_FIELD_NUMBER: builtins.int
211
+ @property
212
+ def stream(self) -> global___OwnedVideoStream: ...
213
+ def __init__(
214
+ self,
215
+ *,
216
+ stream: global___OwnedVideoStream | None = ...,
217
+ ) -> None: ...
218
+ def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ...
219
+ def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ...
220
+
221
+ global___NewVideoStreamResponse = NewVideoStreamResponse
222
+
223
+ @typing.final
224
+ class VideoStreamFromParticipantRequest(google.protobuf.message.Message):
225
+ """Request a video stream from a participant"""
226
+
227
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
228
+
229
+ PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int
230
+ TYPE_FIELD_NUMBER: builtins.int
231
+ TRACK_SOURCE_FIELD_NUMBER: builtins.int
232
+ FORMAT_FIELD_NUMBER: builtins.int
233
+ NORMALIZE_STRIDE_FIELD_NUMBER: builtins.int
234
+ QUEUE_SIZE_FRAMES_FIELD_NUMBER: builtins.int
235
+ participant_handle: builtins.int
236
+ type: global___VideoStreamType.ValueType
237
+ track_source: track_pb2.TrackSource.ValueType
238
+ format: global___VideoBufferType.ValueType
239
+ normalize_stride: builtins.bool
240
+ queue_size_frames: builtins.int
241
+ """Maximum number of queued WebRTC sink frames on the receive path. Omit this
242
+ field to use the default bounded queue size of 1 frame. Set it to 0 to
243
+ request unbounded buffering.
244
+
245
+ If your application consumes both audio and video, keep the queue sizing
246
+ strategy coordinated across both streams. Using a much larger queue, or
247
+ unbounded buffering, for only one of them can increase end-to-end latency
248
+ for that stream and cause audio/video drift.
249
+ """
250
+ def __init__(
251
+ self,
252
+ *,
253
+ participant_handle: builtins.int | None = ...,
254
+ type: global___VideoStreamType.ValueType | None = ...,
255
+ track_source: track_pb2.TrackSource.ValueType | None = ...,
256
+ format: global___VideoBufferType.ValueType | None = ...,
257
+ normalize_stride: builtins.bool | None = ...,
258
+ queue_size_frames: builtins.int | None = ...,
259
+ ) -> None: ...
260
+ def HasField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"]) -> builtins.bool: ...
261
+ def ClearField(self, field_name: typing.Literal["format", b"format", "normalize_stride", b"normalize_stride", "participant_handle", b"participant_handle", "queue_size_frames", b"queue_size_frames", "track_source", b"track_source", "type", b"type"]) -> None: ...
262
+
263
+ global___VideoStreamFromParticipantRequest = VideoStreamFromParticipantRequest
264
+
265
+ @typing.final
266
+ class VideoStreamFromParticipantResponse(google.protobuf.message.Message):
267
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
268
+
269
+ STREAM_FIELD_NUMBER: builtins.int
270
+ @property
271
+ def stream(self) -> global___OwnedVideoStream: ...
272
+ def __init__(
273
+ self,
274
+ *,
275
+ stream: global___OwnedVideoStream | None = ...,
276
+ ) -> None: ...
277
+ def HasField(self, field_name: typing.Literal["stream", b"stream"]) -> builtins.bool: ...
278
+ def ClearField(self, field_name: typing.Literal["stream", b"stream"]) -> None: ...
279
+
280
+ global___VideoStreamFromParticipantResponse = VideoStreamFromParticipantResponse
281
+
282
+ @typing.final
283
+ class NewVideoSourceRequest(google.protobuf.message.Message):
284
+ """Create a new VideoSource
285
+ VideoSource is used to send video frame to a track
286
+ """
287
+
288
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
289
+
290
+ TYPE_FIELD_NUMBER: builtins.int
291
+ RESOLUTION_FIELD_NUMBER: builtins.int
292
+ IS_SCREENCAST_FIELD_NUMBER: builtins.int
293
+ type: global___VideoSourceType.ValueType
294
+ is_screencast: builtins.bool
295
+ @property
296
+ def resolution(self) -> global___VideoSourceResolution:
297
+ """Used to determine which encodings to use + simulcast layers
298
+ Most of the time it corresponds to the source resolution
299
+ """
300
+
301
+ def __init__(
302
+ self,
303
+ *,
304
+ type: global___VideoSourceType.ValueType | None = ...,
305
+ resolution: global___VideoSourceResolution | None = ...,
306
+ is_screencast: builtins.bool | None = ...,
307
+ ) -> None: ...
308
+ def HasField(self, field_name: typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"]) -> builtins.bool: ...
309
+ def ClearField(self, field_name: typing.Literal["is_screencast", b"is_screencast", "resolution", b"resolution", "type", b"type"]) -> None: ...
310
+
311
+ global___NewVideoSourceRequest = NewVideoSourceRequest
312
+
313
+ @typing.final
314
+ class NewVideoSourceResponse(google.protobuf.message.Message):
315
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
316
+
317
+ SOURCE_FIELD_NUMBER: builtins.int
318
+ @property
319
+ def source(self) -> global___OwnedVideoSource: ...
320
+ def __init__(
321
+ self,
322
+ *,
323
+ source: global___OwnedVideoSource | None = ...,
324
+ ) -> None: ...
325
+ def HasField(self, field_name: typing.Literal["source", b"source"]) -> builtins.bool: ...
326
+ def ClearField(self, field_name: typing.Literal["source", b"source"]) -> None: ...
327
+
328
+ global___NewVideoSourceResponse = NewVideoSourceResponse
329
+
330
+ @typing.final
331
+ class CaptureVideoFrameRequest(google.protobuf.message.Message):
332
+ """Push a frame to a VideoSource"""
333
+
334
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
335
+
336
+ SOURCE_HANDLE_FIELD_NUMBER: builtins.int
337
+ BUFFER_FIELD_NUMBER: builtins.int
338
+ TIMESTAMP_US_FIELD_NUMBER: builtins.int
339
+ ROTATION_FIELD_NUMBER: builtins.int
340
+ METADATA_FIELD_NUMBER: builtins.int
341
+ source_handle: builtins.int
342
+ timestamp_us: builtins.int
343
+ """In microseconds"""
344
+ rotation: global___VideoRotation.ValueType
345
+ @property
346
+ def buffer(self) -> global___VideoBufferInfo: ...
347
+ @property
348
+ def metadata(self) -> global___FrameMetadata: ...
349
+ def __init__(
350
+ self,
351
+ *,
352
+ source_handle: builtins.int | None = ...,
353
+ buffer: global___VideoBufferInfo | None = ...,
354
+ timestamp_us: builtins.int | None = ...,
355
+ rotation: global___VideoRotation.ValueType | None = ...,
356
+ metadata: global___FrameMetadata | None = ...,
357
+ ) -> None: ...
358
+ def HasField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"]) -> builtins.bool: ...
359
+ def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us"]) -> None: ...
360
+
361
+ global___CaptureVideoFrameRequest = CaptureVideoFrameRequest
362
+
363
+ @typing.final
364
+ class CaptureVideoFrameResponse(google.protobuf.message.Message):
365
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
366
+
367
+ def __init__(
368
+ self,
369
+ ) -> None: ...
370
+
371
+ global___CaptureVideoFrameResponse = CaptureVideoFrameResponse
372
+
373
+ @typing.final
374
+ class EncodedVideoBufferInfo(google.protobuf.message.Message):
375
+ """Foreign-memory buffer containing one encoded video access unit.
376
+ The payload pointer only needs to remain valid for the duration of the
377
+ synchronous FFI request; the native implementation copies it before
378
+ returning.
379
+ """
380
+
381
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
382
+
383
+ DATA_PTR_FIELD_NUMBER: builtins.int
384
+ DATA_LEN_FIELD_NUMBER: builtins.int
385
+ data_ptr: builtins.int
386
+ data_len: builtins.int
387
+ def __init__(
388
+ self,
389
+ *,
390
+ data_ptr: builtins.int | None = ...,
391
+ data_len: builtins.int | None = ...,
392
+ ) -> None: ...
393
+ def HasField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"]) -> builtins.bool: ...
394
+ def ClearField(self, field_name: typing.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"]) -> None: ...
395
+
396
+ global___EncodedVideoBufferInfo = EncodedVideoBufferInfo
397
+
398
+ @typing.final
399
+ class CaptureEncodedVideoFrameRequest(google.protobuf.message.Message):
400
+ """Push one complete pre-encoded access unit to an encoded VideoSource."""
401
+
402
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
403
+
404
+ SOURCE_HANDLE_FIELD_NUMBER: builtins.int
405
+ BUFFER_FIELD_NUMBER: builtins.int
406
+ CODEC_FIELD_NUMBER: builtins.int
407
+ FRAME_TYPE_FIELD_NUMBER: builtins.int
408
+ WIDTH_FIELD_NUMBER: builtins.int
409
+ HEIGHT_FIELD_NUMBER: builtins.int
410
+ TIMESTAMP_US_FIELD_NUMBER: builtins.int
411
+ METADATA_FIELD_NUMBER: builtins.int
412
+ source_handle: builtins.int
413
+ codec: global___VideoCodec.ValueType
414
+ frame_type: global___EncodedFrameType.ValueType
415
+ width: builtins.int
416
+ height: builtins.int
417
+ timestamp_us: builtins.int
418
+ @property
419
+ def buffer(self) -> global___EncodedVideoBufferInfo: ...
420
+ @property
421
+ def metadata(self) -> global___FrameMetadata: ...
422
+ def __init__(
423
+ self,
424
+ *,
425
+ source_handle: builtins.int | None = ...,
426
+ buffer: global___EncodedVideoBufferInfo | None = ...,
427
+ codec: global___VideoCodec.ValueType | None = ...,
428
+ frame_type: global___EncodedFrameType.ValueType | None = ...,
429
+ width: builtins.int | None = ...,
430
+ height: builtins.int | None = ...,
431
+ timestamp_us: builtins.int | None = ...,
432
+ metadata: global___FrameMetadata | None = ...,
433
+ ) -> None: ...
434
+ def HasField(self, field_name: typing.Literal["buffer", b"buffer", "codec", b"codec", "frame_type", b"frame_type", "height", b"height", "metadata", b"metadata", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us", "width", b"width"]) -> builtins.bool: ...
435
+ def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "codec", b"codec", "frame_type", b"frame_type", "height", b"height", "metadata", b"metadata", "source_handle", b"source_handle", "timestamp_us", b"timestamp_us", "width", b"width"]) -> None: ...
436
+
437
+ global___CaptureEncodedVideoFrameRequest = CaptureEncodedVideoFrameRequest
438
+
439
+ @typing.final
440
+ class CaptureEncodedVideoFrameResponse(google.protobuf.message.Message):
441
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
442
+
443
+ ACCEPTED_FIELD_NUMBER: builtins.int
444
+ accepted: builtins.bool
445
+ def __init__(
446
+ self,
447
+ *,
448
+ accepted: builtins.bool | None = ...,
449
+ ) -> None: ...
450
+ def HasField(self, field_name: typing.Literal["accepted", b"accepted"]) -> builtins.bool: ...
451
+ def ClearField(self, field_name: typing.Literal["accepted", b"accepted"]) -> None: ...
452
+
453
+ global___CaptureEncodedVideoFrameResponse = CaptureEncodedVideoFrameResponse
454
+
455
+ @typing.final
456
+ class TakeEncodedVideoSourceFeedbackRequest(google.protobuf.message.Message):
457
+ """Consumes feedback accumulated by the pre-encoded passthrough encoder since
458
+ the previous call.
459
+ """
460
+
461
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
462
+
463
+ SOURCE_HANDLE_FIELD_NUMBER: builtins.int
464
+ source_handle: builtins.int
465
+ def __init__(
466
+ self,
467
+ *,
468
+ source_handle: builtins.int | None = ...,
469
+ ) -> None: ...
470
+ def HasField(self, field_name: typing.Literal["source_handle", b"source_handle"]) -> builtins.bool: ...
471
+ def ClearField(self, field_name: typing.Literal["source_handle", b"source_handle"]) -> None: ...
472
+
473
+ global___TakeEncodedVideoSourceFeedbackRequest = TakeEncodedVideoSourceFeedbackRequest
474
+
475
+ @typing.final
476
+ class EncodedRateControl(google.protobuf.message.Message):
477
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
478
+
479
+ TARGET_BITRATE_BPS_FIELD_NUMBER: builtins.int
480
+ FRAMERATE_FPS_FIELD_NUMBER: builtins.int
481
+ target_bitrate_bps: builtins.int
482
+ framerate_fps: builtins.float
483
+ def __init__(
484
+ self,
485
+ *,
486
+ target_bitrate_bps: builtins.int | None = ...,
487
+ framerate_fps: builtins.float | None = ...,
488
+ ) -> None: ...
489
+ def HasField(self, field_name: typing.Literal["framerate_fps", b"framerate_fps", "target_bitrate_bps", b"target_bitrate_bps"]) -> builtins.bool: ...
490
+ def ClearField(self, field_name: typing.Literal["framerate_fps", b"framerate_fps", "target_bitrate_bps", b"target_bitrate_bps"]) -> None: ...
491
+
492
+ global___EncodedRateControl = EncodedRateControl
493
+
494
+ @typing.final
495
+ class TakeEncodedVideoSourceFeedbackResponse(google.protobuf.message.Message):
496
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
497
+
498
+ KEYFRAME_REQUESTED_FIELD_NUMBER: builtins.int
499
+ RATE_CONTROL_FIELD_NUMBER: builtins.int
500
+ keyframe_requested: builtins.bool
501
+ @property
502
+ def rate_control(self) -> global___EncodedRateControl: ...
503
+ def __init__(
504
+ self,
505
+ *,
506
+ keyframe_requested: builtins.bool | None = ...,
507
+ rate_control: global___EncodedRateControl | None = ...,
508
+ ) -> None: ...
509
+ def HasField(self, field_name: typing.Literal["keyframe_requested", b"keyframe_requested", "rate_control", b"rate_control"]) -> builtins.bool: ...
510
+ def ClearField(self, field_name: typing.Literal["keyframe_requested", b"keyframe_requested", "rate_control", b"rate_control"]) -> None: ...
511
+
512
+ global___TakeEncodedVideoSourceFeedbackResponse = TakeEncodedVideoSourceFeedbackResponse
513
+
514
+ @typing.final
515
+ class VideoConvertRequest(google.protobuf.message.Message):
516
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
517
+
518
+ FLIP_Y_FIELD_NUMBER: builtins.int
519
+ BUFFER_FIELD_NUMBER: builtins.int
520
+ DST_TYPE_FIELD_NUMBER: builtins.int
521
+ flip_y: builtins.bool
522
+ dst_type: global___VideoBufferType.ValueType
523
+ @property
524
+ def buffer(self) -> global___VideoBufferInfo: ...
525
+ def __init__(
526
+ self,
527
+ *,
528
+ flip_y: builtins.bool | None = ...,
529
+ buffer: global___VideoBufferInfo | None = ...,
530
+ dst_type: global___VideoBufferType.ValueType | None = ...,
531
+ ) -> None: ...
532
+ def HasField(self, field_name: typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"]) -> builtins.bool: ...
533
+ def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "dst_type", b"dst_type", "flip_y", b"flip_y"]) -> None: ...
534
+
535
+ global___VideoConvertRequest = VideoConvertRequest
536
+
537
+ @typing.final
538
+ class VideoConvertResponse(google.protobuf.message.Message):
539
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
540
+
541
+ ERROR_FIELD_NUMBER: builtins.int
542
+ BUFFER_FIELD_NUMBER: builtins.int
543
+ error: builtins.str
544
+ @property
545
+ def buffer(self) -> global___OwnedVideoBuffer: ...
546
+ def __init__(
547
+ self,
548
+ *,
549
+ error: builtins.str | None = ...,
550
+ buffer: global___OwnedVideoBuffer | None = ...,
551
+ ) -> None: ...
552
+ def HasField(self, field_name: typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"]) -> builtins.bool: ...
553
+ def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "error", b"error", "message", b"message"]) -> None: ...
554
+ def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["error", "buffer"] | None: ...
555
+
556
+ global___VideoConvertResponse = VideoConvertResponse
557
+
558
+ @typing.final
559
+ class VideoResolution(google.protobuf.message.Message):
560
+ """
561
+ VideoFrame buffers
562
+ """
563
+
564
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
565
+
566
+ WIDTH_FIELD_NUMBER: builtins.int
567
+ HEIGHT_FIELD_NUMBER: builtins.int
568
+ FRAME_RATE_FIELD_NUMBER: builtins.int
569
+ width: builtins.int
570
+ height: builtins.int
571
+ frame_rate: builtins.float
572
+ def __init__(
573
+ self,
574
+ *,
575
+ width: builtins.int | None = ...,
576
+ height: builtins.int | None = ...,
577
+ frame_rate: builtins.float | None = ...,
578
+ ) -> None: ...
579
+ def HasField(self, field_name: typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"]) -> builtins.bool: ...
580
+ def ClearField(self, field_name: typing.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"]) -> None: ...
581
+
582
+ global___VideoResolution = VideoResolution
583
+
584
+ @typing.final
585
+ class VideoBufferInfo(google.protobuf.message.Message):
586
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
587
+
588
+ @typing.final
589
+ class ComponentInfo(google.protobuf.message.Message):
590
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
591
+
592
+ DATA_PTR_FIELD_NUMBER: builtins.int
593
+ STRIDE_FIELD_NUMBER: builtins.int
594
+ SIZE_FIELD_NUMBER: builtins.int
595
+ data_ptr: builtins.int
596
+ stride: builtins.int
597
+ size: builtins.int
598
+ def __init__(
599
+ self,
600
+ *,
601
+ data_ptr: builtins.int | None = ...,
602
+ stride: builtins.int | None = ...,
603
+ size: builtins.int | None = ...,
604
+ ) -> None: ...
605
+ def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"]) -> builtins.bool: ...
606
+ def ClearField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "size", b"size", "stride", b"stride"]) -> None: ...
607
+
608
+ TYPE_FIELD_NUMBER: builtins.int
609
+ WIDTH_FIELD_NUMBER: builtins.int
610
+ HEIGHT_FIELD_NUMBER: builtins.int
611
+ DATA_PTR_FIELD_NUMBER: builtins.int
612
+ STRIDE_FIELD_NUMBER: builtins.int
613
+ COMPONENTS_FIELD_NUMBER: builtins.int
614
+ type: global___VideoBufferType.ValueType
615
+ width: builtins.int
616
+ height: builtins.int
617
+ data_ptr: builtins.int
618
+ stride: builtins.int
619
+ """only for packed formats"""
620
+ @property
621
+ def components(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VideoBufferInfo.ComponentInfo]: ...
622
+ def __init__(
623
+ self,
624
+ *,
625
+ type: global___VideoBufferType.ValueType | None = ...,
626
+ width: builtins.int | None = ...,
627
+ height: builtins.int | None = ...,
628
+ data_ptr: builtins.int | None = ...,
629
+ stride: builtins.int | None = ...,
630
+ components: collections.abc.Iterable[global___VideoBufferInfo.ComponentInfo] | None = ...,
631
+ ) -> None: ...
632
+ def HasField(self, field_name: typing.Literal["data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"]) -> builtins.bool: ...
633
+ def ClearField(self, field_name: typing.Literal["components", b"components", "data_ptr", b"data_ptr", "height", b"height", "stride", b"stride", "type", b"type", "width", b"width"]) -> None: ...
634
+
635
+ global___VideoBufferInfo = VideoBufferInfo
636
+
637
+ @typing.final
638
+ class OwnedVideoBuffer(google.protobuf.message.Message):
639
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
640
+
641
+ HANDLE_FIELD_NUMBER: builtins.int
642
+ INFO_FIELD_NUMBER: builtins.int
643
+ @property
644
+ def handle(self) -> handle_pb2.FfiOwnedHandle: ...
645
+ @property
646
+ def info(self) -> global___VideoBufferInfo: ...
647
+ def __init__(
648
+ self,
649
+ *,
650
+ handle: handle_pb2.FfiOwnedHandle | None = ...,
651
+ info: global___VideoBufferInfo | None = ...,
652
+ ) -> None: ...
653
+ def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ...
654
+ def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ...
655
+
656
+ global___OwnedVideoBuffer = OwnedVideoBuffer
657
+
658
+ @typing.final
659
+ class FrameMetadata(google.protobuf.message.Message):
660
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
661
+
662
+ USER_TIMESTAMP_FIELD_NUMBER: builtins.int
663
+ FRAME_ID_FIELD_NUMBER: builtins.int
664
+ USER_DATA_FIELD_NUMBER: builtins.int
665
+ user_timestamp: builtins.int
666
+ frame_id: builtins.int
667
+ user_data: builtins.bytes
668
+ def __init__(
669
+ self,
670
+ *,
671
+ user_timestamp: builtins.int | None = ...,
672
+ frame_id: builtins.int | None = ...,
673
+ user_data: builtins.bytes | None = ...,
674
+ ) -> None: ...
675
+ def HasField(self, field_name: typing.Literal["frame_id", b"frame_id", "user_data", b"user_data", "user_timestamp", b"user_timestamp"]) -> builtins.bool: ...
676
+ def ClearField(self, field_name: typing.Literal["frame_id", b"frame_id", "user_data", b"user_data", "user_timestamp", b"user_timestamp"]) -> None: ...
677
+
678
+ global___FrameMetadata = FrameMetadata
679
+
680
+ @typing.final
681
+ class VideoStreamInfo(google.protobuf.message.Message):
682
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
683
+
684
+ TYPE_FIELD_NUMBER: builtins.int
685
+ type: global___VideoStreamType.ValueType
686
+ def __init__(
687
+ self,
688
+ *,
689
+ type: global___VideoStreamType.ValueType | None = ...,
690
+ ) -> None: ...
691
+ def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ...
692
+ def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ...
693
+
694
+ global___VideoStreamInfo = VideoStreamInfo
695
+
696
+ @typing.final
697
+ class OwnedVideoStream(google.protobuf.message.Message):
698
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
699
+
700
+ HANDLE_FIELD_NUMBER: builtins.int
701
+ INFO_FIELD_NUMBER: builtins.int
702
+ @property
703
+ def handle(self) -> handle_pb2.FfiOwnedHandle: ...
704
+ @property
705
+ def info(self) -> global___VideoStreamInfo: ...
706
+ def __init__(
707
+ self,
708
+ *,
709
+ handle: handle_pb2.FfiOwnedHandle | None = ...,
710
+ info: global___VideoStreamInfo | None = ...,
711
+ ) -> None: ...
712
+ def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ...
713
+ def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ...
714
+
715
+ global___OwnedVideoStream = OwnedVideoStream
716
+
717
+ @typing.final
718
+ class VideoStreamEvent(google.protobuf.message.Message):
719
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
720
+
721
+ STREAM_HANDLE_FIELD_NUMBER: builtins.int
722
+ FRAME_RECEIVED_FIELD_NUMBER: builtins.int
723
+ EOS_FIELD_NUMBER: builtins.int
724
+ stream_handle: builtins.int
725
+ @property
726
+ def frame_received(self) -> global___VideoFrameReceived: ...
727
+ @property
728
+ def eos(self) -> global___VideoStreamEOS: ...
729
+ def __init__(
730
+ self,
731
+ *,
732
+ stream_handle: builtins.int | None = ...,
733
+ frame_received: global___VideoFrameReceived | None = ...,
734
+ eos: global___VideoStreamEOS | None = ...,
735
+ ) -> None: ...
736
+ def HasField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> builtins.bool: ...
737
+ def ClearField(self, field_name: typing.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> None: ...
738
+ def WhichOneof(self, oneof_group: typing.Literal["message", b"message"]) -> typing.Literal["frame_received", "eos"] | None: ...
739
+
740
+ global___VideoStreamEvent = VideoStreamEvent
741
+
742
+ @typing.final
743
+ class VideoFrameReceived(google.protobuf.message.Message):
744
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
745
+
746
+ BUFFER_FIELD_NUMBER: builtins.int
747
+ TIMESTAMP_US_FIELD_NUMBER: builtins.int
748
+ ROTATION_FIELD_NUMBER: builtins.int
749
+ METADATA_FIELD_NUMBER: builtins.int
750
+ timestamp_us: builtins.int
751
+ """In microseconds"""
752
+ rotation: global___VideoRotation.ValueType
753
+ @property
754
+ def buffer(self) -> global___OwnedVideoBuffer: ...
755
+ @property
756
+ def metadata(self) -> global___FrameMetadata: ...
757
+ def __init__(
758
+ self,
759
+ *,
760
+ buffer: global___OwnedVideoBuffer | None = ...,
761
+ timestamp_us: builtins.int | None = ...,
762
+ rotation: global___VideoRotation.ValueType | None = ...,
763
+ metadata: global___FrameMetadata | None = ...,
764
+ ) -> None: ...
765
+ def HasField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "timestamp_us", b"timestamp_us"]) -> builtins.bool: ...
766
+ def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "metadata", b"metadata", "rotation", b"rotation", "timestamp_us", b"timestamp_us"]) -> None: ...
767
+
768
+ global___VideoFrameReceived = VideoFrameReceived
769
+
770
+ @typing.final
771
+ class VideoStreamEOS(google.protobuf.message.Message):
772
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
773
+
774
+ def __init__(
775
+ self,
776
+ ) -> None: ...
777
+
778
+ global___VideoStreamEOS = VideoStreamEOS
779
+
780
+ @typing.final
781
+ class VideoSourceResolution(google.protobuf.message.Message):
782
+ """
783
+ VideoSource
784
+ """
785
+
786
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
787
+
788
+ WIDTH_FIELD_NUMBER: builtins.int
789
+ HEIGHT_FIELD_NUMBER: builtins.int
790
+ width: builtins.int
791
+ height: builtins.int
792
+ def __init__(
793
+ self,
794
+ *,
795
+ width: builtins.int | None = ...,
796
+ height: builtins.int | None = ...,
797
+ ) -> None: ...
798
+ def HasField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> builtins.bool: ...
799
+ def ClearField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> None: ...
800
+
801
+ global___VideoSourceResolution = VideoSourceResolution
802
+
803
+ @typing.final
804
+ class VideoSourceInfo(google.protobuf.message.Message):
805
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
806
+
807
+ TYPE_FIELD_NUMBER: builtins.int
808
+ type: global___VideoSourceType.ValueType
809
+ def __init__(
810
+ self,
811
+ *,
812
+ type: global___VideoSourceType.ValueType | None = ...,
813
+ ) -> None: ...
814
+ def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ...
815
+ def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ...
816
+
817
+ global___VideoSourceInfo = VideoSourceInfo
818
+
819
+ @typing.final
820
+ class OwnedVideoSource(google.protobuf.message.Message):
821
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
822
+
823
+ HANDLE_FIELD_NUMBER: builtins.int
824
+ INFO_FIELD_NUMBER: builtins.int
825
+ @property
826
+ def handle(self) -> handle_pb2.FfiOwnedHandle: ...
827
+ @property
828
+ def info(self) -> global___VideoSourceInfo: ...
829
+ def __init__(
830
+ self,
831
+ *,
832
+ handle: handle_pb2.FfiOwnedHandle | None = ...,
833
+ info: global___VideoSourceInfo | None = ...,
834
+ ) -> None: ...
835
+ def HasField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ...
836
+ def ClearField(self, field_name: typing.Literal["handle", b"handle", "info", b"info"]) -> None: ...
837
+
838
+ global___OwnedVideoSource = OwnedVideoSource