OpenShot Library | libopenshot
0.2.2
|
Go to the documentation of this file.
53 #ifndef OPENSHOT_DECKLINK_OUTPUT_H
54 #define OPENSHOT_DECKLINK_OUTPUT_H
64 #include "DeckLinkAPI.h"
115 virtual HRESULT STDMETHODCALLTYPE
QueryInterface (REFIID iid, LPVOID *ppv) {
return E_NOINTERFACE;}
116 virtual ULONG STDMETHODCALLTYPE
AddRef () {
return 1;}
117 virtual ULONG STDMETHODCALLTYPE
Release () {
return 1;}
119 virtual HRESULT STDMETHODCALLTYPE
ScheduledFrameCompleted (IDeckLinkVideoFrame* completedFrame, BMDOutputFrameCompletionResult result);
128 void WriteFrame(std::shared_ptr<openshot::Frame> frame);
132 pthread_mutex_t m_mutex;
OutputSignal m_outputSignal
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, LPVOID *ppv)
virtual ULONG STDMETHODCALLTYPE Release()
virtual HRESULT STDMETHODCALLTYPE RenderAudioSamples(bool preroll)
~DeckLinkOutputDelegate()
virtual ULONG STDMETHODCALLTYPE AddRef()
deque< std::shared_ptr< openshot::Frame > > raw_video_frames
void WriteFrame(std::shared_ptr< openshot::Frame > frame)
Custom method to write new frames.
unsigned long m_totalFramesScheduled
BMDAudioSampleRate m_audioSampleRate
IDeckLinkOutput * deckLinkOutput
unsigned long m_audioBufferSampleLength
unsigned long audioSamplesPerFrame
BMDTimeValue frameRateDuration
Header file for CacheMemory class.
virtual HRESULT STDMETHODCALLTYPE ScheduledPlaybackHasStopped()
IDeckLinkDisplayMode * displayMode
unsigned long m_framesPerSecond
BMDTimeValue frameRateScale
Header file for Frame class.
unsigned long m_audioBufferOffset
virtual HRESULT STDMETHODCALLTYPE ScheduledFrameCompleted(IDeckLinkVideoFrame *completedFrame, BMDOutputFrameCompletionResult result)
Header file for OpenMPUtilities (set some common macros)
void ScheduleNextFrame(bool prerolling)
Schedule the next frame.
DeckLinkOutputDelegate(IDeckLinkDisplayMode *displayMode, IDeckLinkOutput *deckLinkOutput)
unsigned long m_audioSampleDepth
IDeckLinkMutableVideoFrame * m_currentFrame
map< int, uint8_t * > temp_cache
Implementation of the Blackmagic Decklink API (used by the DecklinkWriter)
deque< uint8_t * > final_frames
unsigned long m_audioChannelCount