summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7e4304d)
raw | patch | inline | side by side (parent: 7e4304d)
author | Djordje Senicic <d-senicic1@ti.com> | |
Thu, 15 Sep 2016 13:49:16 +0000 (09:49 -0400) | ||
committer | Djordje Senicic <d-senicic1@ti.com> | |
Thu, 15 Sep 2016 13:49:16 +0000 (09:49 -0400) |
modules/imgproc/src/opencl/sobel.cl | patch | blob | history |
index f0bc2fe4127c832b0d350f6dd30e27c58a715327..db472de0f490ac31b46570399191da1bd38373dc 100644 (file)
}
if(gid == 0)
{ /* Upper half of image */
- EdmaMgr_copy1D1D(evIN, (void*)(srcptr), (void*)(img_lines[1] + 1), cols);
- EdmaMgr_copy1D1D(evIN, (void*)(srcptr + cols), (void*)(img_lines[2] + 1), cols);
+ for(i = 1; i < LINES_CACHED; i ++)
+ { /* Use this, one time multiple 1D1D transfers, instead of one linked transfer, to allow for fast EDMA later */
+ EdmaMgr_copy1D1D(evIN, (void *)(srcptr + (rows - 1 + i) * cols), (void *)(img_lines[i]), cols);
+ }
fetch_rd_idx = cols;
} else if(gid == 1)
{ /* Bottom half of image */
for(i = 0; i < LINES_CACHED; i ++)
{ /* Use this, one time multiple 1D1D transfers, instead of one linked transfer, to allow for fast EDMA later */
- EdmaMgr_copy1D1D(evIN, (void *)(srcptr + (rows - 1 + i) * cols), (void *)(img_lines[i] + 1), cols);
+ EdmaMgr_copy1D1D(evIN, (void *)(srcptr + (rows - 1 + i) * cols), (void *)(img_lines[i]), cols);
}
fetch_rd_idx = (rows + 1) * cols;
dest_ptr += rows * cols;