From 0a3b989c0408bba9d5a44738bfdea11e024d4fb5 Mon Sep 17 00:00:00 2001 From: Francisco Facioni Date: Sat, 6 Feb 2016 19:34:07 -0300 Subject: [PATCH 1/2] Fallback is always TurboJPEG --- src/packet_pipeline.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/packet_pipeline.cpp b/src/packet_pipeline.cpp index f6067ea10..f6faf051b 100644 --- a/src/packet_pipeline.cpp +++ b/src/packet_pipeline.cpp @@ -40,11 +40,9 @@ static RgbPacketProcessor *getDefaultRgbPacketProcessor() { #ifdef LIBFREENECT2_WITH_VT_SUPPORT return new VTRgbPacketProcessor(); - #endif - #ifdef LIBFREENECT2_WITH_TURBOJPEG_SUPPORT + #else return new TurboJpegRgbPacketProcessor(); #endif - return NULL; } class PacketPipelineComponents From ea2cbbaaa701706a96d4aee457e748a52e0cf899 Mon Sep 17 00:00:00 2001 From: Francisco Facioni Date: Sat, 6 Feb 2016 19:35:52 -0300 Subject: [PATCH 2/2] Missing frame parameters --- src/vt_rgb_packet_processor.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/vt_rgb_packet_processor.cpp b/src/vt_rgb_packet_processor.cpp index 11e26c8e4..9d4c05baf 100644 --- a/src/vt_rgb_packet_processor.cpp +++ b/src/vt_rgb_packet_processor.cpp @@ -67,7 +67,7 @@ class VTRgbPacketProcessorImpl: public WithPerfLogging VTRgbPacketProcessorImpl() { int32_t width = 1920, height = 1080; - CMVideoFormatDescriptionCreate(NULL, kCMVideoCodecType_JPEG, width, height, nil, &format); + CMVideoFormatDescriptionCreate(NULL, kCMVideoCodecType_JPEG, width, height, NULL, &format); const void *decoderSpecificationKeys[] = {kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder}; const void *decoderSpecificationValues[] = {kCFBooleanTrue}; @@ -166,6 +166,9 @@ void VTRgbPacketProcessor::process(const RgbPacket &packet) frame->timestamp = packet.timestamp; frame->sequence = packet.sequence; + frame->exposure = packet.exposure; + frame->gain = packet.gain; + frame->gamma = packet.gamma; listener_->onNewFrame(Frame::Color, frame); @@ -176,4 +179,4 @@ void VTRgbPacketProcessor::process(const RgbPacket &packet) } } -} /* namespace libfreenect2 */ \ No newline at end of file +} /* namespace libfreenect2 */