summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar ameerj2020-10-26 23:07:36 -0400
committerGravatar ameerj2020-10-26 23:07:36 -0400
commiteb67a45ca82bc01ac843c853fd3c17f2a90e0250 (patch)
tree11e78a1b728ef0a608fae43d966b613eb4e6d58a /CMakeLists.txt
parentMerge pull request #4827 from lioncash/trunc (diff)
downloadyuzu-eb67a45ca82bc01ac843c853fd3c17f2a90e0250.tar.gz
yuzu-eb67a45ca82bc01ac843c853fd3c17f2a90e0250.tar.xz
yuzu-eb67a45ca82bc01ac843c853fd3c17f2a90e0250.zip
video_core: NVDEC Implementation
This commit aims to implement the NVDEC (Nvidia Decoder) functionality, with video frame decoding being handled by the FFmpeg library. The process begins with Ioctl commands being sent to the NVDEC and VIC (Video Image Composer) emulated devices. These allocate the necessary GPU buffers for the frame data, along with providing information on the incoming video data. A Submit command then signals the GPU to process and decode the frame data. To decode the frame, the respective codec's header must be manually composed from the information provided by NVDEC, then sent with the raw frame data to the ffmpeg library. Currently, H264 and VP9 are supported, with VP9 having some minor artifacting issues related mainly to the reference frame composition in its uncompressed header. Async GPU is not properly implemented at the moment. Co-Authored-By: David <25727384+ogniK5377@users.noreply.github.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 45bd03a65..8e9502a97 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -263,6 +263,7 @@ if (CONAN_REQUIRED_LIBS)
263 libzip:with_openssl=False 263 libzip:with_openssl=False
264 libzip:enable_windows_crypto=False 264 libzip:enable_windows_crypto=False
265 ) 265 )
266
266 conan_check(VERSION 1.24.0 REQUIRED) 267 conan_check(VERSION 1.24.0 REQUIRED)
267 # Add the bincrafters remote 268 # Add the bincrafters remote
268 conan_add_remote(NAME bincrafters 269 conan_add_remote(NAME bincrafters
@@ -354,6 +355,19 @@ if (NOT LIBUSB_FOUND)
354 set(LIBUSB_LIBRARIES usb) 355 set(LIBUSB_LIBRARIES usb)
355endif() 356endif()
356 357
358# Use system installed ffmpeg.
359if (NOT MSVC)
360 find_package(FFmpeg REQUIRED)
361else()
362 set(FFMPEG_EXT_NAME "ffmpeg-4.2.1")
363 set(FFMPEG_PATH "${CMAKE_BINARY_DIR}/externals/${FFMPEG_EXT_NAME}")
364 download_bundled_external("ffmpeg/" ${FFMPEG_EXT_NAME} "")
365 set(FFMPEG_FOUND YES)
366 set(FFMPEG_INCLUDE_DIR "${FFMPEG_PATH}/include" CACHE PATH "Path to FFmpeg headers" FORCE)
367 set(FFMPEG_LIBRARY_DIR "${FFMPEG_PATH}/bin" CACHE PATH "Path to FFmpeg library" FORCE)
368 set(FFMPEG_DLL_DIR "${FFMPEG_PATH}/bin" CACHE PATH "Path to FFmpeg dll's" FORCE)
369endif()
370
357# Prefer the -pthread flag on Linux. 371# Prefer the -pthread flag on Linux.
358set(THREADS_PREFER_PTHREAD_FLAG ON) 372set(THREADS_PREFER_PTHREAD_FLAG ON)
359find_package(Threads REQUIRED) 373find_package(Threads REQUIRED)