Skip to content

Commit b3cfd5e

Browse files
Thiemo Wiedemeyerxlz
Thiemo Wiedemeyer
authored andcommitted
opencl: Add recommended changes
Usage of LIBFREENECT2_WITH_PROFILING. Changed CHECK_CL macros. OpenCLAllocator can now be used for input and output buffers. OpenCLFrame now uses OpenCLBuffer from allocator. IMAGE_SIZE and LUT_SIZE as static const. Added Allocators for input and output buffers. Moved allocate_opencl to top. Added good() method.
1 parent 1ed8258 commit b3cfd5e

File tree

2 files changed

+160
-251
lines changed

2 files changed

+160
-251
lines changed

include/internal/libfreenect2/depth_packet_processor.h

+2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ class OpenCLDepthPacketProcessor : public DepthPacketProcessor
175175
virtual void loadXZTables(const float *xtable, const float *ztable);
176176
virtual void loadLookupTable(const short *lut);
177177

178+
virtual bool good();
178179
virtual const char *name() { return "OpenCL"; }
180+
179181
virtual void process(const DepthPacket &packet);
180182
protected:
181183
virtual Allocator *getAllocator();

0 commit comments

Comments
 (0)