Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/packet_pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions src/vt_rgb_packet_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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);

Expand All @@ -176,4 +179,4 @@ void VTRgbPacketProcessor::process(const RgbPacket &packet)
}
}

} /* namespace libfreenect2 */
} /* namespace libfreenect2 */