Skip to content

Commit

Permalink
Added support for 0-copy decode and display using VAAPI and EGL
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 9, 2023
1 parent 1639c7e commit 49d08ef
Show file tree
Hide file tree
Showing 2 changed files with 440 additions and 179 deletions.
8 changes: 7 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,17 @@ if(HAVE_LIBUDEV_H)
add_definitions(-DHAVE_LIBUDEV_H)
endif()

set(FFmpeg_FIND_COMPONENTS AVCODEC AVFORMAT AVUTIL SWSCALE)
include("${SDL3_SOURCE_DIR}/cmake/FindFFmpeg.cmake")
if(FFmpeg_FOUND AND FFmpeg_AVCODEC_VERSION VERSION_GREATER_EQUAL "60")
add_sdl_test_executable(testffmpeg NO_C90 SOURCES testffmpeg.c ${icon_bmp_header})
target_link_libraries(testffmpeg PRIVATE ${FFMPEG_LIBRARIES})
if(HAVE_OPENGLES_V2)
#message(STATUS "Enabling EGL support in testffmpeg")
target_compile_definitions(testffmpeg PRIVATE HAVE_EGL)
if(TARGET OpenGL::EGL)
target_link_libraries(testffmpeg PRIVATE OpenGL::EGL)
endif()
endif()
else()
message(STATUS "Can't find ffmpeg 6.0 or newer, skipping testffmpeg")
endif()
Expand Down
Loading

0 comments on commit 49d08ef

Please sign in to comment.