AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
main.cpp File Reference

Demonstration application that grabs closed-captioning data from frames captured from SDI input (using AutoCirculate), and writes the captions to standard output. More...

#include "ajatypes.h"
#include "ajabase/common/options_popt.h"
#include "ajabase/pnp/pnp.h"
#include "ntv2ccgrabber.h"
#include "ntv2utils.h"
#include <signal.h>
#include <iostream>
#include <iomanip>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

static bool gGlobalQuit ((0))
 
static void SignalHandler (int inSignal)
 
static void PnpCallback (const AJAPnpMessage inMessage, void *pUserData)
 This function gets called whenever an AJA device is attached or detached to/from the host. More...
 
int main (int argc, const char **argv)
 

Variables

static AJAPnp gPlugAndPlay
 

Detailed Description

Demonstration application that grabs closed-captioning data from frames captured from SDI input (using AutoCirculate), and writes the captions to standard output.

Definition in file main.cpp.

Function Documentation

◆ gGlobalQuit()

static bool gGlobalQuit ( (0)  )
static

◆ main()

int main ( int  argc,
const char **  argv 
)

Definition at line 66 of file main.cpp.

◆ PnpCallback()

static void PnpCallback ( const AJAPnpMessage  inMessage,
void *  pUserData 
)
static

This function gets called whenever an AJA device is attached or detached to/from the host.

Parameters
[in]inMessageSpecifies if a device was attached or detached.
[in]pUserDataThe client data associated with the callback.

Definition at line 44 of file main.cpp.

◆ SignalHandler()

static void SignalHandler ( int  inSignal)
static

Definition at line 31 of file main.cpp.

Variable Documentation

◆ gPlugAndPlay

AJAPnp gPlugAndPlay
static

Definition at line 28 of file main.cpp.