mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(server): hardware video acceleration for Rockchip SOCs via RKMPP (#4645)
* feat(server): hardware video acceleration for Rockchip SOCs via RKMPP * add tests * use LD_LIBRARY_PATH for custom ffmpeg * incorporate review feedback * code re-use for ffmpeg call * review feedback
This commit is contained in:
parent
c54a188154
commit
ce04e9e07a
11 changed files with 230 additions and 27 deletions
3
mobile/openapi/lib/model/transcode_hw_accel.dart
generated
3
mobile/openapi/lib/model/transcode_hw_accel.dart
generated
|
|
@ -26,6 +26,7 @@ class TranscodeHWAccel {
|
|||
static const nvenc = TranscodeHWAccel._(r'nvenc');
|
||||
static const qsv = TranscodeHWAccel._(r'qsv');
|
||||
static const vaapi = TranscodeHWAccel._(r'vaapi');
|
||||
static const rkmpp = TranscodeHWAccel._(r'rkmpp');
|
||||
static const disabled = TranscodeHWAccel._(r'disabled');
|
||||
|
||||
/// List of all possible values in this [enum][TranscodeHWAccel].
|
||||
|
|
@ -33,6 +34,7 @@ class TranscodeHWAccel {
|
|||
nvenc,
|
||||
qsv,
|
||||
vaapi,
|
||||
rkmpp,
|
||||
disabled,
|
||||
];
|
||||
|
||||
|
|
@ -75,6 +77,7 @@ class TranscodeHWAccelTypeTransformer {
|
|||
case r'nvenc': return TranscodeHWAccel.nvenc;
|
||||
case r'qsv': return TranscodeHWAccel.qsv;
|
||||
case r'vaapi': return TranscodeHWAccel.vaapi;
|
||||
case r'rkmpp': return TranscodeHWAccel.rkmpp;
|
||||
case r'disabled': return TranscodeHWAccel.disabled;
|
||||
default:
|
||||
if (!allowNull) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue