Skip to content

Commit 4feb5e7

Browse files
floezarvox
authored andcommitted
no need to wipe the buffer as every pixel will be written exactly once
Signed-off-by: Florian Echtler <[email protected]>
1 parent 3db7f23 commit 4feb5e7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/registration.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ int freenect_apply_registration(freenect_device* dev, uint8_t* input_packed, uin
172172
int freenect_apply_depth_to_mm(freenect_device* dev, uint8_t* input_packed, uint16_t* output_mm)
173173
{
174174
freenect_registration* reg = &(dev->registration);
175-
// set output buffer to zero using pointer-sized memory access (~ 30-40% faster than memset)
176-
size_t i, *wipe = (size_t*)output_mm;
177-
for (i = 0; i < DEPTH_X_RES * DEPTH_Y_RES * sizeof(uint16_t) / sizeof(size_t); i++) wipe[i] = DEPTH_NO_MM_VALUE;
178175
uint16_t unpack[8];
179176
uint32_t x,y,source_index = 8;
180177
for (y = 0; y < DEPTH_Y_RES; y++) {

0 commit comments

Comments
 (0)