diff options
author | Samuel Nevala <samuel.nevala@intopalo.com> | 2015-09-23 15:18:39 +0300 |
---|---|---|
committer | Samuel Nevala <samuel.nevala@intopalo.com> | 2015-09-29 08:12:34 +0000 |
commit | e489e7b5b1bf41101cb95785fd1aeb30e3a2f282 (patch) | |
tree | 3fe6fcc9be02ac0ef5484bb13833970ebd710071 /src/plugins/winrt/qwinrtcameracontrol.cpp | |
parent | 416db33110f0392ba3f882f395168cbe37fed6ff (diff) | |
download | qtmultimedia-e489e7b5b1bf41101cb95785fd1aeb30e3a2f282.tar.gz |
winrt: Introduce DirectX pipeline bypass.
Qt Windows Runtime camera uses DirectVideo to convert NV12 format
texture to BGRA format texture. As the EGL Node can draw using NV12
already, allow video render control to choose which path to take. By
default use DirectVideo. Bypass can be used as fallback when
DirectVideo cannot be used or is not working.
Task-Id: QTBUG-48331
Change-Id: I0cb87a7c4523bfb60610e6b41ab3fb05aff092a1
Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
Diffstat (limited to 'src/plugins/winrt/qwinrtcameracontrol.cpp')
-rw-r--r-- | src/plugins/winrt/qwinrtcameracontrol.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/plugins/winrt/qwinrtcameracontrol.cpp b/src/plugins/winrt/qwinrtcameracontrol.cpp index 6abf3a052..b503007c3 100644 --- a/src/plugins/winrt/qwinrtcameracontrol.cpp +++ b/src/plugins/winrt/qwinrtcameracontrol.cpp @@ -198,22 +198,6 @@ private: ComPtr<IRegionOfInterest> regionOfInterest; }; -class CriticalSectionLocker -{ -public: - CriticalSectionLocker(CRITICAL_SECTION *section) - : m_section(section) - { - EnterCriticalSection(m_section); - } - ~CriticalSectionLocker() - { - LeaveCriticalSection(m_section); - } -private: - CRITICAL_SECTION *m_section; -}; - class MediaStream : public RuntimeClass<RuntimeClassFlags<WinRtClassicComMix>, IMFStreamSink, IMFMediaEventGenerator, IMFMediaTypeHandler> { enum Flags { NoFlag = 0, BufferLockRequired = 1 }; |