AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
I capture HDMI Dolby audio from an HDMI input of an AJA device. More...
#include <ntv2dolbycapture.h>
Public Member Functions | |
NTV2DolbyCapture (const DolbyCaptureConfig &inConfig) | |
Constructs me using the given settings. More... | |
virtual | ~NTV2DolbyCapture () |
virtual AJAStatus | Init (void) |
Initializes me and prepares me to Run. More... | |
virtual AJAStatus | Run (void) |
Runs me. More... | |
virtual void | Quit (void) |
Gracefully stops me from running. More... | |
virtual void | GetACStatus (ULWord &outGoodFrames, ULWord &outDroppedFrames, ULWord &outBufferLevel) |
Provides status information about my input (capture) process. More... | |
Protected Member Functions | |
virtual AJAStatus | SetupVideo (void) |
Sets up everything I need for capturing video. More... | |
virtual AJAStatus | SetupAudio (void) |
Sets up everything I need for capturing audio. More... | |
virtual bool | RouteInputSignal (void) |
Sets up device routing for capture. More... | |
virtual void | SetupHostBuffers (void) |
Sets up my circular buffers. More... | |
virtual void | StartProducerThread (void) |
Starts my capture thread. More... | |
virtual void | CaptureFrames (void) |
Repeatedly captures frames using AutoCirculate (until global quit flag set). More... | |
virtual void | StartConsumerThread (void) |
Starts my frame consumer thread. More... | |
virtual void | ConsumeFrames (void) |
Repeatedly consumes frames from the circular buffer (until global quit flag set). More... | |
virtual uint32_t | RecoverAudio (const NTV2Buffer &inAncBuffer, const uint32_t inAncSize, NTV2Buffer &outAudioBuffer) |
Recover audio from ancillary data. More... | |
virtual uint32_t | RecoverDolby (const NTV2Buffer &inAudioBuffer, const uint32_t inAudioSize, NTV2Buffer &outDolbyBuffer) |
Recover Dolby data from the given audio data. More... | |
Static Protected Member Functions | |
static void | ConsumerThreadStatic (AJAThread *pThread, void *pContext) |
This is the consumer thread's static callback function that gets called when the consumer thread runs. This function gets "Attached" to the consumer thread's AJAThread instance. More... | |
static void | ProducerThreadStatic (AJAThread *pThread, void *pContext) |
This is the capture thread's static callback function that gets called when the capture thread runs. This function gets "Attached" to the AJAThread instance. More... | |
I capture HDMI Dolby audio from an HDMI input of an AJA device.
Definition at line 45 of file ntv2dolbycapture.h.
NTV2DolbyCapture::NTV2DolbyCapture | ( | const DolbyCaptureConfig & | inConfig | ) |
Constructs me using the given settings.
[in] | inConfig | Specifies how to configure capture. |
Definition at line 24 of file ntv2dolbycapture.cpp.
|
virtual |
Definition at line 39 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Repeatedly captures frames using AutoCirculate (until global quit flag set).
Definition at line 432 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Repeatedly consumes frames from the circular buffer (until global quit flag set).
mProgressive &&
mProgressive &&
mProgressive &&
mProgressive &&
Definition at line 304 of file ntv2dolbycapture.cpp.
|
staticprotected |
This is the consumer thread's static callback function that gets called when the consumer thread runs. This function gets "Attached" to the consumer thread's AJAThread instance.
[in] | pThread | A valid pointer to the consumer thread's AJAThread instance. |
[in] | pContext | Context information to pass to the thread. (For this application, this will point to the NTV2DolbyCapture instance.) |
Definition at line 292 of file ntv2dolbycapture.cpp.
|
virtual |
Provides status information about my input (capture) process.
[out] | outGoodFrames | Receives the number of successfully captured frames. |
[out] | outDroppedFrames | Receives the number of dropped frames. |
[out] | outBufferLevel | Receives the buffer level (number of captured frames ready to be transferred to the host). |
Definition at line 532 of file ntv2dolbycapture.cpp.
|
virtual |
Initializes me and prepares me to Run.
Definition at line 71 of file ntv2dolbycapture.cpp.
|
staticprotected |
This is the capture thread's static callback function that gets called when the capture thread runs. This function gets "Attached" to the AJAThread instance.
[in] | pThread | Points to the AJAThread instance. |
[in] | pContext | Context information to pass to the thread. (For this application, this will point to the NTV2DolbyCapture instance.) |
Definition at line 420 of file ntv2dolbycapture.cpp.
|
virtual |
Gracefully stops me from running.
Definition at line 50 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Recover audio from ancillary data.
Definition at line 541 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Recover Dolby data from the given audio data.
[in] | inAudioBuffer | A valid buffer containing the captured audio data. |
[in] | inAudioSize | Specifies the size of the given audio data buffer. |
[out] | inAudioSize | Specifies the size of the given audio data buffer. |
Definition at line 646 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Sets up device routing for capture.
Definition at line 252 of file ntv2dolbycapture.cpp.
|
virtual |
Runs me.
Definition at line 268 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Sets up everything I need for capturing audio.
Definition at line 199 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Sets up my circular buffers.
Definition at line 206 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Sets up everything I need for capturing video.
Definition at line 157 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Starts my frame consumer thread.
Definition at line 281 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Starts my capture thread.
Definition at line 409 of file ntv2dolbycapture.cpp.