Commit c302959a authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

qtcapture: Hack to get a more decent CPU consumption.

parent 821856d8
...@@ -225,6 +225,11 @@ static int Open( vlc_object_t *p_this ) ...@@ -225,6 +225,11 @@ static int Open( vlc_object_t *p_this )
output = [[VLCDecompressedVideoOutput alloc] init]; output = [[VLCDecompressedVideoOutput alloc] init];
/* Hack - This will lower CPU consumption for some reason */
[output setPixelBufferAttributes: [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:480], kCVPixelBufferHeightKey,
[NSNumber numberWithInt:640], kCVPixelBufferWidthKey, nil]];
session = [[QTCaptureSession alloc] init]; session = [[QTCaptureSession alloc] init];
bool ret = [session addInput:input error:nil /* FIXME */]; bool ret = [session addInput:input error:nil /* FIXME */];
......
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