67587fbced
Previously, due to a bug in libdshowcapture, the NV12 format was actually being used for YV12 erroneously, and no actual support for YV12 existed. This fixes the bug with NV12 and adds support for YV12.
55 lines
1.6 KiB
CMake
55 lines
1.6 KiB
CMake
project(win-dshow)
|
|
|
|
find_package(FFMpeg REQUIRED COMPONENTS avcodec avutil)
|
|
include_directories(${FFMPEG_INCLUDE_DIRS})
|
|
|
|
set(win-dshow_HEADERS
|
|
encode-dstr.hpp
|
|
ffmpeg-decode.h)
|
|
|
|
set(win-dshow_SOURCES
|
|
win-dshow.cpp
|
|
ffmpeg-decode.c)
|
|
|
|
set(libdshowcapture_SOURCES
|
|
libdshowcapture/source/capture-filter.cpp
|
|
libdshowcapture/source/output-filter.cpp
|
|
libdshowcapture/source/dshowcapture.cpp
|
|
libdshowcapture/source/dshowencode.cpp
|
|
libdshowcapture/source/device.cpp
|
|
libdshowcapture/source/encoder.cpp
|
|
libdshowcapture/source/dshow-base.cpp
|
|
libdshowcapture/source/dshow-demux.cpp
|
|
libdshowcapture/source/dshow-enum.cpp
|
|
libdshowcapture/source/dshow-formats.cpp
|
|
libdshowcapture/source/dshow-media-type.cpp
|
|
libdshowcapture/source/dshow-encoded-device.cpp
|
|
libdshowcapture/source/log.cpp)
|
|
|
|
set(libdshowcapture_HEADERS
|
|
libdshowcapture/dshowcapture.hpp
|
|
libdshowcapture/source/IVideoCaptureFilter.h
|
|
libdshowcapture/source/capture-filter.hpp
|
|
libdshowcapture/source/output-filter.hpp
|
|
libdshowcapture/source/device.hpp
|
|
libdshowcapture/source/encoder.hpp
|
|
libdshowcapture/source/dshow-base.hpp
|
|
libdshowcapture/source/dshow-demux.hpp
|
|
libdshowcapture/source/dshow-device-defs.hpp
|
|
libdshowcapture/source/dshow-enum.hpp
|
|
libdshowcapture/source/dshow-formats.hpp
|
|
libdshowcapture/source/dshow-media-type.hpp
|
|
libdshowcapture/source/log.hpp)
|
|
|
|
add_library(win-dshow MODULE
|
|
${win-dshow_SOURCES}
|
|
${win-dshow_HEADERS}
|
|
${libdshowcapture_SOURCES}
|
|
${libdshowcapture_HEADERS})
|
|
target_link_libraries(win-dshow
|
|
libobs
|
|
strmiids.lib
|
|
${FFMPEG_LIBRARIES})
|
|
|
|
install_obs_plugin_with_data(win-dshow data)
|