AJA NTV2 SDK  17.1.1.1245
NTV2 SDK 17.1.1.1245
ntv2ccplayer.h File Reference
#include "ntv2democommon.h"
#include "ajabase/system/thread.h"
#include "ajabase/system/info.h"
#include "ntv2captionencoder608.h"
#include "ntv2captionencoder708.h"
#include "ntv2caption608types.h"
#include <vector>
#include <map>
Include dependency graph for ntv2ccplayer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CCGenConfig
 This class is used to configure a caption generator for a single caption channel. More...
 
struct  CCPlayerConfig
 Configures an NTV2CCPlayer instance. More...
 
class  NTV2CCPlayer
 I am an object that can inject text captions into an SDI output of an AJA device in real time. I'm capable of simultaneously generating and injecting text into more than one NTV2Line21Channel, at independent rates, and NTV2Line21Modes. Each caption channel's configuration is specified by a CCGeneratorConfig struct. I make use of the AJACircularBuffer, which simplifies implementing a producer/consumer model, in which a "producer" thread produces the background video frames, and a "consumer" thread (i.e., the "play" thread) sends those frames to the AJA device. I demonstrate how to use the "AJA CC LIB" caption library to embed captions into an SDI output signal. More...
 

Macros

#define SIG_AJA_STOP   31
 

Typedefs

typedef enum _AtEndAction_ AtEndAction
 These are the actions that can be taken after the last file is "played". More...
 
typedef struct CCGenConfig CCGenConfig
 This class is used to configure a caption generator for a single caption channel. More...
 
typedef std::map< NTV2Line21Channel, CCGenConfigCaptionChanGenMap
 
typedef CaptionChanGenMap::const_iterator CaptionChanGenMapCIter
 
typedef CaptionChanGenMap::iterator CaptionChanGenMapIter
 
typedef CCPlayerConfig CCPlayerConfig
 Configures an NTV2CCPlayer instance. More...
 

Enumerations

enum  _AtEndAction_ { AtEndAction_Quit, AtEndAction_Repeat, AtEndAction_Idle, AtEndAction_Max }
 These are the actions that can be taken after the last file is "played". More...
 

Functions

void SignalHandler (int inSignal)
 
std::ostream & operator<< (std::ostream &ioStrm, const CCPlayerConfig &inObj)
 

Macro Definition Documentation

◆ SIG_AJA_STOP

#define SIG_AJA_STOP   31

Definition at line 21 of file ntv2ccplayer.h.

Typedef Documentation

◆ AtEndAction

typedef enum _AtEndAction_ AtEndAction

These are the actions that can be taken after the last file is "played".

◆ CaptionChanGenMap

Definition at line 72 of file ntv2ccplayer.h.

◆ CaptionChanGenMapCIter

typedef CaptionChanGenMap::const_iterator CaptionChanGenMapCIter

Definition at line 73 of file ntv2ccplayer.h.

◆ CaptionChanGenMapIter

typedef CaptionChanGenMap::iterator CaptionChanGenMapIter

Definition at line 74 of file ntv2ccplayer.h.

◆ CCGenConfig

typedef struct CCGenConfig CCGenConfig

This class is used to configure a caption generator for a single caption channel.

◆ CCPlayerConfig

Configures an NTV2CCPlayer instance.

Enumeration Type Documentation

◆ _AtEndAction_

These are the actions that can be taken after the last file is "played".

Enumerator
AtEndAction_Quit 
AtEndAction_Repeat 

Terminate.

AtEndAction_Idle 

Repeat the file list (must Ctrl-C to terminate)

AtEndAction_Max 

Continue to emit gray field on the device (must Ctrl-C to terminate)

Definition at line 27 of file ntv2ccplayer.h.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ioStrm,
const CCPlayerConfig inObj 
)

Definition at line 248 of file ntv2ccplayer.cpp.

◆ SignalHandler()

void SignalHandler ( int  inSignal)

Definition at line 26 of file main.cpp.