Questions tagged [iosurface]

29 questions
1
vote
0 answers

iOS: What is IOFence and why is it freezing our app?

We have an AR project (built in Unity) that's running 24/7 on a number of iPads Pros (12.9, gen 3) in a museum. It's been live for 2.5 years now. We've always had the occasional freeze (on iOS 13 and below), but lately they have gotten exponentially…
urrmurrmur
  • 53
  • 5
1
vote
0 answers

CIImage rendered to CVPixelBuffer (with CIContext help) changes color

I create a CIImage from an IOSurface. Then I render it to a CVPixelBuffer. If I skip the CIImage step the color is fine, however I intend to crop the image with CIImage/CIContext functions. However the problem is that the CIImage/CIContext step…
jontelang
  • 589
  • 4
  • 17
1
vote
1 answer

CoreVideo / IOSurface: unknown pixel format

I'm trying to capture an IOSurface using both CVPixelBufferCreateWithIOSurface and by reading pixels from IOSurfaceGetBaseAddressOfPlane. However, on newer devices (iPhone XS), I get an unknown pixel format &wq2 (again, using both…
Umang Raghuvanshi
  • 1,228
  • 15
  • 34
1
vote
1 answer

VTDecompressionSession - IOSurface allocations gradually increase

I am using VTDecompressionSession to decode a .h264 stream. The decoder works as expected and I get properly decoded buffers back. However, I see a gradual increase in "Created And Persistent" allocations in XCode instrument "Allocations". As shown…
Ravi
  • 36
  • 1
  • 6
1
vote
0 answers

about IOSurface recording video

A function need to be solved: background desktop video recording I use NSTimer cycle call IOSurface for screenshots,The following code: NSTimer * Timer = [NSTimer scheduledTimerWithTimeInterval:0.1f target:self selector:@selector(ScreenShot)…
iGeekXi
  • 11
  • 4
1
vote
1 answer

How to capture the screen and save to BMP image file on iOS?

I want to capture the whole screen of iOS and save it to a BMP (using private api), I get the IOSurfaceRef with IOMobileFramebufferConnection first, then find a way to save the surface bytes to a BMP file. I tried two methods, method screenshot0:…
Suge
  • 2,808
  • 3
  • 48
  • 79
1
vote
0 answers

iOS 7 - Add IOKit and IOSurface to project

I am making an iPhone app and it requires IOKit and IOSurface framework. I have included these frameworks in the project. When I expand the framework once it's linked, I can see the headers. However, when I try: #include #include…
anthonya1999
  • 253
  • 3
  • 13
0
votes
0 answers

UIGraphicsImageRenderer: iosurface is too large for GPU

I use UIGraphicsImageRenderer to draw a large image, but the Xcode logging Metal API Validation Enabled and [Metal] 5073 by 8663 iosurface is too large for GPU. The resulting image is a blank image with a very small size. let format =…
K.B.
  • 291
  • 2
  • 13
0
votes
0 answers

How to get consistent deep copy of MTLTexture contents?

I am receiving YUV 420 CMSampleBuffers of the screen in my System Broadcast Extension, however when I attempt to access the underlying bytes, I get inconsistent results: artefacts that are a mixture of (it seems) past and future frames. I am…
Rhythmic Fistman
  • 34,352
  • 5
  • 87
  • 159
0
votes
0 answers

CGContext of type "kCGContextTypeIOSurface"

How do I initialise/create a CGContext of type "kCGContextTypeIOSurface"?
Céline
  • 185
  • 7
0
votes
1 answer

Unsupported IOSurface format: 0x26424741 using twilio video in scenekit

I am using twilio to send a video and use that video in a scenekit as a texture. But the problem is it works fine with iPhone X, but it gave this error Unsupported IOSurface format: 0x26424741 on iPhone XR and XS. this is what I am doing: Get…
Alok Subedi
  • 1,601
  • 14
  • 26
0
votes
1 answer

Workflow of the naive surface nets algorithm

I'm currently studying isosurface extraction algorithms. I found a introduction to it here with working Javascript code. I have to notice that I'm not a Javascript coder. I'm mainly Java and F# however I was able to port the code to F#. After all…
realvictorprm
  • 614
  • 6
  • 20
0
votes
1 answer

iOS9 framework not found IOSurface

When I use IOSurface.framework, the problem follows: d: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/PrivateFrameworks' ld: framework…
WflytoC
  • 215
  • 2
  • 4
  • 11
0
votes
0 answers

iOS9 IOSurface background screenshots

Latest iOS9 screenshots when encountered problems, iOS7 and iOS8 can run success。 I use iPad8.1.2 and iPhone6plus9.1 test, the following is my test the problems found。 2015-11-07 14:07:22.849 ScreenRecorder[3292:140825] my device info:[iPhone…
iGeekXi
  • 11
  • 4
1
2