]> git.sesse.net Git - casparcg/blobdiff - modules/bluefish/util/blue_velvet.cpp
Implmented a new system to manage to DMA and presenting of frames when using the...
[casparcg] / modules / bluefish / util / blue_velvet.cpp
index 6b9ad168b62373b42f448dac3c43527627d20e83..5be4716b488507e4301e0dcb2af3daadf8125f3e 100644 (file)
@@ -179,6 +179,23 @@ namespace caspar { namespace bluefish {
                return bfcVideoPlaybackStop(bvc_.get(), iWait, iFlush);
        }
 
+       BLUE_UINT32 bvc_wrapper::video_playback_start(int step, int loop)
+       {
+               return bfcVideoPlaybackStart(bvc_.get(), step, loop);
+       }
+
+       BLUE_UINT32 bvc_wrapper::video_playback_allocate(unsigned long& buffer_id, unsigned long& underrun)
+       {
+               void* unused = nullptr;
+               return bfcVideoPlaybackAllocate(bvc_.get(), &unused, buffer_id, underrun);
+       }
+
+       BLUE_UINT32 bvc_wrapper::video_playback_present(unsigned long buffer_id, unsigned long count, unsigned long keep, unsigned long odd)
+       {
+               unsigned long unique_id;
+               return bfcVideoPlaybackPresent(bvc_.get(), unique_id, buffer_id, count, keep, odd);
+       }
+
        BLUE_UINT32 bvc_wrapper::wait_video_output_sync(unsigned long ulUpdateType, unsigned long & ulFieldCount)
        {
                return bfcWaitVideoOutputSync(bvc_.get(), ulUpdateType, ulFieldCount);