![]() |
AJA NTV2 SDK
18.0.0.2717
NTV2 SDK 18.0.0.2717
|
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 429 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Repeatedly consumes frames from the circular buffer (until global quit flag set).
mProgressive &&
mProgressive &&
mProgressive &&
mProgressive &&
Definition at line 301 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 289 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 529 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 417 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 538 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] | outDolbyBuffer | The buffer to receive recovered Dolby data. |
Definition at line 643 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Sets up device routing for capture.
Definition at line 249 of file ntv2dolbycapture.cpp.
|
virtual |
Runs me.
Definition at line 265 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Sets up everything I need for capturing audio.
Definition at line 196 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Sets up my circular buffers.
Definition at line 203 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Sets up everything I need for capturing video.
Definition at line 153 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Starts my frame consumer thread.
Definition at line 278 of file ntv2dolbycapture.cpp.
|
protectedvirtual |
Starts my capture thread.
Definition at line 406 of file ntv2dolbycapture.cpp.