diff options
| author | Sanjeev Reddy <[email protected]> | 2017-03-09 17:18:02 -0800 |
|---|---|---|
| committer | Sanjeev Reddy <[email protected]> | 2017-03-09 17:18:02 -0800 |
| commit | e4581d8cd1bcc5108786b082a1ec24007a508847 (patch) | |
| tree | 1f49cee3db80a5c7aa7e8c495bf0395ec459730c /AVStream/avscamera/sys/Sensor.cpp | |
| parent | 1098c82e7d71d3f47157e0837cb939203f944939 (diff) | |
Fix OACR code analysis warnings
Diffstat (limited to 'AVStream/avscamera/sys/Sensor.cpp')
| -rw-r--r-- | AVStream/avscamera/sys/Sensor.cpp | 24 |
1 files changed, 20 insertions, 4 deletions
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 ); + } + } +} + /*************************************************/ |
