Skip to content

Commit 1ee7b46

Browse files
committed
Reorganize video decoder sources
Signed-off-by: Joaquin Anton Guirao <[email protected]>
1 parent c17f33c commit 1ee7b46

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+235
-1672
lines changed

dali/operators/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ add_subdirectory(decoder)
2222
add_subdirectory(generic)
2323
add_subdirectory(image)
2424
add_subdirectory(imgcodec)
25-
add_subdirectory(input)
2625
add_subdirectory(io)
2726
add_subdirectory(math)
2827
add_subdirectory(random)
@@ -39,6 +38,9 @@ endif()
3938
if (BUILD_PYTHON)
4039
add_subdirectory(python_function)
4140
endif()
41+
if (BUILD_NVDEC)
42+
add_subdirectory(video)
43+
endif()
4244

4345
# Get all the source files and dump test files
4446
collect_headers(DALI_INST_HDRS PARENT_SCOPE)
@@ -65,7 +67,7 @@ if (NOT OPERATOR_SRCS_PATTERN STREQUAL "" OR
6567
# Those are needed for operators.cc to have all symbols
6668
list(APPEND EXTRA_FILES "${CMAKE_CURRENT_SOURCE_DIR}/util/npp.cc")
6769
list(APPEND EXTRA_FILES "${CMAKE_CURRENT_SOURCE_DIR}/decoder/nvjpeg/nvjpeg_helper.cc")
68-
list(APPEND EXTRA_FILES "${CMAKE_CURRENT_SOURCE_DIR}/reader/nvdecoder/dynlink_nvcuvid.cc")
70+
list(APPEND EXTRA_FILES "${CMAKE_CURRENT_SOURCE_DIR}/video/dynlink_nvcuvid/dynlink_nvcuvid.cc")
6971

7072
list(APPEND OPERATOR_SRCS_PATTERN_EXCLUDE "*test*")
7173
custom_filter(CMAKE_CURRENT_SOURCE_DIR

dali/operators/decoder/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ if (BUILD_NVJPEG)
2424
add_subdirectory(nvjpeg)
2525
endif()
2626

27-
if (BUILD_FFMPEG)
28-
add_subdirectory(video)
29-
endif()
30-
3127
if (BUILD_NVCOMP)
3228
add_subdirectory(inflate)
3329
endif()

dali/operators/input/CMakeLists.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.

dali/operators/reader/CMakeLists.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
add_subdirectory(loader)
1616
add_subdirectory(parser)
17-
if (BUILD_NVDEC)
18-
add_subdirectory(nvdecoder)
19-
endif()
2017

2118
collect_headers(DALI_INST_HDRS PARENT_SCOPE) # TODO (ONLY SUPPORTED ONES)
2219

@@ -36,19 +33,6 @@ endif()
3633

3734
list(APPEND DALI_OPERATOR_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/sequence_reader_op.cc")
3835

39-
if (BUILD_FFMPEG)
40-
list(APPEND DALI_OPERATOR_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/video_reader_decoder_cpu_op.cc")
41-
endif()
42-
43-
if (BUILD_NVDEC)
44-
list(APPEND DALI_OPERATOR_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/video_reader_op.cc")
45-
list(APPEND DALI_OPERATOR_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/video_reader_resize_op.cc")
46-
list(APPEND DALI_OPERATOR_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/video_reader_decoder_gpu_op.cc")
47-
if (BUILD_TEST)
48-
list(APPEND DALI_OPERATOR_TEST_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/video_reader_decoder_op_test.cc")
49-
endif()
50-
endif()
51-
5236
if (BUILD_LIBTAR)
5337
list(APPEND DALI_OPERATOR_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/webdataset_reader_op.cc")
5438
endif()
@@ -80,8 +64,5 @@ if (BUILD_TEST)
8064
if(BUILD_CUFILE)
8165
list(APPEND DALI_OPERATOR_TEST_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/gds_mem_test.cu")
8266
endif()
83-
if(BUILD_NVDEC)
84-
list(APPEND DALI_OPERATOR_TEST_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/video_reader_op_test.cc")
85-
endif()
8667
set(DALI_OPERATOR_TEST_SRCS ${DALI_OPERATOR_TEST_SRCS} PARENT_SCOPE)
8768
endif()

dali/operators/reader/loader/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ if (BUILD_LIBTAR)
1616
add_subdirectory(webdataset)
1717
endif()
1818

19-
if (BUILD_FFMPEG)
20-
add_subdirectory(video)
21-
endif()
22-
2319
# Get all the source files and dump test files
2420
collect_headers(DALI_INST_HDRS PARENT_SCOPE)
2521

@@ -50,11 +46,6 @@ if (BUILD_LIBSND)
5046
"${CMAKE_CURRENT_SOURCE_DIR}/nemo_asr_loader.cc")
5147
endif()
5248

53-
if (BUILD_NVDEC)
54-
set(DALI_OPERATOR_SRCS ${DALI_OPERATOR_SRCS}
55-
"${CMAKE_CURRENT_SOURCE_DIR}/video_loader.cc")
56-
endif()
57-
5849
set(DALI_OPERATOR_TEST_SRCS ${DALI_OPERATOR_TEST_SRCS}
5950
"${CMAKE_CURRENT_SOURCE_DIR}/loader_test.cc"
6051
"${CMAKE_CURRENT_SOURCE_DIR}/sequence_loader_test.cc"

dali/operators/reader/loader/video/CMakeLists.txt

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)