MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / loadXZTables

Method loadXZTables

src/opengl_depth_packet_processor.cpp:934–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932}
933
934void OpenGLDepthPacketProcessor::loadXZTables(const float *xtable, const float *ztable)
935{
936 ChangeCurrentOpenGLContext ctx(impl_->opengl_context_ptr);
937
938 impl_->x_table.allocate(512, 424);
939 std::copy(xtable, xtable + TABLE_SIZE, (float *)impl_->x_table.data);
940 impl_->x_table.upload();
941
942 impl_->z_table.allocate(512, 424);
943 std::copy(ztable, ztable + TABLE_SIZE, (float *)impl_->z_table.data);
944 impl_->z_table.upload();
945}
946
947void OpenGLDepthPacketProcessor::loadLookupTable(const short *lut)
948{

Callers

nothing calls this directly

Calls 3

copyFunction · 0.85
allocateMethod · 0.45
uploadMethod · 0.45

Tested by

no test coverage detected