-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcamera-av-stream-management-cluster.xml
459 lines (422 loc) · 28.3 KB
/
camera-av-stream-management-cluster.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
<?xml version="1.0"?>
<!--
Copyright (c) 2024 Project CHIP Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
XML generated by Alchemy; DO NOT EDIT.
Source: src/app_clusters/CameraAVStreamManagement.adoc
Parameters: in-progress
Git: 0.9-fall2024-411-g9835b5cd7
-->
<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
<domain name="General"/>
<enum name="AudioCodecEnum" type="enum8">
<cluster code="0x0551"/>
<item name="OPUS" value="0x00"/>
<item name="AAC-LC" value="0x01"/>
</enum>
<enum name="ImageCodecEnum" type="enum8">
<cluster code="0x0551"/>
<item name="JPEG" value="0x00"/>
</enum>
<enum name="TriStateAutoEnum" type="enum8">
<cluster code="0x0551"/>
<item name="Off" value="0x00"/>
<item name="On" value="0x01"/>
<item name="Auto" value="0x02"/>
</enum>
<enum name="TwoWayTalkSupportTypeEnum" type="enum8">
<cluster code="0x0551"/>
<item name="NotSupported" value="0x00"/>
<item name="HalfDuplex" value="0x01"/>
<item name="FullDuplex" value="0x02"/>
</enum>
<enum name="VideoCodecEnum" type="enum8">
<cluster code="0x0551"/>
<item name="H264" value="0x00"/>
<item name="HEVC" value="0x01"/>
<item name="VVC" value="0x02"/>
<item name="AV1" value="0x03"/>
</enum>
<struct name="AudioCapabilitiesStruct" apiMaturity="provisional">
<cluster code="0x0551"/>
<item fieldId="0" name="MaxNumberOfChannels" type="int8u" min="1"/>
<item fieldId="1" name="SupportedCodecs" array="true" type="AudioCodecEnum" minLength="1"/>
<item fieldId="2" name="SupportedSampleRates" array="true" type="int32u" minLength="1"/>
<item fieldId="3" name="SupportedBitDepths" array="true" type="int8u" minLength="1"/>
</struct>
<struct name="AudioStreamStruct" apiMaturity="provisional">
<cluster code="0x0551"/>
<item fieldId="0" name="AudioStreamID" type="int16u"/>
<item fieldId="1" name="StreamType" type="StreamTypeEnum" min="0x00" max="0x03"/>
<item fieldId="2" name="AudioCodec" type="AudioCodecEnum" min="0x00" max="0x01"/>
<item fieldId="3" name="ChannelCount" type="int8u" min="1" max="8"/>
<item fieldId="4" name="SampleRate" type="int32u" min="1"/>
<item fieldId="5" name="BitRate" type="int32u" min="1"/>
<item fieldId="6" name="BitDepth" type="int8u" default="16" min="8" max="32"/>
<item fieldId="7" name="ReferenceCount" type="int8u" default="0"/>
</struct>
<struct name="RateDistortionTradeOffPointsStruct" apiMaturity="provisional">
<cluster code="0x0551"/>
<item fieldId="0" name="Codec" type="VideoCodecEnum" min="0x00" max="0x03"/>
<item fieldId="1" name="Resolution" type="VideoResolutionStruct"/>
<item fieldId="2" name="MinBitRate" type="int32u"/>
</struct>
<struct name="SnapshotParamsStruct" apiMaturity="provisional">
<cluster code="0x0551"/>
<item fieldId="0" name="Resolution" type="VideoResolutionStruct"/>
<item fieldId="1" name="MaxFrameRate" type="int16u" min="1"/>
<item fieldId="2" name="ImageCodec" type="ImageCodecEnum" min="0x00" max="0x00"/>
</struct>
<struct name="SnapshotStreamStruct" apiMaturity="provisional">
<cluster code="0x0551"/>
<item fieldId="0" name="SnapshotStreamID" type="int16u"/>
<item fieldId="1" name="ImageCodec" type="ImageCodecEnum" min="0x00" max="0x00"/>
<item fieldId="2" name="FrameRate" type="int16u" min="1"/>
<item fieldId="3" name="BitRate" type="int32u" min="1"/>
<item fieldId="4" name="MinResolution" type="VideoResolutionStruct"/>
<item fieldId="5" name="MaxResolution" type="VideoResolutionStruct"/>
<item fieldId="6" name="Quality" type="int8u" min="1" max="100"/>
<item fieldId="7" name="ReferenceCount" type="int8u" default="0"/>
</struct>
<struct name="VideoResolutionStruct" apiMaturity="provisional">
<cluster code="0x0551"/>
<item fieldId="0" name="Width" type="int16u" min="1"/>
<item fieldId="1" name="Height" type="int16u" min="1"/>
</struct>
<struct name="VideoSensorParamsStruct" apiMaturity="provisional">
<cluster code="0x0551"/>
<item fieldId="0" name="SensorWidth" type="int16u" min="64"/>
<item fieldId="1" name="SensorHeight" type="int16u" min="64"/>
<item fieldId="2" name="HDRCapable" type="boolean"/>
<item fieldId="3" name="MaxFPS" type="int16u" min="1"/>
<item fieldId="4" name="MaxHDRFPS" type="int16u" min="1"/>
</struct>
<struct name="VideoStreamStruct" apiMaturity="provisional">
<cluster code="0x0551"/>
<item fieldId="0" name="VideoStreamID" type="int16u"/>
<item fieldId="1" name="StreamType" type="StreamTypeEnum" min="0x00" max="0x03"/>
<item fieldId="2" name="VideoCodec" type="VideoCodecEnum" min="0x00" max="0x03"/>
<item fieldId="3" name="MinFrameRate" type="int16u" min="1"/>
<item fieldId="4" name="MaxFrameRate" type="int16u" min="1"/>
<item fieldId="5" name="MinResolution" type="VideoResolutionStruct"/>
<item fieldId="6" name="MaxResolution" type="VideoResolutionStruct"/>
<item fieldId="7" name="MinBitRate" type="int32u" min="1"/>
<item fieldId="8" name="MaxBitRate" type="int32u" min="1"/>
<item fieldId="9" name="MinFragmentLen" type="int16u" default="4000" max="65500"/>
<item fieldId="10" name="MaxFragmentLen" type="int16u" default="4000" max="65500"/>
<item fieldId="11" name="WatermarkEnabled" type="boolean" optional="true" default="0"/>
<item fieldId="12" name="OSDEnabled" type="boolean" optional="true" default="0"/>
<item fieldId="13" name="ReferenceCount" type="int8u" default="0"/>
</struct>
<struct name="ViewportStruct" apiMaturity="provisional">
<cluster code="0x0551"/>
<cluster code="0x0552"/>
<item fieldId="0" name="X1" type="int16u" default="0"/>
<item fieldId="1" name="Y1" type="int16u" default="0"/>
<item fieldId="2" name="X2" type="int16u" default="0"/>
<item fieldId="3" name="Y2" type="int16u" default="0"/>
</struct>
<cluster apiMaturity="provisional">
<domain name="Cameras"/>
<name>Camera AV Stream Management</name>
<code>0x0551</code>
<define>CAMERA_AV_STREAM_MANAGEMENT_CLUSTER</define>
<description>The Camera AV Stream Management cluster is used to allow clients to manage, control, and configure various audio, video, and snapshot streams on a camera.</description>
<client init="false" tick="false">true</client>
<features>
<feature bit="0" code="PRIV" name="Privacy" summary="Privacy supported">
<optionalConform/>
</feature>
<feature bit="1" code="ADO" name="Audio" summary="Audio Stream supported">
<optionalConform/>
</feature>
<feature bit="2" code="SPKR" name="Speaker" summary="Speaker supported">
<optionalConform/>
</feature>
<feature bit="3" code="ICTL" name="ImageControl" summary="Image control supported">
<optionalConform/>
</feature>
<feature bit="4" code="VDO" name="Video" summary="Video Stream supported">
<optionalConform/>
</feature>
<feature bit="5" code="SNP" name="Snapshot" summary="Snapshot stream supported">
<optionalConform/>
</feature>
<feature bit="6" code="WMARK" name="Watermark" summary="Watermark supported">
<optionalConform/>
</feature>
<feature bit="7" code="OSD" name="OnScreenDisplay" summary="OSD supported">
<optionalConform/>
</feature>
<feature bit="8" code="STOR" name="LocalStorage" summary="Local Storage available">
<optionalConform/>
</feature>
</features>
<server init="false" tick="false">true</server>
<globalAttribute code="0xFFFD" side="either" value="1"/>
<attribute code="0x0000" side="server" define="MAX_CONCURRENT_VIDEO_ENCODERS" type="int8u" reportable="true" optional="true">MaxConcurrentVideoEncoders</attribute>
<attribute code="0x0001" side="server" define="MAX_ENCODED_PIXEL_RATE" type="int32u" reportable="true" optional="true">MaxEncodedPixelRate</attribute>
<attribute code="0x0002" side="server" define="VIDEO_SENSOR_PARAMS" type="VideoSensorParamsStruct" reportable="true" optional="true">VideoSensorParams</attribute>
<attribute code="0x0003" side="server" define="NIGHT_VISION_CAPABLE" type="boolean" reportable="true" optional="true">NightVisionCapable</attribute>
<attribute code="0x0004" side="server" define="MIN_VIEWPORT" type="VideoResolutionStruct" reportable="true" optional="true">MinViewport</attribute>
<attribute code="0x0005" side="server" define="RATE_DISTORTION_TRADE_OFF_POINTS" type="array" entryType="RateDistortionTradeOffPointsStruct" reportable="true" optional="true">RateDistortionTradeOffPoints</attribute>
<attribute code="0x0006" side="server" define="MAX_CONTENT_BUFFER_SIZE" type="int32u" reportable="true" optional="true">MaxContentBufferSize</attribute>
<attribute code="0x0007" side="server" define="MICROPHONE_CAPABILITIES" type="AudioCapabilitiesStruct" reportable="true" optional="true">MicrophoneCapabilities</attribute>
<attribute code="0x0008" side="server" define="SPEAKER_CAPABILITIES" type="AudioCapabilitiesStruct" reportable="true" optional="true">SpeakerCapabilities</attribute>
<attribute code="0x0009" side="server" define="TWO_WAY_TALK_SUPPORT" type="TwoWayTalkSupportTypeEnum" reportable="true" min="0x00" max="0x02" optional="true">TwoWayTalkSupport</attribute>
<attribute code="0x000A" side="server" define="SUPPORTED_SNAPSHOT_PARAMS" type="array" entryType="SnapshotParamsStruct" reportable="true" optional="true">SupportedSnapshotParams</attribute>
<attribute code="0x000B" side="server" define="MAX_NETWORK_BANDWIDTH" type="int32u" reportable="true">MaxNetworkBandwidth</attribute>
<attribute code="0x000C" side="server" define="CURRENT_FRAME_RATE" type="int16u" reportable="true" optional="true">CurrentFrameRate</attribute>
<attribute code="0x000D" side="server" name="HDRModeEnabled" define="HDRMODE_ENABLED" type="boolean" default="0" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x000E" side="server" define="CURRENT_VIDEO_CODECS" type="array" entryType="VideoCodecEnum" reportable="true" optional="true">CurrentVideoCodecs</attribute>
<attribute code="0x000F" side="server" define="CURRENT_SNAPSHOT_CONFIG" type="SnapshotParamsStruct" reportable="true" optional="true">CurrentSnapshotConfig</attribute>
<attribute code="0x0010" side="server" define="FABRICS_USING_CAMERA" type="array" entryType="fabric_idx" reportable="true">FabricsUsingCamera</attribute>
<attribute code="0x0011" side="server" define="ALLOCATED_VIDEO_STREAMS" type="array" entryType="VideoStreamStruct" reportable="true" optional="true">AllocatedVideoStreams</attribute>
<attribute code="0x0012" side="server" define="ALLOCATED_AUDIO_STREAMS" type="array" entryType="AudioStreamStruct" reportable="true" optional="true">AllocatedAudioStreams</attribute>
<attribute code="0x0013" side="server" define="ALLOCATED_SNAPSHOT_STREAMS" type="array" entryType="SnapshotStreamStruct" reportable="true" optional="true">AllocatedSnapshotStreams</attribute>
<attribute code="0x0014" side="server" name="RankedVideoStreamPrioritiesList" define="RANKED_VIDEO_STREAM_PRIORITIES_LIST" type="array" entryType="StreamTypeEnum" reportable="true" writable="true" optional="true">
<access op="read" privilege="administer"/>
<access op="write" privilege="administer"/>
</attribute>
<attribute code="0x0015" side="server" define="SOFT_RECORDING_PRIVACY_MODE_ENABLED" type="boolean" default="0" writable="true" optional="true">SoftRecordingPrivacyModeEnabled</attribute>
<attribute code="0x0016" side="server" define="SOFT_LIVESTREAM_PRIVACY_MODE_ENABLED" type="boolean" default="0" writable="true" optional="true">SoftLivestreamPrivacyModeEnabled</attribute>
<attribute code="0x0017" side="server" define="HARD_PRIVACY_MODE_ON" type="boolean" reportable="true" default="0" optional="true">HardPrivacyModeOn</attribute>
<attribute code="0x0018" side="server" name="NightVision" define="NIGHT_VISION" type="TriStateAutoEnum" min="0x00" max="0x02" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x0019" side="server" name="NightVisionIllum" define="NIGHT_VISION_ILLUM" type="TriStateAutoEnum" min="0x00" max="0x02" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x001A" side="server" name="AWBEnabled" define="AWBENABLED" type="boolean" default="0" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x001B" side="server" name="AutoShutterSpeedEnabled" define="AUTO_SHUTTER_SPEED_ENABLED" type="boolean" default="0" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x001C" side="server" name="AutoISOEnabled" define="AUTO_ISOENABLED" type="boolean" default="0" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x001D" side="server" define="VIEWPORT" type="ViewportStruct" optional="true">Viewport</attribute>
<attribute code="0x001E" side="server" name="SpeakerMuted" define="SPEAKER_MUTED" type="boolean" default="0" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x001F" side="server" name="SpeakerVolumeLevel" define="SPEAKER_VOLUME_LEVEL" type="int8u" max="254" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x0020" side="server" name="SpeakerMaxLevel" define="SPEAKER_MAX_LEVEL" type="int8u" max="254" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x0021" side="server" name="SpeakerMinLevel" define="SPEAKER_MIN_LEVEL" type="int8u" max="254" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x0022" side="server" name="MicrophoneMuted" define="MICROPHONE_MUTED" type="boolean" default="0" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x0023" side="server" name="MicrophoneVolumeLevel" define="MICROPHONE_VOLUME_LEVEL" type="int8u" max="254" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x0024" side="server" name="MicrophoneMaxLevel" define="MICROPHONE_MAX_LEVEL" type="int8u" max="254" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x0025" side="server" name="MicrophoneMinLevel" define="MICROPHONE_MIN_LEVEL" type="int8u" max="254" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x0026" side="server" name="MicrophoneAGCEnabled" define="MICROPHONE_AGCENABLED" type="boolean" default="1" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x0027" side="server" define="IMAGE_ROTATION" type="int16u" max="359" optional="true">ImageRotation</attribute>
<attribute code="0x0028" side="server" define="IMAGE_FLIP_HORIZONTAL" type="boolean" default="0" optional="true">ImageFlipHorizontal</attribute>
<attribute code="0x0029" side="server" define="IMAGE_FLIP_VERTICAL" type="boolean" default="0" optional="true">ImageFlipVertical</attribute>
<attribute code="0x002A" side="server" name="LocalVideoRecordingEnabled" define="LOCAL_VIDEO_RECORDING_ENABLED" type="boolean" default="0" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x002B" side="server" name="LocalSnapshotRecordingEnabled" define="LOCAL_SNAPSHOT_RECORDING_ENABLED" type="boolean" default="0" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x002C" side="server" name="StatusLightEnabled" define="STATUS_LIGHT_ENABLED" type="boolean" default="1" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x002D" side="server" name="StatusLightBrightness" define="STATUS_LIGHT_BRIGHTNESS" type="ThreeLevelAutoEnum" min="0x00" max="0x03" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<attribute code="0x002E" side="server" name="DepthSensorStatus" define="DEPTH_SENSOR_STATUS" type="TriStateAutoEnum" min="0x00" max="0x02" writable="true" optional="true">
<access op="read" privilege="manage"/>
<access op="write" privilege="manage"/>
</attribute>
<command code="0x00" source="client" name="AudioStreamAllocate" optional="true" response="AudioStreamAllocateResponse">
<description>This command SHALL allocate an audio stream on the camera and return an allocated audio stream identifier.</description>
<access op="invoke" privilege="manage"/>
<arg id="0" name="StreamType" type="StreamTypeEnum" min="0x00" max="0x03"/>
<arg id="1" name="AudioCodec" type="AudioCodecEnum" min="0x00" max="0x01"/>
<arg id="2" name="ChannelCount" type="int8u" default="1" min="1" max="8"/>
<arg id="3" name="SampleRate" type="int32u" min="1"/>
<arg id="4" name="BitRate" type="int32u" min="1"/>
<arg id="5" name="BitDepth" type="int8u" min="8" max="32"/>
</command>
<command code="0x01" source="server" name="AudioStreamAllocateResponse" optional="true" disableDefaultResponse="true">
<description>This command SHALL be sent by the camera in response to the AudioStreamAllocate command, carrying the newly allocated audio stream identifier.</description>
<arg id="0" name="AudioStreamID" type="int16u"/>
</command>
<command code="0x02" source="client" name="AudioStreamDeallocate" optional="true">
<description>This command SHALL deallocate an audio stream on the camera, corresponding to the given audio stream identifier.</description>
<access op="invoke" privilege="manage"/>
<arg id="0" name="AudioStreamID" type="int16u"/>
</command>
<command code="0x03" source="client" name="VideoStreamAllocate" optional="true" response="VideoStreamAllocateResponse">
<description>This command SHALL allocate a video stream on the camera and return an allocated video stream identifier.</description>
<access op="invoke" privilege="manage"/>
<arg id="1" name="StreamType" type="StreamTypeEnum" min="0x00" max="0x03"/>
<arg id="2" name="VideoCodec" type="VideoCodecEnum" min="0x00" max="0x03"/>
<arg id="3" name="MinFrameRate" type="int16u" min="1"/>
<arg id="4" name="MaxFrameRate" type="int16u" min="1"/>
<arg id="5" name="MinResolution" type="VideoResolutionStruct"/>
<arg id="6" name="MaxResolution" type="VideoResolutionStruct"/>
<arg id="7" name="MinBitRate" type="int32u" min="1"/>
<arg id="8" name="MaxBitRate" type="int32u" min="1"/>
<arg id="9" name="MinFragmentLen" type="int16u" default="4000" max="65500"/>
<arg id="10" name="MaxFragmentLen" type="int16u" default="4000" max="65500"/>
<arg id="11" name="WatermarkEnabled" type="boolean" optional="true" default="0"/>
<arg id="12" name="OSDEnabled" type="boolean" optional="true" default="0"/>
</command>
<command code="0x04" source="server" name="VideoStreamAllocateResponse" optional="true" disableDefaultResponse="true">
<description>This command SHALL be sent by the camera in response to the VideoStreamAllocate command, carrying the newly allocated video stream identifier.</description>
<arg id="0" name="VideoStreamID" type="int16u"/>
</command>
<command code="0x05" source="client" name="VideoStreamModify" optional="true">
<description>This command SHALL be used to modify the resolution of a stream specified by the VideoStreamID.</description>
<access op="invoke" privilege="manage"/>
<arg id="0" name="VideoStreamID" type="int16u"/>
<arg id="1" name="Resolution" type="VideoResolutionStruct" optional="true"/>
<arg id="2" name="WatermarkEnabled" type="boolean" optional="true"/>
<arg id="3" name="OSDEnabled" type="boolean" optional="true"/>
</command>
<command code="0x06" source="client" name="VideoStreamDeallocate" optional="true">
<description>This command SHALL deallocate a video stream on the camera, corresponding to the given video stream identifier.</description>
<access op="invoke" privilege="manage"/>
<arg id="0" name="VideoStreamID" type="int16u"/>
</command>
<command code="0x07" source="client" name="SnapshotStreamAllocate" optional="true" response="SnapshotStreamAllocateResponse">
<description>This command SHALL allocate a snapshot stream on the device and return an allocated snapshot stream identifier.</description>
<access op="invoke" privilege="manage"/>
<arg id="1" name="ImageCodec" type="ImageCodecEnum" min="0x00" max="0x00"/>
<arg id="2" name="FrameRate" type="int16u" min="1"/>
<arg id="3" name="BitRate" type="int32u" min="1"/>
<arg id="4" name="MinResolution" type="VideoResolutionStruct"/>
<arg id="5" name="MaxResolution" type="VideoResolutionStruct"/>
<arg id="6" name="Quality" type="int8u" min="1" max="100"/>
</command>
<command code="0x08" source="server" name="SnapshotStreamAllocateResponse" optional="true" disableDefaultResponse="true">
<description>This command SHALL be sent by the device in response to the SnapshotStreamAllocate command, carrying the newly allocated snapshot stream identifier.</description>
<arg id="0" name="SnapshotStreamID" type="int16u"/>
</command>
<command code="0x09" source="client" name="SnapshotStreamDeallocate" optional="true">
<description>This command SHALL deallocate an snapshot stream on the camera, corresponding to the given snapshot stream identifier.</description>
<access op="invoke" privilege="manage"/>
<arg id="0" name="SnapshotStreamID" type="int16u"/>
</command>
<command code="0x0A" source="client" name="SetStreamPriorities" optional="false">
<description>This command SHALL set the relative priorities of the various stream types on the camera.</description>
<access op="invoke" privilege="administer"/>
<arg id="0" name="StreamPriorities" array="true" type="StreamTypeEnum"/>
</command>
<command code="0x0B" source="client" name="CaptureSnapshot" optional="true">
<description>This command SHALL return a Snapshot from the camera.</description>
<quality largeMessage="true"/>
<access op="invoke" privilege="manage"/>
<arg id="0" name="SnapshotStreamID" type="int16u"/>
<arg id="1" name="RequestedResolution" type="VideoResolutionStruct"/>
</command>
<command code="0x0C" source="server" name="CaptureSnapshotResponse" optional="true" disableDefaultResponse="true">
<description>This command SHALL be sent by the device in response to the CaptureSnapshot command, carrying the requested snapshot.</description>
<quality largeMessage="true"/>
<arg id="0" name="Data" type="octet_string"/>
<arg id="1" name="ImageCodec" type="ImageCodecEnum" min="0x00" max="0x00"/>
<arg id="2" name="Resolution" type="VideoResolutionStruct"/>
</command>
<command code="0x0D" source="client" name="SetViewport" optional="true">
<description>This command sets the viewport in all video streams.</description>
<access op="invoke" privilege="manage"/>
<arg id="0" name="Viewport" type="ViewportStruct"/>
</command>
<command code="0x0E" source="client" name="SetImageRotation" optional="true">
<description>The data fields for this command SHALL be as follows: </description>
<access op="invoke" privilege="manage"/>
<arg id="0" name="Angle" type="int16u" default="0" min="0" max="359"/>
</command>
<command code="0x0F" source="client" name="SetImageFlipHorizontal" optional="true">
<description>The data fields for this command SHALL be as follows: </description>
<access op="invoke" privilege="manage"/>
<arg id="0" name="Enabled" type="boolean"/>
</command>
<command code="0x10" source="client" name="SetImageFlipVertical" optional="true">
<description>The data fields for this command SHALL be as follows: </description>
<access op="invoke" privilege="manage"/>
<arg id="0" name="Enabled" type="boolean"/>
</command>
<event code="0x0000" name="VideoStreamChanged" priority="info" side="server" optional="true">
<field id="0" name="VideoStreamID" type="int16u"/>
<field id="1" name="StreamType" type="StreamTypeEnum" optional="true" min="0x00" max="0x03"/>
<field id="2" name="VideoCodec" type="VideoCodecEnum" optional="true" min="0x00" max="0x03"/>
<field id="3" name="MinFrameRate" type="int16u" optional="true" min="1"/>
<field id="4" name="MaxFrameRate" type="int16u" optional="true" min="1"/>
<field id="5" name="MinResolution" type="VideoResolutionStruct" optional="true"/>
<field id="6" name="MaxResolution" type="VideoResolutionStruct" optional="true"/>
<field id="7" name="MinBitRate" type="int32u" optional="true" min="1"/>
<field id="8" name="MaxBitRate" type="int32u" optional="true" min="1"/>
<field id="9" name="MinFragmentLen" type="int16u" optional="true" max="65500"/>
<field id="10" name="MaxFragmentLen" type="int16u" optional="true" max="65500"/>
<description>This event SHALL be generated when there is a modification in the corresponding video stream.</description>
</event>
<event code="0x0001" name="AudioStreamChanged" priority="info" side="server" optional="true">
<field id="0" name="AudioStreamID" type="int16u"/>
<field id="1" name="StreamType" type="StreamTypeEnum" optional="true" min="0x00" max="0x03"/>
<field id="2" name="AudioCodec" type="AudioCodecEnum" optional="true" min="0x00" max="0x01"/>
<field id="3" name="ChannelCount" type="int8u" optional="true" min="1" max="8"/>
<field id="4" name="SampleRate" type="int32u" optional="true" min="1"/>
<field id="5" name="BitRate" type="int32u" optional="true" min="1"/>
<field id="6" name="BitDepth" type="int8u" optional="true" min="8" max="32"/>
<description>This event SHALL be generated when there is a modification in the corresponding audio stream.</description>
</event>
<event code="0x0002" name="SnapshotStreamChanged" priority="info" side="server" optional="true">
<field id="0" name="SnapshotStreamID" type="int16u"/>
<field id="1" name="ImageCodec" type="ImageCodecEnum" optional="true" min="0x00" max="0x00"/>
<field id="2" name="FrameRate" type="int16u" optional="true" min="1"/>
<field id="3" name="BitRate" type="int32u" optional="true" min="1"/>
<field id="4" name="MinResolution" type="VideoResolutionStruct" optional="true"/>
<field id="5" name="MaxResolution" type="VideoResolutionStruct" optional="true"/>
<field id="6" name="Quality" type="int8u" optional="true" min="1" max="100"/>
<description>This event SHALL be generated when there is a modification in the corresponding snapshot stream.</description>
</event>
</cluster>
</configurator>