Skip to content
Merged
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: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
BuildResults
xcuserdata
xcuserdata
.DS_Store

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

// Internal Includes
#include "CMIO_DPA_Sample_Server_VCamInputStream.h"
#include "CAHostTimeBase.h"

namespace CMIO { namespace DPA { namespace Sample { namespace Server
{
Expand Down Expand Up @@ -83,8 +84,8 @@ namespace CMIO { namespace DPA { namespace Sample { namespace Server
fseek(vcamDevice->mSequenceFile, (vcamDevice->mFrameIndex % vcamDevice->mFrameCount) * vcamDevice->mFrameSize, SEEK_SET);
fread(framebuffer, 1, vcamDevice->mFrameSize, vcamDevice->mSequenceFile);
++vcamDevice->mFrameIndex;

UInt64 vbiTime = vcamDevice->mInputStream->GetTimecode() * 1000000000.0;
// Hack because it seems that vcamDevice->mInputStream->GetTimecode() is always 0
UInt64 vbiTime = CAHostTimeBase::GetCurrentTimeInNanos();
vcamDevice->mInputStream->FrameArrived(vcamDevice->mFrameSize, framebuffer, vbiTime);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string>com.apple.cmio.DPA.SampleVCam</string>
<key>ProgramArguments</key>
<array>
<string>/Library/CoreMediaIO/Plug-Ins/DAL/Sample.plugin/Contents/Resources/SampleVCamAssistant</string>
<string>/Library/CoreMediaIO/Plug-Ins/DAL/SampleVCam.plugin/Contents/Resources/SampleVCamAssistant</string>
</array>
<key>MachServices</key>
<dict>
Expand Down