https://github.com/leapmotion/dshowbaseclasses
Microsoft DirectShow base classes wrapped in CMake
https://github.com/leapmotion/dshowbaseclasses
Last synced: 10 months 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 (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-21T17:14:18.000Z (over 10 years ago)
- Last Synced: 2025-06-08T02:08:13.608Z (about 1 year ago)
- Language: C++
- Size: 508 KB
- Stars: 7
- Watchers: 35
- Forks: 11
- Open Issues: 1
-
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
cpack
The 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++
#include
class CMyFilter:
public CTransformFilter
{
public:
CMyFilter(void);
HRESULT CheckMediaType(const CMediaType* pmt) override;
HRESULT DoRenderSample(IMediaSample* pSample) override;
};
```