Skip to content

Commit

Permalink
Update the HoloLensForCV component to match the shared I/O library ch…
Browse files Browse the repository at this point in the history
…anges.
  • Loading branch information
Pawel Olszta (MSFT) committed Dec 19, 2017
1 parent 0391058 commit 2e45ec9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions Shared/HoloLensForCV/MediaFrameReaderContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ namespace HoloLensForCV

#if DBG_ENABLE_VERBOSE_LOGGING
dbg::trace(
L"MediaFrameReaderContext::FrameArrived: _sensorType=%s (%i), timestamp=%llu (relative) and %llu (absolute)",
L"MediaFrameReaderContext::FrameArrived: _sensorType=%s (%i), timestamp=%llu (relative)",
_sensorType.ToString()->Data(),
(int32_t)_sensorType,
frame->SystemRelativeTime->Value.Duration,
_timeConverter.RelativeTicksToAbsoluteTicks(
frame->SystemRelativeTime->Value.Duration));
frame->SystemRelativeTime->Value.Duration);
#endif

//
Expand All @@ -76,7 +74,8 @@ namespace HoloLensForCV

timestamp.UniversalTime =
_timeConverter.RelativeTicksToAbsoluteTicks(
frame->SystemRelativeTime->Value.Duration);
Io::HundredsOfNanoseconds(
frame->SystemRelativeTime->Value.Duration)).count();

//
// Attempt to obtain the rig pose at the time of exposure start.
Expand Down
2 changes: 1 addition & 1 deletion Shared/HoloLensForCV/SensorFrameRecorderSink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ namespace HoloLensForCV
uint32_t pixelBufferDataLength = 0;

uint8_t* pixelBufferData =
Io::GetPointerToMemoryBuffer(
Io::GetTypedPointerToMemoryBuffer<uint8_t>(
bitmapBuffer->CreateReference(),
pixelBufferDataLength);

Expand Down
2 changes: 1 addition & 1 deletion Shared/HoloLensForCV/SensorFrameStreamingServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ namespace HoloLensForCV
uint32_t bitmapBufferDataSize = 0;

uint8_t* bitmapBufferData =
Io::GetPointerToMemoryBuffer(
Io::GetTypedPointerToMemoryBuffer<uint8_t>(
bitmapBufferReference,
bitmapBufferDataSize);

Expand Down

0 comments on commit 2e45ec9

Please sign in to comment.