Skip to content

Commit

Permalink
Restyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pidarped committed Dec 13, 2024
1 parent f99991b commit e0775c4
Showing 1 changed file with 40 additions and 157 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,210 +242,93 @@ class CameraAVStreamMgmtServer : public CommandHandlerInterface, public Attribut
Protocols::InteractionModel::Status SetStatusLightBrightness(Globals::ThreeLevelAutoEnum aStatusLightBrightness);

// Attribute Getters
uint8_t GetMaxConcurrentVideoEncoders() const
{
return mMaxConcurrentVideoEncoders;
}
uint8_t GetMaxConcurrentVideoEncoders() const { return mMaxConcurrentVideoEncoders; }

uint32_t GetMaxEncodedPixelRate() const
{
return mMaxEncodedPixelRate;
}
uint32_t GetMaxEncodedPixelRate() const { return mMaxEncodedPixelRate; }

const VideoSensorParamsStruct & GetVideoSensorParams() const
{
return mVideoSensorParams;
}
const VideoSensorParamsStruct & GetVideoSensorParams() const { return mVideoSensorParams; }

bool GetNightVisionCapable() const
{
return mNightVisionCapable;
}
bool GetNightVisionCapable() const { return mNightVisionCapable; }

const VideoResolutionStruct & GetMinViewport() const
{
return mMinViewPort;
}
const VideoResolutionStruct & GetMinViewport() const { return mMinViewPort; }

const std::vector<Structs::RateDistortionTradeOffPointsStruct::Type> & GetRateDistortionTradeOffPoints() const
{
return mRateDistortionTradeOffPointsList;
}

uint32_t GetMaxContentBufferSize() const
{
return mMaxContentBufferSize;
}
uint32_t GetMaxContentBufferSize() const { return mMaxContentBufferSize; }

const AudioCapabilitiesStruct & GetMicrophoneCapabilities() const
{
return mMicrophoneCapabilities;
}
const AudioCapabilitiesStruct & GetMicrophoneCapabilities() const { return mMicrophoneCapabilities; }

const AudioCapabilitiesStruct & GetSpeakerCapabilities() const
{
return mSpeakerCapabilities;
}
const AudioCapabilitiesStruct & GetSpeakerCapabilities() const { return mSpeakerCapabilities; }

TwoWayTalkSupportTypeEnum GetTwoWayTalkSupport() const
{
return mTwoWayTalkSupport;
}
TwoWayTalkSupportTypeEnum GetTwoWayTalkSupport() const { return mTwoWayTalkSupport; }

const std::vector<Structs::SnapshotParamsStruct::Type> & GetSupportedSnapshotParams() const
{
return mSupportedSnapshotParamsList;
}

uint32_t GetMaxNetworkBandwidth() const
{
return mMaxNetworkBandwidth;
}
uint32_t GetMaxNetworkBandwidth() const { return mMaxNetworkBandwidth; }

uint16_t GetCurrentFrameRate() const
{
return mCurrentFrameRate;
}
uint16_t GetCurrentFrameRate() const { return mCurrentFrameRate; }

bool GetHDRModeEnabled() const
{
return mHDRModeEnabled;
}
bool GetHDRModeEnabled() const { return mHDRModeEnabled; }

const std::unordered_set<chip::FabricIndex> & GetFabricsUsingCamera() const
{
return mFabricsUsingCamera;
}
const std::unordered_set<chip::FabricIndex> & GetFabricsUsingCamera() const { return mFabricsUsingCamera; }

const std::vector<VideoStreamStruct> & GetAllocatedVideoStreams() const
{
return mAllocatedVideoStreams;
}
const std::vector<VideoStreamStruct> & GetAllocatedVideoStreams() const { return mAllocatedVideoStreams; }

const std::vector<AudioStreamStruct> & GetAllocatedAudioStreams() const
{
return mAllocatedAudioStreams;
}
const std::vector<AudioStreamStruct> & GetAllocatedAudioStreams() const { return mAllocatedAudioStreams; }

const std::vector<SnapshotStreamStruct> & GetAllocatedSnapshotStreams() const
{
return mAllocatedSnapshotStreams;
}
const std::vector<SnapshotStreamStruct> & GetAllocatedSnapshotStreams() const { return mAllocatedSnapshotStreams; }

const StreamTypeEnum * GetRankedVideoStreamPriorities() const
{
return mRankedVideoStreamPriorities;
}
const StreamTypeEnum * GetRankedVideoStreamPriorities() const { return mRankedVideoStreamPriorities; }

bool GetSoftRecordingPrivacyModeEnabled() const
{
return mSoftRecordingPrivacyModeEnabled;
}
bool GetSoftRecordingPrivacyModeEnabled() const { return mSoftRecordingPrivacyModeEnabled; }

