Commit 771a67fb authored by Soomin Lee's avatar Soomin Lee Committed by Jean-Baptiste Kempf

iOS: Add hardware decoding in settings

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 03d3c144
......@@ -270,6 +270,26 @@
<integer>0</integer>
</array>
</dict>
<dict>
<key>Type</key>
<string>PSMultiValueSpecifier</string>
<key>Title</key>
<string>SETTINGS_HWDECODING</string>
<key>Key</key>
<string>codec</string>
<key>DefaultValue</key>
<string></string>
<key>Titles</key>
<array>
<string>SETTINGS_HWDECODING_ON</string>
<string>SETTINGS_HWDECODING_OFF</string>
</array>
<key>Values</key>
<array>
<string></string>
<string>avcodec,all</string>
</array>
</dict>
<dict>
<key>Type</key>
<string>PSGroupSpecifier</string>
......
......@@ -250,6 +250,26 @@
<integer>0</integer>
</array>
</dict>
<dict>
<key>Type</key>
<string>PSMultiValueSpecifier</string>
<key>Title</key>
<string>SETTINGS_HWDECODING</string>
<key>Key</key>
<string>codec</string>
<key>DefaultValue</key>
<string></string>
<key>Titles</key>
<array>
<string>SETTINGS_HWDECODING_ON</string>
<string>SETTINGS_HWDECODING_OFF</string>
</array>
<key>Values</key>
<array>
<string></string>
<string>avcodec,all</string>
</array>
</dict>
<dict>
<key>Type</key>
<string>PSGroupSpecifier</string>
......
B/* A single strings file, whose title is specified in your preferences schema. The strings files provide the localized content to display to the user for each of your preferences. */
......
......@@ -72,6 +72,7 @@ NSString *const VLCDropboxSessionWasAuthorized = @"VLCDropboxSessionWasAuthorize
kVLCSettingSubtitlesFontSize : kVLCSettingSubtitlesFontSizeDefaultValue,
kVLCSettingSubtitlesBoldFont: kVLCSettingSubtitlesBoldFontDefaultValue,
kVLCSettingDeinterlace : kVLCSettingDeinterlaceDefaultValue,
kVLCSettingHWDecoding : kVLCSettingHWDecodingDefault,
kVLCSettingNetworkCaching : kVLCSettingNetworkCachingDefaultValue,
kVLCSettingVolumeGesture : @(YES),
kVLCSettingPlayPauseGesture : @(YES),
......
......@@ -39,6 +39,8 @@
#define kVLCSettingSubtitlesFilePath @"sub-file"
#define kVLCSettingDeinterlace @"deinterlace"
#define kVLCSettingDeinterlaceDefaultValue @(0)
#define kVLCSettingHWDecoding @"codec"
#define kVLCSettingHWDecodingDefault @""
#define kVLCSettingNetworkCaching @"network-caching"
#define kVLCSettingNetworkCachingDefaultValue @(999)
#define kVLCSettingsDecrapifyTitles @"MLDecrapifyTitles"
......
......@@ -1322,9 +1322,10 @@ static inline NSArray * RemoteCommandCenterCommandsToHandle(MPRemoteCommandCente
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
return @{ kVLCSettingNetworkCaching : [defaults objectForKey:kVLCSettingNetworkCaching],
kVLCSettingStretchAudio : [[defaults objectForKey:kVLCSettingStretchAudio] boolValue] ? kVLCSettingStretchAudioOnValue : kVLCSettingStretchAudioOffValue,
kVLCSettingTextEncoding : [defaults objectForKey:kVLCSettingTextEncoding],
kVLCSettingSkipLoopFilter : [defaults objectForKey:kVLCSettingSkipLoopFilter] };
kVLCSettingStretchAudio : [[defaults objectForKey:kVLCSettingStretchAudio] boolValue] ? kVLCSettingStretchAudioOnValue : kVLCSettingStretchAudioOffValue,
kVLCSettingTextEncoding : [defaults objectForKey:kVLCSettingTextEncoding],
kVLCSettingSkipLoopFilter : [defaults objectForKey:kVLCSettingSkipLoopFilter],
kVLCSettingHWDecoding : [defaults objectForKey:kVLCSettingHWDecoding]};
}
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment