opencv/samples/android
Rüdiger Ihle a6f72f813d
Merge pull request #26698 from warped-rudi:mediandk2
AndroidMediaNdkVideoWriter pixel format enhancement #26698

* videoio(Android): Add source pixel formats RGBA and GRAY to AndroidMediaNdkVideoWriter

Let AndroidMediaNdkVideoWriter::write() deduce source pixel format from matrix type:

CV_8UC3 -> BGR   (as before)
CV_8UC4 -> RGBA  (use in conjunction with CvCameraViewFrame)
CV_8UC1 -> GRAY

* samples/android/video-recorder: Send images to VideoWriter in RGBA format

### 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
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
2025-01-03 17:53:00 +03:00
..
15-puzzle Removed Android AIDL from build scrips and tutorials as it's not needed since 4.9.0. 2024-01-10 16:27:52 +03:00
camera-calibration Removed Android AIDL from build scrips and tutorials as it's not needed since 4.9.0. 2024-01-10 16:27:52 +03:00
color-blob-detection Removed Android AIDL from build scrips and tutorials as it's not needed since 4.9.0. 2024-01-10 16:27:52 +03:00
face-detection Merge pull request #24843 from asmorkalov:as/android_drop_aidl 2024-01-12 13:45:39 +03:00
image-manipulations Removed Android AIDL from build scrips and tutorials as it's not needed since 4.9.0. 2024-01-10 16:27:52 +03:00
mobilenet-objdetect Removed Android AIDL from build scrips and tutorials as it's not needed since 4.9.0. 2024-01-10 16:27:52 +03:00
qr-detection Removed Android AIDL from build scrips and tutorials as it's not needed since 4.9.0. 2024-01-10 16:27:52 +03:00
tutorial-1-camerapreview Fixed AndroidManifest.xml syntax in Android camerapreview sample 2024-01-17 13:27:59 +03:00
tutorial-2-mixedprocessing Merge pull request #26057 from asmorkalov:as/android_16k_pages 2024-12-31 11:53:04 +03:00
tutorial-3-cameracontrol Removed Android AIDL from build scrips and tutorials as it's not needed since 4.9.0. 2024-01-10 16:27:52 +03:00
tutorial-4-opencl Merge pull request #26057 from asmorkalov:as/android_16k_pages 2024-12-31 11:53:04 +03:00
video-recorder Merge pull request #26698 from warped-rudi:mediandk2 2025-01-03 17:53:00 +03:00
.gitignore Normalized file endings. 2013-08-21 18:59:25 +04:00
build.gradle.in Merge pull request #26057 from asmorkalov:as/android_16k_pages 2024-12-31 11:53:04 +03:00
CMakeLists.txt Merge pull request #24592 from savuor:recorder_android 2023-12-13 15:54:31 +03:00