From e4581d8cd1bcc5108786b082a1ec24007a508847 Mon Sep 17 00:00:00 2001 From: Sanjeev Reddy Date: Thu, 9 Mar 2017 17:18:02 -0800 Subject: Fix OACR code analysis warnings --- AVStream/avscamera/sys/Sensor.cpp | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'AVStream/avscamera/sys/Sensor.cpp') diff --git a/AVStream/avscamera/sys/Sensor.cpp b/AVStream/avscamera/sys/Sensor.cpp index cb310dcc..19988073 100644 --- a/AVStream/avscamera/sys/Sensor.cpp +++ b/AVStream/avscamera/sys/Sensor.cpp @@ -160,7 +160,7 @@ Initialize() m_Synthesizer = new (NonPagedPoolNx, 'sneS') CSynthesizer *[m_PinCount]; m_CapturePin = new (NonPagedPoolNx, 'sneS') ICapturePin *[m_PinCount]; m_VideoInfoHeader = new (NonPagedPoolNx, 'sneS') PKS_VIDEOINFOHEADER[m_PinCount]; - m_InterruptTime = new (NonPagedPoolNx, 'sneS') ULONG[m_PinCount]; + m_InterruptTime = new (NonPagedPoolNx, 'sneS') LONGLONG[m_PinCount]; m_LastMappingsCompleted = new (NonPagedPoolNx, 'sneS') ULONG[m_PinCount]; if( !m_HardwareSimulation || @@ -1021,9 +1021,9 @@ SetQPC( NTSTATUS CSensor:: SetPFS( - _In_ ISP_FRAME_SETTINGS *pIspSettings, - _In_ ULONG FrameLimit, - _In_ ULONG LoopLimit + _In_opt_ ISP_FRAME_SETTINGS *pIspSettings, + _In_ ULONG FrameLimit, + _In_ ULONG LoopLimit ) /*++ @@ -1083,6 +1083,22 @@ Return Value: return STATUS_SUCCESS; } +void +CSensor:: +SetSynthesizerAttribute( + CSynthesizer::Attribute Attrib, + LONGLONG Info +) +{ + for( ULONG Pin=0; IsValidIndex(Pin); Pin++ ) + { + if( m_Synthesizer[Pin] ) + { + m_Synthesizer[Pin]->Set( Attrib, Info ); + } + } +} + /*************************************************/ -- cgit v1.3.1