MCPcopy Create free account
hub / github.com/assimp/assimp / Update

Function Update

contrib/Open3DGC/o3dgcDynamicVectorEncoder.cpp:35–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#endif //DEBUG_VERBOSE
34
35 inline O3DGCErrorCode Update(long * const data, const long size)
36 {
37 assert(size > 1);
38 const long size1 = size - 1;
39 long p = 2;
40 data[0] += data[1] >> 1;
41 while(p < size1)
42 {
43 data[p] += (data[p-1] + data[p+1] + 2) >> 2;
44 p += 2;
45 }
46 if ( p == size1)
47 {
48 data[p] += data[p-1]>>1;
49 }
50 return O3DGC_OK;
51 }
52 inline O3DGCErrorCode Predict(long * const data, const long size)
53 {
54 assert(size > 1);

Callers 6

UpdateMethod · 0.85
TransformFunction · 0.85
UpdateMethod · 0.85
UpdateFileReadFunction · 0.85
UpdatePostProcessFunction · 0.85
UpdateFileWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected