mirror of
https://github.com/zakk4223/CocoaSplit.git
synced 2026-05-21 06:46:14 -06:00
Make default x264 compressor settings less stupid/more twitch friendly
This commit is contained in:
parent
ad21cf6ddb
commit
e4e74448fc
3 changed files with 21 additions and 4 deletions
Binary file not shown.
|
|
@ -1411,6 +1411,8 @@
|
|||
newCompressor.vbv_buffer = 1000;
|
||||
newCompressor.vbv_maxrate = 1000;
|
||||
newCompressor.keyframe_interval = 2;
|
||||
newCompressor.crf = 23;
|
||||
newCompressor.use_cbr = YES;
|
||||
|
||||
self.compressors[@"x264"] = newCompressor;
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:CSNotificationCompressorAdded object:newCompressor];
|
||||
|
|
|
|||
|
|
@ -727,17 +727,33 @@
|
|||
_inDrag = YES;
|
||||
tmp = [self convertPoint:theEvent.locationInWindow fromView:nil];
|
||||
|
||||
//NSLog(@"DELTA X %f Y %f", theEvent.deltaX, theEvent.deltaY);
|
||||
|
||||
worldPoint = [self realPointforWindowPoint:tmp];
|
||||
|
||||
|
||||
|
||||
|
||||
CGFloat dx, dy;
|
||||
dx = worldPoint.x - self.selectedOriginDistance.x;
|
||||
dy = worldPoint.y - self.selectedOriginDistance.y;
|
||||
dx = (worldPoint.x - self.selectedOriginDistance.x);
|
||||
dy = (worldPoint.y - self.selectedOriginDistance.y);
|
||||
|
||||
|
||||
[self adjustDeltas:&dx dy:&dy];
|
||||
|
||||
self.selectedOriginDistance = worldPoint;
|
||||
|
||||
if (theEvent.deltaX == 0)
|
||||
{
|
||||
dx = 0;
|
||||
}
|
||||
|
||||
if (theEvent.deltaY == 0)
|
||||
{
|
||||
dy = 0;
|
||||
}
|
||||
|
||||
//NSLog(@"DX %f DY %f", dx, dy);
|
||||
|
||||
if (self.isResizing)
|
||||
{
|
||||
if (theEvent.modifierFlags & NSShiftKeyMask)
|
||||
|
|
@ -794,7 +810,6 @@
|
|||
if (self.resizeType & kResizeLeft)
|
||||
{
|
||||
new_width -= dx;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue