I am similar to NTV2Player, but I demonstrate how to play/output 8 channels of audio tone (or ramp data, or Dolby audio read from a binary data file) to an AJA device's HDMI output.
More...
#include <ntv2dolbyplayer.h>
|
static void | ConsumerThreadStatic (AJAThread *pThread, void *pContext) |
| This is the consumer thread's static callback function that gets called when the consumer thread starts. This function gets "Attached" to the consumer thread's AJAThread instance. More...
|
|
static void | ProducerThreadStatic (AJAThread *pThread, void *pContext) |
| This is the producer thread's static callback function that gets called when the producer thread starts. This function gets "Attached" to the producer thread's AJAThread instance. More...
|
|
I am similar to NTV2Player, but I demonstrate how to play/output 8 channels of audio tone (or ramp data, or Dolby audio read from a binary data file) to an AJA device's HDMI output.
Definition at line 52 of file ntv2dolbyplayer.h.
◆ NTV2DolbyPlayer()
Constructs me using the given configuration settings.
- Note
- I'm not completely initialized and ready for use until after my Init method has been called.
- Parameters
-
[in] | inConfigData | Specifies the player configuration. |
Definition at line 54 of file ntv2dolbyplayer.cpp.
◆ ~NTV2DolbyPlayer()
NTV2DolbyPlayer::~NTV2DolbyPlayer |
( |
void |
| ) |
|
|
virtual |
◆ AddDolby()
uint32_t NTV2DolbyPlayer::AddDolby |
( |
NTV2FrameData & |
inFrameData | ) |
|
|
protectedvirtual |
Inserts dolby audio into the given NTV2FrameData's audio buffer.
- Parameters
-
[out] | audioBuffer | Specifies a valid, non-NULL pointer to the buffer that is to receive the audio tone data. |
- Returns
- Total number of bytes written into the buffer.
Definition at line 705 of file ntv2dolbyplayer.cpp.
◆ AddRamp()
Inserts audio test ramp into the given NTV2FrameData's audio buffer.
- Parameters
-
inFrameData | The NTV2FrameData object having the audio buffer that is to receive the audio ramp data. |
- Returns
- Total number of bytes written into the buffer.
Definition at line 674 of file ntv2dolbyplayer.cpp.
◆ AddTone()
Inserts audio tone (based on my current tone frequency) into the given NTV2FrameData's audio buffer.
- Parameters
-
inFrameData | The NTV2FrameData object having the audio buffer to be filled. |
- Returns
- Total number of bytes written into the buffer.
Definition at line 639 of file ntv2dolbyplayer.cpp.
◆ ConsumeFrames()
void NTV2DolbyPlayer::ConsumeFrames |
( |
void |
| ) |
|
|
protectedvirtual |
My consumer thread that repeatedly plays frames using AutoCirculate (until quit).
Definition at line 457 of file ntv2dolbyplayer.cpp.
◆ ConsumerThreadStatic()
void NTV2DolbyPlayer::ConsumerThreadStatic |
( |
AJAThread * |
pThread, |
|
|
void * |
pContext |
|
) |
| |
|
staticprotected |
This is the consumer thread's static callback function that gets called when the consumer thread starts. This function gets "Attached" to the consumer thread's AJAThread instance.
- Parameters
-
[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 be set to point to the NTV2DolbyPlayer instance.) |
Definition at line 446 of file ntv2dolbyplayer.cpp.
◆ GetACStatus()
Provides status information about my output (playout) process.
- Parameters
-
Definition at line 633 of file ntv2dolbyplayer.cpp.
◆ GetBits()
bool NTV2DolbyPlayer::GetBits |
( |
uint32_t & |
data, |
|
|
uint32_t |
inBitCount |
|
) |
| |
|
protectedvirtual |
Retreive the specified number of bits from the bitstream buffer.
- Parameters
-
| data | Bitstream data |
[in] | inBitCount | Number of bits to retrieve from the buffer |
- Returns
- True if suceeded.
Definition at line 1269 of file ntv2dolbyplayer.cpp.
◆ GetDolbyFrame()
bool NTV2DolbyPlayer::GetDolbyFrame |
( |
uint16_t * |
pInDolbyBuffer, |
|
|
uint32_t & |
numSamples |
|
) |
| |
|
protectedvirtual |
Get a dolby audio frame from the input file.
- Parameters
-
[out] | pInDolbyBuffer | Specifies a valid, non-NULL pointer to the buffer that is to receive the dolby frame data. |
[out] | numSamples | Number of samples in the buffer. |
- Returns
- True if valid sync frame in buffer.
Definition at line 909 of file ntv2dolbyplayer.cpp.
◆ Init()
◆ ParseBSI()
bool NTV2DolbyPlayer::ParseBSI |
( |
uint16_t * |
pInDolbyBuffer, |
|
|
uint32_t |
numSamples, |
|
|
NTV2DolbyBSI * |
pBsi |
|
) |
| |
|
protectedvirtual |
Parse the dolby audio bit stream information block.
- Parameters
-
[out] | pInDolbyBuffer | Specifies a valid, non-NULL pointer to the buffer that is to receive the dolby frame data. |
[out] | numSamples | Number of samples in the buffer. |
[out] | pBsi | Parsed Dolby header data. |
- Returns
- True if parser suceeded.
Definition at line 952 of file ntv2dolbyplayer.cpp.
◆ ProduceFrames()
void NTV2DolbyPlayer::ProduceFrames |
( |
void |
| ) |
|
|
protectedvirtual |
◆ ProducerThreadStatic()
void NTV2DolbyPlayer::ProducerThreadStatic |
( |
AJAThread * |
pThread, |
|
|
void * |
pContext |
|
) |
| |
|
staticprotected |
This is the producer thread's static callback function that gets called when the producer thread starts. This function gets "Attached" to the producer thread's AJAThread instance.
- Parameters
-
[in] | pThread | A valid pointer to the producer thread's AJAThread instance. |
[in] | pContext | Context information to pass to the thread. (For this application, this will be set to point to the NTV2DolbyPlayer instance.) |
Definition at line 549 of file ntv2dolbyplayer.cpp.
◆ Quit()
void NTV2DolbyPlayer::Quit |
( |
void |
| ) |
|
|
virtual |
◆ RouteOutputSignal()
bool NTV2DolbyPlayer::RouteOutputSignal |
( |
void |
| ) |
|
|
protectedvirtual |
◆ Run()
Runs me.
- Note
- Do not call this method without first calling my Init method.
Definition at line 421 of file ntv2dolbyplayer.cpp.
◆ SetBitBuffer()
void NTV2DolbyPlayer::SetBitBuffer |
( |
uint8_t * |
pBuffer, |
|
|
uint32_t |
size |
|
) |
| |
|
protectedvirtual |
Set the bitstream buffer for bit retrieval.
- Parameters
-
[in] | pBuffer | Specifies a valid, non-NULL pointer to the bitstream buffer |
[in] | size | Bitstream buffer size |
Definition at line 1262 of file ntv2dolbyplayer.cpp.
◆ SetUpAudio()
AJAStatus NTV2DolbyPlayer::SetUpAudio |
( |
void |
| ) |
|
|
protectedvirtual |
◆ SetUpHostBuffers()
AJAStatus NTV2DolbyPlayer::SetUpHostBuffers |
( |
void |
| ) |
|
|
protectedvirtual |
◆ SetUpTestPatternBuffers()
AJAStatus NTV2DolbyPlayer::SetUpTestPatternBuffers |
( |
void |
| ) |
|
|
protectedvirtual |
◆ SetUpVideo()
AJAStatus NTV2DolbyPlayer::SetUpVideo |
( |
void |
| ) |
|
|
protectedvirtual |
◆ StartConsumerThread()
void NTV2DolbyPlayer::StartConsumerThread |
( |
void |
| ) |
|
|
protectedvirtual |
◆ StartProducerThread()
void NTV2DolbyPlayer::StartProducerThread |
( |
void |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files:
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/demos/ntv2dolbyplayer/ntv2dolbyplayer.h
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/demos/ntv2dolbyplayer/ntv2dolbyplayer.cpp