@@ -121,8 +121,7 @@ CHIP_ERROR CameraAVStreamMgmtServer::Init()
121
121
" CameraAVStreamMgmt: Feature configuration error. if MicrophoneAGCEnabled, then Audio feature required" ));
122
122
}
123
123
124
- if (SupportsOptAttr (OptionalAttribute::kImageFlipHorizontal ) ||
125
- SupportsOptAttr (OptionalAttribute::kImageFlipVertical ) ||
124
+ if (SupportsOptAttr (OptionalAttribute::kImageFlipHorizontal ) || SupportsOptAttr (OptionalAttribute::kImageFlipVertical ) ||
126
125
SupportsOptAttr (OptionalAttribute::kImageRotation ))
127
126
{
128
127
VerifyOrReturnError (HasFeature (Feature::kImageControl ), CHIP_ERROR_INVALID_ARGUMENT,
@@ -466,8 +465,7 @@ CHIP_ERROR CameraAVStreamMgmtServer::Read(const ConcreteReadAttributePath & aPat
466
465
ReturnErrorOnFailure (aEncoder.Encode (mSoftLivestreamPrivacyModeEnabled ));
467
466
break ;
468
467
case HardPrivacyModeOn::Id:
469
- VerifyOrReturnError (SupportsOptAttr (OptionalAttribute::kHardPrivacyModeOn ),
470
- CHIP_IM_GLOBAL_STATUS (UnsupportedAttribute),
468
+ VerifyOrReturnError (SupportsOptAttr (OptionalAttribute::kHardPrivacyModeOn ), CHIP_IM_GLOBAL_STATUS (UnsupportedAttribute),
471
469
ChipLogError (Zcl, " CameraAVStreamMgmt: can not get HardPrivacyModeOn, feature is not supported" ));
472
470
ReturnErrorOnFailure (aEncoder.Encode (mHardPrivacyModeOn ));
473
471
break ;
@@ -571,14 +569,12 @@ CHIP_ERROR CameraAVStreamMgmtServer::Read(const ConcreteReadAttributePath & aPat
571
569
ReturnErrorOnFailure (aEncoder.Encode (mLocalSnapshotRecordingEnabled ));
572
570
break ;
573
571
case StatusLightEnabled::Id:
574
- VerifyOrReturnError (SupportsOptAttr (OptionalAttribute::kStatusLightEnabled ),
575
- CHIP_IM_GLOBAL_STATUS (UnsupportedAttribute),
572
+ VerifyOrReturnError (SupportsOptAttr (OptionalAttribute::kStatusLightEnabled ), CHIP_IM_GLOBAL_STATUS (UnsupportedAttribute),
576
573
ChipLogError (Zcl, " CameraAVStreamMgmt: can not get StatusLightEnabled, feature is not supported" ));
577
574
ReturnErrorOnFailure (aEncoder.Encode (mStatusLightEnabled ));
578
575
break ;
579
576
case StatusLightBrightness::Id:
580
- VerifyOrReturnError (SupportsOptAttr (OptionalAttribute::kStatusLightBrightness ),
581
- CHIP_IM_GLOBAL_STATUS (UnsupportedAttribute),
577
+ VerifyOrReturnError (SupportsOptAttr (OptionalAttribute::kStatusLightBrightness ), CHIP_IM_GLOBAL_STATUS (UnsupportedAttribute),
582
578
ChipLogError (Zcl, " CameraAVStreamMgmt: can not get StatusLightBrightness, feature is not supported" ));
583
579
ReturnErrorOnFailure (aEncoder.Encode (mStatusLightBrightness ));
584
580
break ;
@@ -727,16 +723,14 @@ CHIP_ERROR CameraAVStreamMgmtServer::Write(const ConcreteDataAttributePath & aPa
727
723
return SetLocalSnapshotRecordingEnabled (localSnapshotRecEnabled);
728
724
}
729
725
case StatusLightEnabled::Id: {
730
- VerifyOrReturnError (SupportsOptAttr (OptionalAttribute::kStatusLightEnabled ),
731
- CHIP_IM_GLOBAL_STATUS (UnsupportedAttribute),
726
+ VerifyOrReturnError (SupportsOptAttr (OptionalAttribute::kStatusLightEnabled ), CHIP_IM_GLOBAL_STATUS (UnsupportedAttribute),
732
727
ChipLogError (Zcl, " CameraAVStreamMgmt: can not set StatusLightEnabled, feature is not supported" ));
733
728
bool statusLightEnabled;
734
729
ReturnErrorOnFailure (aDecoder.Decode (statusLightEnabled));
735
730
return SetStatusLightEnabled (statusLightEnabled);
736
731
}
737
732
case StatusLightBrightness::Id: {
738
- VerifyOrReturnError (SupportsOptAttr (OptionalAttribute::kStatusLightBrightness ),
739
- CHIP_IM_GLOBAL_STATUS (UnsupportedAttribute),
733
+ VerifyOrReturnError (SupportsOptAttr (OptionalAttribute::kStatusLightBrightness ), CHIP_IM_GLOBAL_STATUS (UnsupportedAttribute),
740
734
ChipLogError (Zcl, " CameraAVStreamMgmt: can not set StatusLightBrightness, feature is not supported" ));
741
735
Globals::ThreeLevelAutoEnum statusLightBrightness;
742
736
ReturnErrorOnFailure (aDecoder.Decode (statusLightBrightness));
@@ -1504,11 +1498,14 @@ void CameraAVStreamMgmtServer::HandleVideoStreamAllocate(HandlerContext & ctx,
1504
1498
ctx.mCommandHandler .AddStatus (ctx.mRequestPath , Status::InvalidCommand);
1505
1499
});
1506
1500
1507
- VerifyOrReturn (minFrameRate >= 1 && minFrameRate <= maxFrameRate && maxFrameRate >= 1 , ctx.mCommandHandler .AddStatus (ctx.mRequestPath , Status::ConstraintError));
1501
+ VerifyOrReturn (minFrameRate >= 1 && minFrameRate <= maxFrameRate && maxFrameRate >= 1 ,
1502
+ ctx.mCommandHandler .AddStatus (ctx.mRequestPath , Status::ConstraintError));
1508
1503
1509
- VerifyOrReturn (minBitRate >= 1 && minBitRate <= maxBitRate && maxBitRate >= 1 , ctx.mCommandHandler .AddStatus (ctx.mRequestPath , Status::ConstraintError));
1504
+ VerifyOrReturn (minBitRate >= 1 && minBitRate <= maxBitRate && maxBitRate >= 1 ,
1505
+ ctx.mCommandHandler .AddStatus (ctx.mRequestPath , Status::ConstraintError));
1510
1506
1511
- VerifyOrReturn (minFragmentLen <= maxFragmentLen && maxFragmentLen <= kMaxFragmentLenMaxValue , ctx.mCommandHandler .AddStatus (ctx.mRequestPath , Status::ConstraintError));
1507
+ VerifyOrReturn (minFragmentLen <= maxFragmentLen && maxFragmentLen <= kMaxFragmentLenMaxValue ,
1508
+ ctx.mCommandHandler .AddStatus (ctx.mRequestPath , Status::ConstraintError));
1512
1509
1513
1510
// Call the delegate
1514
1511
status =
@@ -1605,7 +1602,7 @@ void CameraAVStreamMgmtServer::HandleAudioStreamAllocate(HandlerContext & ctx,
1605
1602
ctx.mCommandHandler .AddStatus (ctx.mRequestPath , Status::ConstraintError);
1606
1603
});
1607
1604
1608
- VerifyOrReturn (channelCount >=1 && channelCount <= kMaxChannelCount , {
1605
+ VerifyOrReturn (channelCount >= 1 && channelCount <= kMaxChannelCount , {
1609
1606
ChipLogError (Zcl, " CameraAVStreamMgmt: Invalid channel count" );
1610
1607
ctx.mCommandHandler .AddStatus (ctx.mRequestPath , Status::ConstraintError);
1611
1608
});
0 commit comments