bool GetSoftLivestreamPrivacyModeEnabled() const
{
return mSoftLivestreamPrivacyModeEnabled;
}
bool GetSoftLivestreamPrivacyModeEnabled() const { return mSoftLivestreamPrivacyModeEnabled; }

bool GetHardPrivacyModeOn() const
{
return mHardPrivacyModeOn;
}
bool GetHardPrivacyModeOn() const { return mHardPrivacyModeOn; }

TriStateAutoEnum GetNightVision() const
{
return mNightVision;
}
TriStateAutoEnum GetNightVision() const { return mNightVision; }

TriStateAutoEnum GetNightVisionIllum() const
{
return mNightVisionIllum;
}
TriStateAutoEnum GetNightVisionIllum() const { return mNightVisionIllum; }

const ViewportStruct & GetViewport() const
{
return mViewport;
}
const ViewportStruct & GetViewport() const { return mViewport; }

bool GetSpeakerMuted() const
{
return mSpeakerMuted;
}
bool GetSpeakerMuted() const { return mSpeakerMuted; }

uint8_t GetSpeakerVolumeLevel() const
{
return mSpeakerVolumeLevel;
}
uint8_t GetSpeakerVolumeLevel() const { return mSpeakerVolumeLevel; }

uint8_t GetSpeakerMaxLevel() const
{
return mSpeakerMaxLevel;
}
uint8_t GetSpeakerMaxLevel() const { return mSpeakerMaxLevel; }

uint8_t GetSpeakerMinLevel() const
{
return mSpeakerMinLevel;
}
uint8_t GetSpeakerMinLevel() const { return mSpeakerMinLevel; }

bool GetMicrophoneMuted() const
{
return mMicrophoneMuted;
}
bool GetMicrophoneMuted() const { return mMicrophoneMuted; }

uint8_t GetMicrophoneVolumeLevel() const
{
return mMicrophoneVolumeLevel;
}
uint8_t GetMicrophoneVolumeLevel() const { return mMicrophoneVolumeLevel; }

uint8_t GetMicrophoneMaxLevel() const
{
return mMicrophoneMaxLevel;
}
uint8_t GetMicrophoneMaxLevel() const { return mMicrophoneMaxLevel; }

uint8_t GetMicrophoneMinLevel() const
{
return mMicrophoneMinLevel;
}
uint8_t GetMicrophoneMinLevel() const { return mMicrophoneMinLevel; }

bool IsMicrophoneAGCEnabled() const
{
return mMicrophoneAGCEnabled;
}
bool IsMicrophoneAGCEnabled() const { return mMicrophoneAGCEnabled; }

uint16_t GetImageRotation() const
{
return mImageRotation;
}
uint16_t GetImageRotation() const { return mImageRotation; }

bool GetImageFlipHorizontal() const
{
return mImageFlipHorizontal;
}
bool GetImageFlipHorizontal() const { return mImageFlipHorizontal; }

bool GetImageFlipVertical() const
{
return mImageFlipVertical;
}
bool GetImageFlipVertical() const { return mImageFlipVertical; }

bool GetLocalVideoRecordingEnabled() const
{
return mLocalVideoRecordingEnabled;
}
bool GetLocalVideoRecordingEnabled() const { return mLocalVideoRecordingEnabled; }

bool GetLocalSnapshotRecordingEnabled() const
{
return mLocalSnapshotRecordingEnabled;
}
bool GetLocalSnapshotRecordingEnabled() const { return mLocalSnapshotRecordingEnabled; }

bool GetStatusLightEnabled() const
{
return mStatusLightEnabled;
}
bool GetStatusLightEnabled() const { return mStatusLightEnabled; }

Globals::ThreeLevelAutoEnum GetStatusLightBrightness() const
{
return mStatusLightBrightness;
}
Globals::ThreeLevelAutoEnum GetStatusLightBrightness() const { return mStatusLightBrightness; }

EndpointId GetEndpointId() { return AttributeAccessInterface::GetEndpointId().Value(); }

Expand Down Expand Up @@ -566,7 +449,7 @@ class CameraAVStreamMgmtServer : public CommandHandlerInterface, public Attribut
bool mHardPrivacyModeOn = false;
TriStateAutoEnum mNightVision = TriStateAutoEnum::kOn;
TriStateAutoEnum mNightVisionIllum = TriStateAutoEnum::kOn;
ViewportStruct mViewport = {0, 0, 0, 0};
ViewportStruct mViewport = { 0, 0, 0, 0 };
bool mSpeakerMuted = false;
uint8_t mSpeakerVolumeLevel = 0;
uint8_t mSpeakerMaxLevel = kMaxSpeakerLevel;
Expand Down

0 comments on commit e0775c4

Please sign in to comment.