GPUImage3 icon indicating copy to clipboard operation
GPUImage3 copied to clipboard

Zoom Blur issue

Open R3l0ad3d opened this issue 5 years ago • 3 comments

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 ?

R3l0ad3d avatar Dec 22 '19 08:12 R3l0ad3d

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

artsector avatar Dec 22 '19 12:12 artsector

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 .

R3l0ad3d avatar Jan 01 '20 06:01 R3l0ad3d

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 .

AddIcechan avatar Mar 05 '20 03:03 AddIcechan