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

Method loadLookupTable

src/opengl_depth_packet_processor.cpp:947–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945}
946
947void OpenGLDepthPacketProcessor::loadLookupTable(const short *lut)
948{
949 ChangeCurrentOpenGLContext ctx(impl_->opengl_context_ptr);
950
951 impl_->lut11to16.allocate(2048, 1);
952 std::copy(lut, lut + LUT_SIZE, (short *)impl_->lut11to16.data);
953 impl_->lut11to16.upload();
954}
955
956void OpenGLDepthPacketProcessor::process(const DepthPacket &packet)
957{

Callers

nothing calls this directly

Calls 3

copyFunction · 0.85
allocateMethod · 0.45
uploadMethod · 0.45

Tested by

no test coverage detected