[DO NOT MERGE] NVIDIA Video Codec SDK を 13.0 にアップデート
この PR のマージタイミング
Ubuntu で NVIDIA ドライバー 570 が利用可能になった段階でこの PR をマージ予定です。
2025 年 4 月 10 日時点で Ubuntu Server のドキュメントでは NVIDIA ドライバー 550 が recommend されています。 参考 : https://documentation.ubuntu.com/server/how-to/graphics/install-nvidia-drivers/index.html
This pull request includes several updates and improvements to the NVIDIA Video Codec SDK integration, as well as enhancements to the NvDecoder class. The most important changes include updating the SDK version, modifying the NvCodecVideoEncoderImpl class to support new structures, and enhancing memory optimization in the NvDecoder class.
SDK Updates:
- Updated
NVIDIA Video Codec SDKto version 13.0 and modified related documentation links inREADME.mdandCHANGES.mdfiles. [1] [2]
Code Modifications:
- Updated
NvCodecVideoEncoderImplclass to use the newNvEncOutputFramestructure and adjusted related encoding logic. [1] [2] [3] - Added support for new surface formats
NV16andP216inNvDecoder.cppand updated chroma format handling. [1] [2] [3] [4]
Memory Optimization:
- Enhanced
NvDecoderclass to optimize memory usage by dynamically adjusting the number of decode surfaces based on the current picture index and codec. [1] [2] [3] [4] [5] - Modified the constructor of
NvDecoderto include parameters for initial decode surfaces and custom CUDA stream, and adjusted the parser parameters accordingly. [1] [2]
These changes improve the performance and compatibility of the codec integration, ensuring better handling of new SDK features and more efficient resource management.