Remove trailing whitespaces

This commit is contained in:
Michael Vetter 2015-05-15 10:34:39 +02:00 committed by wm4
parent 24f98d1aaf
commit 9251fa125f
7 changed files with 210 additions and 210 deletions

View File

@ -102,7 +102,7 @@ function judge()
mp.msg.verbose("progressive = "..num_progressive) mp.msg.verbose("progressive = "..num_progressive)
mp.msg.verbose("interlaced-tff = "..num_tff) 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) mp.msg.verbose("undetermined = "..num_undetermined)
if num_determined < num_undetermined then if num_determined < num_undetermined then

View File

@ -4,7 +4,7 @@
-- parameters. See the entry for "drc" under the "AUDIO FILTERS" -- parameters. See the entry for "drc" under the "AUDIO FILTERS"
-- section of the man page for a complete description of the filter. -- 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 -- * off
-- * method=1 (single-sample smoothing) -- * method=1 (single-sample smoothing)
@ -92,7 +92,7 @@ function drc_quieter_handler()
drc_scale_target(0.5) drc_scale_target(0.5)
end 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) mp.add_key_binding("\\", "drc_toggle_method", drc_toggle_method_handler)
-- increase or decrease target volume -- increase or decrease target volume
mp.add_key_binding("ctrl+9", "drc_quieter", drc_quieter_handler) mp.add_key_binding("ctrl+9", "drc_quieter", drc_quieter_handler)

View File

@ -12,21 +12,21 @@
// //
// Copyright (c) 2007-2011 IOSPIRIT GmbH (http://www.iospirit.com/) // Copyright (c) 2007-2011 IOSPIRIT GmbH (http://www.iospirit.com/)
// All rights reserved. // All rights reserved.
// //
// Redistribution and use in source and binary forms, with or without modification, // Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met: // are permitted provided that the following conditions are met:
// //
// * Redistributions of source code must retain the above copyright notice, this list // * Redistributions of source code must retain the above copyright notice, this list
// of conditions and the following disclaimer. // of conditions and the following disclaimer.
// //
// * Redistributions in binary form must reproduce the above copyright notice, this // * Redistributions in binary form must reproduce the above copyright notice, this
// list of conditions and the following disclaimer in the documentation and/or other // list of conditions and the following disclaimer in the documentation and/or other
// materials provided with the distribution. // materials provided with the distribution.
// //
// * Neither the name of IOSPIRIT GmbH nor the names of its contributors may be used to // * 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 // endorse or promote products derived from this software without specific prior
// written permission. // written permission.
// //
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY // 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 // 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 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
@ -166,7 +166,7 @@ typedef enum
newID:(SInt32)newID newID:(SInt32)newID
forHardwareWithAttributes:(NSMutableDictionary *)attributes; 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 - (void)hidRemote:(HIDRemote *)hidRemote // Invoked when new hardware was found / added to HIDRemote's pool
foundNewHardwareWithAttributes:(NSMutableDictionary *)attributes; foundNewHardwareWithAttributes:(NSMutableDictionary *)attributes;
@ -180,7 +180,7 @@ typedef enum
// Matching of newly found receiver hardware // Matching of newly found receiver hardware
- (BOOL)hidRemote:(HIDRemote *)hidRemote // Invoked when new hardware is inspected - (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 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. // to use it, or NO if it should not be persued further.
@ -194,7 +194,7 @@ typedef enum
- (BOOL)hidRemote:(HIDRemote *)hidRemote - (BOOL)hidRemote:(HIDRemote *)hidRemote
shouldRetryExclusiveLockWithInfo:(NSDictionary *)applicationInfo; shouldRetryExclusiveLockWithInfo:(NSDictionary *)applicationInfo;
@end @end
#pragma mark -- Actual header file for class -- #pragma mark -- Actual header file for class --
@ -207,55 +207,55 @@ typedef enum
// Notification ports // Notification ports
IONotificationPortRef _notifyPort; IONotificationPortRef _notifyPort;
CFRunLoopSourceRef _notifyRLSource; CFRunLoopSourceRef _notifyRLSource;
// Matching iterator // Matching iterator
io_iterator_t _matchingServicesIterator; io_iterator_t _matchingServicesIterator;
// SecureInput notification // SecureInput notification
io_object_t _secureInputNotification; io_object_t _secureInputNotification;
// Service attributes // Service attributes
NSMutableDictionary *_serviceAttribMap; NSMutableDictionary *_serviceAttribMap;
// Mode // Mode
HIDRemoteMode _mode; HIDRemoteMode _mode;
BOOL _autoRecover; BOOL _autoRecover;
NSTimer *_autoRecoveryTimer; NSTimer *_autoRecoveryTimer;
// Delegate // Delegate
NSObject <HIDRemoteDelegate> *_delegate; NSObject <HIDRemoteDelegate> *_delegate;
// Last seen ID and remote model // Last seen ID and remote model
SInt32 _lastSeenRemoteID; SInt32 _lastSeenRemoteID;
HIDRemoteModel _lastSeenModel; HIDRemoteModel _lastSeenModel;
SInt32 _lastSeenModelRemoteID; SInt32 _lastSeenModelRemoteID;
// Unused button codes // Unused button codes
NSArray *_unusedButtonCodes; NSArray *_unusedButtonCodes;
// Simulate Plus/Minus Hold // Simulate Plus/Minus Hold
BOOL _simulateHoldEvents; BOOL _simulateHoldEvents;
// SecureEventInput workaround // SecureEventInput workaround
BOOL _secureEventInputWorkAround; BOOL _secureEventInputWorkAround;
UInt64 _lastSecureEventInputPIDSum; UInt64 _lastSecureEventInputPIDSum;
uid_t _lastFrontUserSession; uid_t _lastFrontUserSession;
// Exclusive lock lending // Exclusive lock lending
BOOL _exclusiveLockLending; BOOL _exclusiveLockLending;
BOOL _sendExclusiveResourceReuseNotification; BOOL _sendExclusiveResourceReuseNotification;
NSNumber *_waitForReturnByPID; NSNumber *_waitForReturnByPID;
NSNumber *_returnToPID; NSNumber *_returnToPID;
BOOL _isRestarting; BOOL _isRestarting;
// Status notifications // Status notifications
BOOL _sendStatusNotifications; BOOL _sendStatusNotifications;
NSString *_pidString; NSString *_pidString;
// Status // Status
BOOL _applicationIsTerminating; BOOL _applicationIsTerminating;
BOOL _isStopping; BOOL _isStopping;
// Thread safety // 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) */ #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; NSThread *_runOnThread;
@ -271,7 +271,7 @@ typedef enum
- (HIDRemoteAluminumRemoteSupportLevel)aluminiumRemoteSystemSupportLevel; - (HIDRemoteAluminumRemoteSupportLevel)aluminiumRemoteSystemSupportLevel;
#pragma mark -- PUBLIC: Interface / API -- #pragma mark -- PUBLIC: Interface / API --
- (BOOL)startRemoteControl:(HIDRemoteMode)hidRemoteMode; - (BOOL)startRemoteControl:(HIDRemoteMode)hidRemoteMode;
- (void)stopRemoteControl; - (void)stopRemoteControl;
- (BOOL)isStarted; - (BOOL)isStarted;

