mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #12561] [MERGED] Use enums for encoding options #13253
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/12561
Author: @Shadowghost
Created: 9/1/2024
Status: ✅ Merged
Merged: 9/9/2024
Merged by: @crobibero
Base:
master← Head:encoding-options-enums📝 Commits (5)
ae56cefUse enums for encoding options6f8adf8Fixup6fa7829Fix formatting23f0ddaFixup79f0accFix typo📊 Changes
20 files changed (+883 additions, -475 deletions)
View changed files
📝
Jellyfin.Api/Controllers/DynamicHlsController.cs(+2 -2)📝
Jellyfin.Api/Controllers/VideosController.cs(+1 -1)📝
Jellyfin.Server/Migrations/MigrationRunner.cs(+2 -1)📝
Jellyfin.Server/Migrations/PreStartupRoutines/CreateNetworkConfiguration.cs(+0 -1)➕
Jellyfin.Server/Migrations/PreStartupRoutines/MigrateEncodingOptions.cs(+245 -0)📝
Jellyfin.Server/Migrations/PreStartupRoutines/MigrateMusicBrainzTimeout.cs(+5 -5)📝
Jellyfin.Server/Migrations/PreStartupRoutines/MigrateNetworkConfiguration.cs(+44 -41)📝
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs(+259 -335)📝
MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs(+9 -8)📝
MediaBrowser.MediaEncoding/Transcoding/TranscodeManager.cs(+1 -6)📝
MediaBrowser.Model/Configuration/EncodingOptions.cs(+14 -12)➕
MediaBrowser.Model/Entities/DeinterlaceMethod.cs(+19 -0)➕
MediaBrowser.Model/Entities/EncoderPreset.cs(+64 -0)➕
MediaBrowser.Model/Entities/HardwareAccelerationType.cs(+49 -0)➕
MediaBrowser.Model/Entities/TonemappingAlgorithm.cs(+49 -0)➕
MediaBrowser.Model/Entities/TonemappingMode.cs(+34 -0)➕
MediaBrowser.Model/Entities/TonemappingRange.cs(+24 -0)➖
MediaBrowser.Model/Session/HardwareEncodingType.cs(+0 -43)📝
MediaBrowser.Model/Session/TranscodingInfo.cs(+60 -18)📝
src/Jellyfin.MediaEncoding.Hls/Playlist/DynamicHlsPlaylistGenerator.cs(+2 -2)📄 Description
Add enums for:
A migration for the existing config was also added for completeness' sake. Since the string values are the same, it should not be necessary.
I also made sure they are backwards compatible with our current values by enforcing lowercase.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.