I play out SD or HD test pattern (with timecode) to an output of an AJA device with or without audio tone in real time. I make use of the AJACircularBuffer, which simplifies implementing a producer/consumer model, in which a "producer" thread generates the test pattern frames, and a "consumer" thread (i.e., the "play" thread) sends those frames to the AJA device. I also show how to embed timecode into an SDI output signal using AutoCirculate during playout.
More...
#include <ntv2streamplayer.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 play out SD or HD test pattern (with timecode) to an output of an AJA device with or without audio tone in real time. I make use of the AJACircularBuffer, which simplifies implementing a producer/consumer model, in which a "producer" thread generates the test pattern frames, and a "consumer" thread (i.e., the "play" thread) sends those frames to the AJA device. I also show how to embed timecode into an SDI output signal using AutoCirculate during playout.
Definition at line 24 of file ntv2streamplayer.h.
◆ NTV2StreamPlayer()
NTV2StreamPlayer::NTV2StreamPlayer |
( |
const PlayerConfig & |
inConfig | ) |
|
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] | inConfig | Specifies all configuration parameters. |
Definition at line 28 of file ntv2streamplayer.cpp.
◆ ~NTV2StreamPlayer()
NTV2StreamPlayer::~NTV2StreamPlayer |
( |
void |
| ) |
|
|
virtual |
◆ ConsumeFrames()
void NTV2StreamPlayer::ConsumeFrames |
( |
void |
| ) |
|
|
protectedvirtual |
My consumer thread that repeatedly plays frames using AutoCirculate (until quit).
Definition at line 384 of file ntv2streamplayer.cpp.
◆ ConsumerThreadStatic()
void NTV2StreamPlayer::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 (the NTV2StreamPlayer instance). |
Definition at line 373 of file ntv2streamplayer.cpp.
◆ GetStreamStatus()
Provides status information about my output (playout) process.
- Parameters
-
Definition at line 602 of file ntv2streamplayer.cpp.
◆ Init()
◆ ProduceFrames()
void NTV2StreamPlayer::ProduceFrames |
( |
void |
| ) |
|
|
protectedvirtual |
◆ ProducerThreadStatic()
void NTV2StreamPlayer::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 (the NTV2StreamPlayer instance). |
Definition at line 525 of file ntv2streamplayer.cpp.
◆ Quit()
void NTV2StreamPlayer::Quit |
( |
void |
| ) |
|
|
virtual |
◆ RouteOutputSignal()
bool NTV2StreamPlayer::RouteOutputSignal |
( |
void |
| ) |
|
|
protectedvirtual |
◆ Run()
Runs me.
- Note
- Do not call this method without first calling my Init method.
Definition at line 348 of file ntv2streamplayer.cpp.
◆ SetUpHostBuffers()
AJAStatus NTV2StreamPlayer::SetUpHostBuffers |
( |
void |
| ) |
|
|
protectedvirtual |
◆ SetUpTestPatternBuffers()
AJAStatus NTV2StreamPlayer::SetUpTestPatternBuffers |
( |
void |
| ) |
|
|
protectedvirtual |
◆ SetUpVideo()
AJAStatus NTV2StreamPlayer::SetUpVideo |
( |
void |
| ) |
|
|
protectedvirtual |
◆ StartConsumerThread()
void NTV2StreamPlayer::StartConsumerThread |
( |
void |
| ) |
|
|
protectedvirtual |
◆ StartProducerThread()
void NTV2StreamPlayer::StartProducerThread |
( |
void |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files:
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/demos/ntv2streamplayer/ntv2streamplayer.h
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/demos/ntv2streamplayer/ntv2streamplayer.cpp