Update the videodecode ctest (#85)

- Copy sample videos and include in install.
- Only using the H26* videos, so the same tests can be used on MI100, which lacks AV1 decode support
- Update test parameters to videodecode test, based on feedback from the rocDecode team.
This commit is contained in:
David Galiffi
2025-01-17 16:10:14 -05:00
zatwierdzone przez Sajina Kandy
rodzic 0a15d355e0
commit 5b439d80a0
2 zmienionych plików z 19 dodań i 1 usunięć
+18
Wyświetl plik
@@ -72,6 +72,20 @@ else()
videodecode_message(AUTHOR_WARNING "${PROJECT_NAME} skipped. Missing RocDecode ...")
endif()
# Copy video files to build directory
if(EXISTS "${ROCmVersion_DIR}/share/rocdecode/video")
if(NOT EXISTS "${CMAKE_BINARY_DIR}/videos")
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/videos")
endif()
file(GLOB_RECURSE video_files "${ROCmVersion_DIR}/share/rocdecode/video/*H26*.mp4")
file(COPY ${video_files} DESTINATION ${CMAKE_BINARY_DIR}/videos)
else()
videodecode_message(
AUTHOR_WARNING
"Source directory ${ROCmVersion_DIR}/share/rocdecode/video does not exist")
endif()
# Find FFMPEG
find_package(FFmpeg)
if(NOT FFMPEG_FOUND)
@@ -146,6 +160,10 @@ if(FFMPEG_FOUND AND ROCDECODE_FOUND)
TARGETS videodecode
DESTINATION bin
COMPONENT rocprofiler-systems-examples)
install(
FILES ${CMAKE_BINARY_DIR}/videos
DESTINATION share/rocprofiler-systems/tests/videos
COMPONENT rocprofiler-systems-examples)
endif()
else()
message(