feat(subs): render resolution setting for the avfoundation VO
This commit is contained in:
@@ -40,6 +40,11 @@ enum ContinueWatchingAction { play, details }
|
||||
|
||||
enum SubAssOverride { no, yes, scale, force, strip }
|
||||
|
||||
/// Resolution ASS/image subtitles are rasterized at on the avfoundation VO
|
||||
/// (iOS/tvOS): the display's, or the video's (much cheaper on 4K displays;
|
||||
/// subs can't carry more detail than the video they're typeset against).
|
||||
enum SubtitleRenderResolution { screen, video }
|
||||
|
||||
enum DvConversionModePreference { auto, disabled, dv81, hevcStrip }
|
||||
|
||||
extension DvConversionModePreferenceNativeValue on DvConversionModePreference {
|
||||
@@ -311,6 +316,11 @@ class SettingsService extends BaseSharedPreferencesService {
|
||||
values: SubAssOverride.values,
|
||||
defaultValue: SubAssOverride.no,
|
||||
);
|
||||
static const subtitleRenderResolution = EnumPref<SubtitleRenderResolution>(
|
||||
'subtitle_render_resolution',
|
||||
values: SubtitleRenderResolution.values,
|
||||
defaultValue: SubtitleRenderResolution.screen,
|
||||
);
|
||||
static const subtitleBold = BoolPref('subtitle_bold');
|
||||
static const subtitleItalic = BoolPref('subtitle_italic');
|
||||
static const cleanedOldImageCache = BoolPref('cleaned_old_image_cache');
|
||||
|
||||
Reference in New Issue
Block a user