Merge commit '4870214d575293257604fa75a6458f0f0a7ea083' as 'external/yuv2rgb'

This commit is contained in:
2026-05-14 11:28:27 +02:00
15 changed files with 2347 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
cmake_minimum_required (VERSION 2.6)
project (yuv_rgb)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Wextra -pedantic -std=c99")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -std=c99")
set(USE_FFMPEG FALSE CACHE BOOL "Enable ffmpeg")
if(USE_FFMPEG)
add_definitions(-DUSE_FFMPEG=1)
endif(USE_FFMPEG)
set(USE_IPP FALSE CACHE BOOL "Enable IPP")
if(USE_IPP)
set(IPP_ROOT /opt/intel CACHE PATH "IPP install path")
include_directories(${IPP_ROOT}/ipp/include)
link_directories(${IPP_ROOT}/ipp/lib/intel64)
add_definitions(-DUSE_IPP=1)
endif(USE_IPP)
include_directories ("${PROJECT_SOURCE_DIR}")
add_executable(test_yuv_rgb test_yuv_rgb.c yuv_rgb.c)
if(USE_FFMPEG)
target_link_libraries(test_yuv_rgb swscale)
endif(USE_FFMPEG)
if(USE_IPP)
target_link_libraries(test_yuv_rgb ippcc)
endif(USE_IPP)