diff options
| author | j-leungyy <[email protected]> | 2021-05-25 09:06:09 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-25 09:06:09 -0700 |
| commit | 4fe5787f122fdfc45253b45f9fad3983f53d86df (patch) | |
| tree | a11e06f8951d4b7b847f6f5a708f86df87d637db /general/SimpleMediaSource/MediaSource/pch.cpp | |
| parent | 53afd12aadb8aff15097f1546d4f80c6074e0bdc (diff) | |
update simplemediasource sample (#614)
* update simplemediasource wrl to winrtcpp COM, add mediatype NV12 (SimpleFrameGenerator), fix Mediatype missing attribute (bitrate), add IMFActivate, IMFSampleAllocator interface and implementation, update hardcode arg with named variables, cleanup sample for StreamIndex and StreamId, add sample KSControl
* address PR-it1 comments
* address comment from PR-it2, replace manual define of IKSControl by ksproxy.h
* remove unuse header
* address comment from PR
* fix sdk to latest, add driversign algorithm
* remove nudget, use submodule
Diffstat (limited to 'general/SimpleMediaSource/MediaSource/pch.cpp')
| -rw-r--r-- | general/SimpleMediaSource/MediaSource/pch.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/general/SimpleMediaSource/MediaSource/pch.cpp b/general/SimpleMediaSource/MediaSource/pch.cpp new file mode 100644 index 00000000..e40b6b12 --- /dev/null +++ b/general/SimpleMediaSource/MediaSource/pch.cpp @@ -0,0 +1,26 @@ +// +// Copyright (C) Microsoft Corporation. All rights reserved. +// + +// pch.cpp: source file corresponding to the pre-compiled header +#include "pch.h" + +// When you are using pre-compiled headers, this source file is necessary for compilation to succeed. + +namespace winrt +{ + template<> bool is_guid_of<IMFMediaSourceEx>(guid const& id) noexcept + { + return is_guid_of<IMFMediaSourceEx, IMFMediaSource, IMFMediaEventGenerator>(id); + } + + template<> bool is_guid_of<IMFMediaStream2>(guid const& id) noexcept + { + return is_guid_of<IMFMediaStream2, IMFMediaStream, IMFMediaEventGenerator>(id); + } + + template<> bool is_guid_of<IMFActivate>(guid const& id) noexcept + { + return is_guid_of<IMFActivate, IMFAttributes>(id); + } +}
\ No newline at end of file |
