mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-19 19:42:24 +02:00
Remove trailing whitespaces
This commit is contained in:
parent
24f98d1aaf
commit
9251fa125f
@ -102,7 +102,7 @@ function judge()
|
||||
|
||||
mp.msg.verbose("progressive = "..num_progressive)
|
||||
mp.msg.verbose("interlaced-tff = "..num_tff)
|
||||
mp.msg.verbose("interlaced-bff = "..num_bff)
|
||||
mp.msg.verbose("interlaced-bff = "..num_bff)
|
||||
mp.msg.verbose("undetermined = "..num_undetermined)
|
||||
|
||||
if num_determined < num_undetermined then
|
||||
|
@ -4,7 +4,7 @@
|
||||
-- parameters. See the entry for "drc" under the "AUDIO FILTERS"
|
||||
-- section of the man page for a complete description of the filter.
|
||||
--
|
||||
-- This script registers the key-binding "\" to toggle the filter between
|
||||
-- This script registers the key-binding "\" to toggle the filter between
|
||||
--
|
||||
-- * off
|
||||
-- * method=1 (single-sample smoothing)
|
||||
@ -92,7 +92,7 @@ function drc_quieter_handler()
|
||||
drc_scale_target(0.5)
|
||||
end
|
||||
|
||||
-- toggle between off, method 1 and method 2
|
||||
-- toggle between off, method 1 and method 2
|
||||
mp.add_key_binding("\\", "drc_toggle_method", drc_toggle_method_handler)
|
||||
-- increase or decrease target volume
|
||||
mp.add_key_binding("ctrl+9", "drc_quieter", drc_quieter_handler)
|
||||
|
@ -12,21 +12,21 @@
|
||||
//
|
||||
// Copyright (c) 2007-2011 IOSPIRIT GmbH (http://www.iospirit.com/)
|
||||
// All rights reserved.
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright notice, this list
|
||||
// of conditions and the following disclaimer.
|
||||
//
|
||||
//
|
||||
// * Redistributions in binary form must reproduce the above copyright notice, this
|
||||
// list of conditions and the following disclaimer in the documentation and/or other
|
||||
// materials provided with the distribution.
|
||||
//
|
||||
//
|
||||
// * Neither the name of IOSPIRIT GmbH nor the names of its contributors may be used to
|
||||
// endorse or promote products derived from this software without specific prior
|
||||
// written permission.
|
||||
//
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||
@ -166,7 +166,7 @@ typedef enum
|
||||
newID:(SInt32)newID
|
||||
forHardwareWithAttributes:(NSMutableDictionary *)attributes;
|
||||
|
||||
// Notification about hardware additions/removals
|
||||
// Notification about hardware additions/removals
|
||||
- (void)hidRemote:(HIDRemote *)hidRemote // Invoked when new hardware was found / added to HIDRemote's pool
|
||||
foundNewHardwareWithAttributes:(NSMutableDictionary *)attributes;
|
||||
|
||||
@ -180,7 +180,7 @@ typedef enum
|
||||
|
||||
// Matching of newly found receiver hardware
|
||||
- (BOOL)hidRemote:(HIDRemote *)hidRemote // Invoked when new hardware is inspected
|
||||
inspectNewHardwareWithService:(io_service_t)service //
|
||||
inspectNewHardwareWithService:(io_service_t)service //
|
||||
prematchResult:(BOOL)prematchResult; // Return YES if HIDRemote should go on with this hardware and try
|
||||
// to use it, or NO if it should not be persued further.
|
||||
|
||||
@ -194,7 +194,7 @@ typedef enum
|
||||
- (BOOL)hidRemote:(HIDRemote *)hidRemote
|
||||
shouldRetryExclusiveLockWithInfo:(NSDictionary *)applicationInfo;
|
||||
|
||||
@end
|
||||
@end
|
||||
|
||||
|
||||
#pragma mark -- Actual header file for class --
|
||||
@ -207,55 +207,55 @@ typedef enum
|
||||
// Notification ports
|
||||
IONotificationPortRef _notifyPort;
|
||||
CFRunLoopSourceRef _notifyRLSource;
|
||||
|
||||
|
||||
// Matching iterator
|
||||
io_iterator_t _matchingServicesIterator;
|
||||
|
||||
|
||||
// SecureInput notification
|
||||
io_object_t _secureInputNotification;
|
||||
|
||||
|
||||
// Service attributes
|
||||
NSMutableDictionary *_serviceAttribMap;
|
||||
|
||||
|
||||
// Mode
|
||||
HIDRemoteMode _mode;
|
||||
BOOL _autoRecover;
|
||||
NSTimer *_autoRecoveryTimer;
|
||||
|
||||
|
||||
// Delegate
|
||||
NSObject <HIDRemoteDelegate> *_delegate;
|
||||
|
||||
|
||||
// Last seen ID and remote model
|
||||
SInt32 _lastSeenRemoteID;
|
||||
HIDRemoteModel _lastSeenModel;
|
||||
SInt32 _lastSeenModelRemoteID;
|
||||
|
||||
|
||||
// Unused button codes
|
||||
NSArray *_unusedButtonCodes;
|
||||
|
||||
|
||||
// Simulate Plus/Minus Hold
|
||||
BOOL _simulateHoldEvents;
|
||||
|
||||
|
||||
// SecureEventInput workaround
|
||||
BOOL _secureEventInputWorkAround;
|
||||
UInt64 _lastSecureEventInputPIDSum;
|
||||
uid_t _lastFrontUserSession;
|
||||
|
||||
|
||||
// Exclusive lock lending
|
||||
BOOL _exclusiveLockLending;
|
||||
BOOL _sendExclusiveResourceReuseNotification;
|
||||
NSNumber *_waitForReturnByPID;
|
||||
NSNumber *_returnToPID;
|
||||
BOOL _isRestarting;
|
||||
|
||||
|
||||
// Status notifications
|
||||
BOOL _sendStatusNotifications;
|
||||
NSString *_pidString;
|
||||
|
||||
|
||||
// Status
|
||||
BOOL _applicationIsTerminating;
|
||||
BOOL _isStopping;
|
||||
|
||||
|
||||
// Thread safety
|
||||
#ifdef HIDREMOTE_THREADSAFETY_HARDENED_NOTIFICATION_HANDLING /* #define HIDREMOTE_THREADSAFETY_HARDENED_NOTIFICATION_HANDLING if you're running your HIDRemote instance on a background thread (requires OS X 10.5 or later) */
|
||||
NSThread *_runOnThread;
|
||||
@ -271,7 +271,7 @@ typedef enum
|
||||
- (HIDRemoteAluminumRemoteSupportLevel)aluminiumRemoteSystemSupportLevel;
|
||||
|
||||
#pragma mark -- PUBLIC: Interface / API --
|
||||
- (BOOL)startRemoteControl:(HIDRemoteMode)hidRemoteMode;
|
||||
- (BOOL)startRemoteControl:(HIDRemoteMode)hidRemoteMode;
|
||||
- (void)stopRemoteControl;
|
||||
|
||||
- (BOOL)isStarted;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -455,8 +455,8 @@ static void handle_nav_command(stream_t *s, struct mp_nav_cmd *ev)
|
||||
bd_vk_key_e key = translate_nav_menu_action(action);
|
||||
if (key != BD_VK_NONE) {
|
||||
if (key == BD_VK_MOUSE_ACTIVATE)
|
||||
ev->mouse_on_button = bd_mouse_select(priv->bd, pts,
|
||||
priv->mousex,
|
||||
ev->mouse_on_button = bd_mouse_select(priv->bd, pts,
|
||||
priv->mousex,
|
||||
priv->mousey);
|
||||
bd_user_input(priv->bd, pts, key);
|
||||
} else if (strcmp(action, "menu") == 0) {
|
||||
@ -469,8 +469,8 @@ static void handle_nav_command(stream_t *s, struct mp_nav_cmd *ev)
|
||||
} case MP_NAV_CMD_MOUSE_POS:
|
||||
priv->mousex = ev->u.mouse_pos.x;
|
||||
priv->mousey = ev->u.mouse_pos.y;
|
||||
ev->mouse_on_button = bd_mouse_select(priv->bd, mp_time_us(),
|
||||
priv->mousex,
|
||||
ev->mouse_on_button = bd_mouse_select(priv->bd, mp_time_us(),
|
||||
priv->mousex,
|
||||
priv->mousey);
|
||||
break;
|
||||
case MP_NAV_CMD_SKIP_STILL:
|
||||
|
@ -163,14 +163,14 @@ static struct mp_image *render(struct vf_instance *vf, struct mp_image *in,
|
||||
status = vaMapBuffer(p->display, buffer, (void**)¶m);
|
||||
if (!check_error(vf, status, "vaMapBuffer()"))
|
||||
break;
|
||||
|
||||
|
||||
VAProcFilterParameterBufferDeinterlacing *filter_params;
|
||||
status = vaMapBuffer(p->display, *(p->pipe.filters), (void**)&filter_params);
|
||||
if (!check_error(vf, status, "vaMapBuffer()"))
|
||||
break;
|
||||
filter_params->flags = flags & VA_TOP_FIELD ? 0 : VA_DEINTERLACING_BOTTOM_FIELD;
|
||||
vaUnmapBuffer(p->display, *(p->pipe.filters));
|
||||
|
||||
|
||||
param->surface = in_id;
|
||||
param->surface_region = NULL;
|
||||
param->output_region = NULL;
|
||||
|
@ -88,7 +88,7 @@ shm_buffer_t* shm_buffer_create(uint32_t width,
|
||||
|
||||
// shm pool is only able to grow and won't shrink
|
||||
// returns 0 on success or buffer flags indicating the buffer status which
|
||||
// prevent it from resizing
|
||||
// prevent it from resizing
|
||||
int shm_buffer_resize(shm_buffer_t *buffer, uint32_t width, uint32_t height);
|
||||
|
||||
// if shm_buffer_resize returns SHM_BUFFER_BUSY this function can be called
|
||||
|
Loading…
Reference in New Issue
Block a user