BradLarson / GPUImage2

GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing.
BSD 3-Clause "New" or "Revised" License
4.88k stars 611 forks source link

make framebuffer lock public #257

Closed ollie-hpcnt closed 6 years ago

ollie-hpcnt commented 6 years ago

Hi, Brad! I'm so inspired by your work ever since I started a project with your GPUImage2. I make this pull request to make lock in frame buffer class public. I'm trying to make customized image generator. func transmitPreviousImage(to target:ImageConsumer, atIndex:UInt) { imageFramebuffer.lock() target.newFramebufferAvailable(imageFramebuffer, fromSourceIndex:atIndex) } And I want to build transmitPreviousImage function like above. Unfortunately, lock function is not public. I will wait for your comment. Thanks.

BradLarson commented 6 years ago

I can see the utility in this, thanks.