mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
500fd453a1
Android sample for VideoWriter #24592 This PR: * adds an Android sample for video recording with MediaNDK and built-in MJPEG. * adds a flag `--no_media_ndk` for `build_sdk.py` script to disable MediaNDK linkage. ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake
13 lines
383 B
CMake
13 lines
383 B
CMake
set(sample example-video-recorder)
|
|
|
|
if(BUILD_FAT_JAVA_LIB)
|
|
set(native_deps opencv_java)
|
|
else()
|
|
set(native_deps videoio)
|
|
endif()
|
|
|
|
add_android_project(${sample} "${CMAKE_CURRENT_SOURCE_DIR}" LIBRARY_DEPS "${OPENCV_ANDROID_LIB_DIR}" SDK_TARGET 11 "${ANDROID_SDK_TARGET}" NATIVE_DEPS ${native_deps})
|
|
if(TARGET ${sample})
|
|
add_dependencies(opencv_android_examples ${sample})
|
|
endif()
|