Questions tagged [cvpixelbuffer]

141 questions
0
votes
1 answer

Render Alpha image on CVImageBufferRef

I am trying to achieve this effect . you can check this effect in musical.ly app (ripple effect) https://drive.google.com/open?id=1uXExnmWQ7OfSGLFXdH7-5imay8tW87vO Here is my approach. I will render alpha and scaled image to pixel buffer I am…
0
votes
0 answers

How to draw text into CIImage?

How to draw into CIImage (or maybe into CVPixelBuffer, but I guess it easier to add text to CIImage)? not to UIImage I record video (.mp4 file) using AVAssetWriter and CMSampleBuffer (from video, audio inputs). While recording I want to add text on…
user924
  • 3,322
  • 2
  • 26
  • 60
0
votes
1 answer

How to create and reuse an array of CVPixelBufferRef?

In my application I need to Create 24 CVPixelBufferRef Add them later to AVAssetWriterInputPixelBufferAdaptor in a custom order to write an mp4 movie. The VideoExport::addFrame function receives raw pixel data and stores it in the next empty…
Thinium
  • 85
  • 10
0
votes
2 answers

Converting UIImages to CVPixelBufferRef and Back Causes Constant Memory Increase & Eventual Crash

I am loading images from disk, converting them to CVPixelBufferRef, doing some stuff, then converting back to UIImage to save back to disk. I have tried to make sure I release absolutely everything necessary, yet memory usage for my app always…
Maxi Mus
  • 675
  • 5
  • 16
0
votes
1 answer

Why does CVPixelBuffer.GetAttributes take an argument of type NSDictionary?

In Xamarin.iOS, The method CVPixelBuffer.GetAttributes has a parameter "attributes" of type NSDictionary. For example is might be called like so: myPixelBuffer.GetAttributes(myAttributesDictionary); This makes no sense. Isn't the point of a Get…
Perrin Larson
  • 521
  • 4
  • 13
0
votes
0 answers

What is the fastest way to get NSAttributedString drawn into a CVPixelBufferRef

What is the most performant means for getting text via NSAttributedString:drawAtPoint into a RGBA32 CVPixelBufferRef? Just to clarify my objective... I'm being handed CVPixelBufferRef objects @60fps via a CVDisplayLink whilst a movie is playing. …
1 2 3
9
10