File diff suppressed because it is too large Load Diff

View File

@ -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); bd_vk_key_e key = translate_nav_menu_action(action);
if (key != BD_VK_NONE) { if (key != BD_VK_NONE) {
if (key == BD_VK_MOUSE_ACTIVATE) if (key == BD_VK_MOUSE_ACTIVATE)
ev->mouse_on_button = bd_mouse_select(priv->bd, pts, ev->mouse_on_button = bd_mouse_select(priv->bd, pts,
priv->mousex, priv->mousex,
priv->mousey); priv->mousey);
bd_user_input(priv->bd, pts, key); bd_user_input(priv->bd, pts, key);
} else if (strcmp(action, "menu") == 0) { } 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: } case MP_NAV_CMD_MOUSE_POS:
priv->mousex = ev->u.mouse_pos.x; priv->mousex = ev->u.mouse_pos.x;
priv->mousey = ev->u.mouse_pos.y; priv->mousey = ev->u.mouse_pos.y;
ev->mouse_on_button = bd_mouse_select(priv->bd, mp_time_us(), ev->mouse_on_button = bd_mouse_select(priv->bd, mp_time_us(),
priv->mousex, priv->mousex,
priv->mousey); priv->mousey);
break; break;
case MP_NAV_CMD_SKIP_STILL: case MP_NAV_CMD_SKIP_STILL:

View File

@ -163,14 +163,14 @@ static struct mp_image *render(struct vf_instance *vf, struct mp_image *in,
status = vaMapBuffer(p->display, buffer, (void**)&param); status = vaMapBuffer(p->display, buffer, (void**)&param);
if (!check_error(vf, status, "vaMapBuffer()")) if (!check_error(vf, status, "vaMapBuffer()"))
break; break;
VAProcFilterParameterBufferDeinterlacing *filter_params; VAProcFilterParameterBufferDeinterlacing *filter_params;
status = vaMapBuffer(p->display, *(p->pipe.filters), (void**)&filter_params); status = vaMapBuffer(p->display, *(p->pipe.filters), (void**)&filter_params);
if (!check_error(vf, status, "vaMapBuffer()")) if (!check_error(vf, status, "vaMapBuffer()"))
break; break;
filter_params->flags = flags & VA_TOP_FIELD ? 0 : VA_DEINTERLACING_BOTTOM_FIELD; filter_params->flags = flags & VA_TOP_FIELD ? 0 : VA_DEINTERLACING_BOTTOM_FIELD;
vaUnmapBuffer(p->display, *(p->pipe.filters)); vaUnmapBuffer(p->display, *(p->pipe.filters));
param->surface = in_id; param->surface = in_id;
param->surface_region = NULL; param->surface_region = NULL;
param->output_region = NULL; param->output_region = NULL;

View File

@ -88,7 +88,7 @@ shm_buffer_t* shm_buffer_create(uint32_t width,
// shm pool is only able to grow and won't shrink // shm pool is only able to grow and won't shrink
// returns 0 on success or buffer flags indicating the buffer status which // 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); 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 // if shm_buffer_resize returns SHM_BUFFER_BUSY this function can be called