opencv/samples/tapi
Yan Wen f54286b672
Merge pull request #27453 from MELSunny:4.x
Add Raspberry Pi 4 and 5 V4L2 Stateless HEVC Hardware Acceleration with FFmpeg #27453

This PR enables V4L2 stateless HEVC hardware acceleration for Raspberry Pi 5 within OpenCV's videoio module. It leverages FFmpeg's drm acceleration ([FFmpeg API changes](ee1f79b0fa/doc/APIchanges (L1529))), significantly improving HEVC decoding performance on RPi5 for robotics and embedded vision applications.

I have a working proof-of-concept with local benchmarks showing clear gains.

Checklist Status:

Ready: License, branch (4.x), FFmpeg reference, and (linked) related issue (#27452).
Seeking Guidance: Need help with formal C++ performance/accuracy tests, opencv_extra integration, and full documentation/examples.
As a Python developer, I welcome C++ best practice feedback and assistance with testing setup.

### 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
- [ ] 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-07-18 11:19:58 +03:00
..
bgfg_segm.cpp updating python tutorials + providing necessary data 2016-10-26 13:14:20 +02:00
camshift.cpp update cpp samples and tutorials 2016-06-26 20:55:00 +03:00
clahe.cpp samples: use findFile() in T-API samples 2018-11-16 18:08:22 +00:00
CMakeLists.txt Merge pull request #16150 from alalek:cmake_avoid_deprecated_link_private 2019-12-13 17:52:40 +03:00
dense_optical_flow.cpp Merge pull request #13084 from vpisarev:shuffle_optflow_algos 2018-11-09 17:52:06 +03:00
hog.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2019-09-05 14:29:22 +03:00
opencl_custom_kernel.cpp samples: use findFile() in T-API samples 2018-11-16 18:08:22 +00:00
pyrlk_optical_flow.cpp samples: use findFile() in T-API samples 2018-11-16 18:08:22 +00:00
squares.cpp samples: use findFile() in T-API samples 2018-11-16 18:08:22 +00:00
ufacedetect.cpp Add namespace specifier for format() 2021-04-21 14:08:52 +08:00
video_acceleration.cpp Merge pull request #27453 from MELSunny:4.x 2025-07-18 11:19:58 +03:00