Skip to content

Commit d9357bb

Browse files
committed
Add ESP-IDF support for x264 component
1 parent 9ae7bf0 commit d9357bb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

components/x264/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
file(REAL_PATH "x264-snapshot-20181221-2245-stable" x264_THIRDPARTY_ROOT)
2+
3+
idf_component_register(
4+
SRC_DIRS
5+
"${x264_THIRDPARTY_ROOT}/common"
6+
"${x264_THIRDPARTY_ROOT}/encoder"
7+
EXCLUDE_SRCS
8+
"${x264_THIRDPARTY_ROOT}/common/opencl.c"
9+
"${x264_THIRDPARTY_ROOT}/common/threadpool.c"
10+
"${x264_THIRDPARTY_ROOT}/common/win32thread.c"
11+
"${x264_THIRDPARTY_ROOT}/encoder/rdo.c"
12+
"${x264_THIRDPARTY_ROOT}/encoder/slicetype.c"
13+
INCLUDE_DIRS "." "${x264_THIRDPARTY_ROOT}"
14+
)
15+
16+
target_compile_options(${COMPONENT_LIB} PRIVATE
17+
-Wno-error=format-truncation=
18+
-DBIT_DEPTH=8
19+
-DHIGH_BIT_DEPTH=0
20+
)

0 commit comments

Comments
 (0)