Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leapmotion/dshowbaseclasses
Microsoft DirectShow base classes wrapped in CMake
https://github.com/leapmotion/dshowbaseclasses
Last synced: 2 days ago
JSON representation
Microsoft DirectShow base classes wrapped in CMake
- Host: GitHub
- URL: https://github.com/leapmotion/dshowbaseclasses
- Owner: leapmotion
- Created: 2015-05-26T20:53:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-21T17:14:18.000Z (about 9 years ago)
- Last Synced: 2024-04-14T22:44:17.774Z (7 months ago)
- Language: C++
- Size: 508 KB
- Stars: 7
- Watchers: 38
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
DirectShow Base Classes
=====This file just contains the Microsoft DirectShow base classes wrapped up in a nice CMakeLists.txt for use with projects that use CMake but still rely on these old libraries. Some modifications have been made to make these source compile without errors on the latest platform SDK, other than that they are provided more or less as they came with the Windows 7.1 SDK Samples.
Configuration
---
To configure, build, and package:cmake . -G "Visual Studio 12 2013 Win64"
cmake . --build . --config Release
cpackThe packaged result will be called `baseclasses--win64.zip`. 32 bit builds are configured the same way, just omit the `Win64` statement.
Usage
---
This project was built with the intention of being found with CMake's [`find_package`](http://www.cmake.org/cmake/help/v3.2/command/find_package.html) command. Usage is as follows:```CMake
find_package(baseclasses 1.0 REQUIRED)
target_link_libraries(MyDShowProject BaseClasses::BaseClasses)
```You shouldn't need to reference any include directories explicitly. They will be added for you by the `target_link_libraries` command. To include BaseClasses in your project:
```C++
#includeclass CMyFilter:
public CTransformFilter
{
public:
CMyFilter(void);HRESULT CheckMediaType(const CMediaType* pmt) override;
HRESULT DoRenderSample(IMediaSample* pSample) override;
};
```