Re: CGDisplaySetDisplayMode only working properly after calling twice in a row

2014-05-22 Thread Matthias Dörfelt
a lot of detection code for GPU switch for something that will hopefully be fixed sooner than later. I might have to go down that route though. Thanks! Matthias Am 22.05.2014 um 07:17 schrieb Ken Thomases k...@codeweavers.com: On May 21, 2014, at 6:25 PM, Matthias Dörfelt wrote: Capturing

CGDisplaySetDisplayMode only working properly after calling twice in a row

2014-05-21 Thread Matthias Dörfelt
Hey, I am experiencing some really weird behavior with CGDisplaySetDisplayMode behavior on osx 10.9.3 on a late 2013 retina mbp. if I call CGDisplaySetDisplayMode only once, it seems to end up in weird display modes, that are not even listed through CGDisplayCopyAllDisplayModes i.e.

Re: CGDisplaySetDisplayMode only working properly after calling twice in a row

2014-05-21 Thread Matthias Dörfelt
Am 21.05.2014 um 14:05 schrieb Matthias Dörfelt li...@mokafolio.de: Hey, I am experiencing some really weird behavior with CGDisplaySetDisplayMode behavior on osx 10.9.3 on a late 2013 retina mbp. if I call CGDisplaySetDisplayMode only once, it seems to end up in weird display modes

Re: CGDisplaySetDisplayMode only working properly after calling twice in a row

2014-05-21 Thread Matthias Dörfelt
21.05.2014 um 16:16 schrieb Ken Thomases k...@codeweavers.com: On May 21, 2014, at 5:45 PM, Matthias Dörfelt wrote: I just investigated this issue a little more. It only happens under one condition for me, which is that I created an NSOpenGLPixelFormat before the CGDisplay calls, i.e. this does

Re: CGDisplaySetDisplayMode only working properly after calling twice in a row

2014-05-21 Thread Matthias Dörfelt
that should be the job of client code. Any thoughts? Am 21.05.2014 um 16:25 schrieb Matthias Dörfelt li...@mokafolio.de: Hey Ken, Capturing the display does not make a difference. Anyways, your guess about the GPU switching was spot on! If I disable it, the issue disappears. Is there any

Quartz Display Services Retina Display Modes

2014-05-20 Thread Matthias Dörfelt
Hey All, AFAIK there is no way to find retina display modes with Quartz Display Services right now. Why is that? Is there any workaround or different API? Right now, if I change the Display Mode of my retina display programmatically, I have to cache the original retina display mode in order to

Re: Quartz Display Services Retina Display Modes

2014-05-20 Thread Matthias Dörfelt
I just realized that the cocoa list might not be the best place to ask this question, as it somewhat includes all available osx APIs. I’d be glad about any hints, though. Thanks. Am 19.05.2014 um 23:59 schrieb Matthias Dörfelt li...@mokafolio.de: Hey All, AFAIK there is no way to find

Re: Quartz Display Services Retina Display Modes

2014-05-20 Thread Matthias Dörfelt
Thanks, that does exactly what I want. The naming of kCGDisplayShowDuplicateLowResolutionModes seems is very confusing and ambiguous to me, though. Thanks for the help! Matthias Am 20.05.2014 um 00:32 schrieb Ken Thomases k...@codeweavers.com: On May 20, 2014, at 1:59 AM, Matthias Dörfelt

AVFoundation: Creating an AVAsset from compressed data

2012-10-12 Thread Matthias Dörfelt
Hi, I would like to build a simple live video capture streaming application, so my idea was to use AVCaptureVideoDataOutput to get the uncompressed data of the capture session, and then to send that data over a socket connection. On the other side I would want to decompress the compressed frame