diff options
| author | Wei Mao <[email protected]> | 2017-03-20 18:25:57 -0700 |
|---|---|---|
| committer | Wei Mao <[email protected]> | 2017-03-20 18:27:00 -0700 |
| commit | e044ea456aad4c444fbce00a2d9b56b304d59884 (patch) | |
| tree | 4326af385f0666a3af0b7dfae534db68e3e25785 /avstream/avscamera/sys/Sensor.cpp | |
| parent | bc6e698503f46afbd8fcf62f6d3939147dc49999 (diff) | |
| parent | e4581d8cd1bcc5108786b082a1ec24007a508847 (diff) | |
Merge pull request #118 from saredd/master
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 ); + } + } +} + /*************************************************/ |
