diff options
| author | Joel Corley <[email protected]> | 2018-06-29 19:19:18 -0700 |
|---|---|---|
| committer | Joel Corley <[email protected]> | 2018-06-29 19:19:18 -0700 |
| commit | 30ddbb997660fa4ae3608759b9d2d0789774ccdc (patch) | |
| tree | d656c50cea303cb554460d529038fe5364634b01 /avstream/avscamera/sys/hwsim.cpp | |
| parent | 6c1981b8504329521343ad00f32daa847fa6083a (diff) | |
Update AVStream / Camera samples for RS4.
Diffstat (limited to 'avstream/avscamera/sys/hwsim.cpp')
| -rw-r--r-- | avstream/avscamera/sys/hwsim.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/avstream/avscamera/sys/hwsim.cpp b/avstream/avscamera/sys/hwsim.cpp index 4309befb..2db48d30 100644 --- a/avstream/avscamera/sys/hwsim.cpp +++ b/avstream/avscamera/sys/hwsim.cpp @@ -1195,16 +1195,16 @@ Return Value: // Generate a "time stamp" just to overlay it onto the capture image. // It makes it more exciting than bars that do nothing. // - // Only set these values if it's a preview simulation. - // Note: This was simpler than overloading CHardwareSimulation... - if( m_Sensor->IsPreviewIndex(m_PinID) ) + // Note: Streaming pins have their own indexes; but still pins track + // the most recent streaming pin's index. + if (!m_Sensor->IsStillIndex(m_PinID)) { DBG_TRACE("QPC=0x%016llX", Qpc); // Broadcast the preview pin's info to all pin simulations. - m_Sensor->SetSynthesizerAttribute(CSynthesizer::FrameNumber, m_InterruptTime); - m_Sensor->SetSynthesizerAttribute(CSynthesizer::RelativePts, (m_InterruptTime + 1) * m_TimePerFrame ); - m_Sensor->SetSynthesizerAttribute(CSynthesizer::QpcTime, Qpc ); + m_Sensor->SetSynthesizerAttribute(CSynthesizer::FrameNumber, m_InterruptTime, m_PinID); + m_Sensor->SetSynthesizerAttribute(CSynthesizer::RelativePts, (m_InterruptTime + 1) * m_TimePerFrame, m_PinID); + m_Sensor->SetSynthesizerAttribute(CSynthesizer::QpcTime, Qpc, m_PinID); } m_Synthesizer->DoSynthesize(); |
