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 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 */