BradLarson / GPUImage3

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

Zoom Blur issue #65

Closed R3l0ad3d closed 7 months ago

R3l0ad3d commented 4 years ago

Fragment Function(zoomBlurFragment): argument uniform[0] from buffer(1) with offset(0) and length(12) has space for 12 bytes, but argument has a length(16).' how can i fix this . and Motion blur code commented . is it work ?

artsector commented 4 years ago

@R3l0ad3d https://github.com/BradLarson/GPUImage3/issues/63#issuecomment-568256622

R3l0ad3d commented 4 years ago

thanks . there is huge memory leak in this version . i use same code for gpuimage 2 and 3 . 2 work fine no memory leak but when i use 3 there is huge leak . please look after this issue .

AddIcechan commented 4 years ago

I change the zoom blur uniform struct . just exchange the center and the size position .

before :

typedef struct {
    float2 center;
    float size;
} ZoomBlurUniform;

after: 

typedef struct {
    float size;
    float2 center;
} ZoomBlurUniform;

And I found it work .