HDR with AVFoundation

I like to receive both the real-time effect and the post-processed HDR using AVFoundation and / or CoreImage. I assume this is pretty easy with CoreImage when a full-frame still image is captured, but does anyone know how to achieve the HDR effect using AVCaptureVideoPreviewLayer?

+6
source share
1 answer

You can use the AVCaptureVideoOutput class and the above delegate method ( captureOutput:didOutputSampleBuffer:fromConnection: to get every live frame from the camera. From this frame you can create CIImage and make changes using Framework CoreImage; After that, simply output using the drawRect: method

+4
source

Source: https://habr.com/ru/post/901578/


All Articles