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

Demonstration application to capture frames from SDI input. More...

#include "ntv2utils.h"
#include "ajatypes.h"
#include "ntv2m31publicinterface.h"
#include "ajabase/common/options_popt.h"
#include "ajabase/system/systemtime.h"
#include "ntv2encodehevc.h"
#include <signal.h>
#include <iostream>
#include <iomanip>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

static const size_t gNumCodecPresets (sizeof(kCodecPreset)/sizeof(M31VideoPreset))
 
static const size_t gNumCodecFormats (sizeof(kCodecFormat)/sizeof(NTV2FrameBufferFormat))
 
static const size_t kNoSelection (1000000000)
 
static bool gGlobalQuit ((0))
 
static void SignalHandler (int inSignal)
 
static int printPresets (void)
 
static int printFormats (void)
 
int main (int argc, const char **argv)
 

Variables

static const M31VideoPreset kCodecPreset []
 
static const NTV2FrameBufferFormat kCodecFormat []
 

Detailed Description

Demonstration application to capture frames from SDI input.

Definition in file main.cpp.

Function Documentation

◆ gGlobalQuit()

static bool gGlobalQuit ( (0)  )
static

◆ gNumCodecFormats()

static const size_t gNumCodecFormats ( sizeof(kCodecFormat)/sizeof(NTV2FrameBufferFormat )
static

◆ gNumCodecPresets()

static const size_t gNumCodecPresets ( sizeof(kCodecPreset)/sizeof(M31VideoPreset )
static

◆ kNoSelection()

static const size_t kNoSelection ( 1000000000  )
static

◆ main()

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

Definition at line 181 of file main.cpp.

◆ printFormats()

static int printFormats ( void  )
static

Definition at line 168 of file main.cpp.

◆ printPresets()

static int printPresets ( void  )
static

Definition at line 156 of file main.cpp.

◆ SignalHandler()

static void SignalHandler ( int  inSignal)
static

Definition at line 150 of file main.cpp.

Variable Documentation

◆ kCodecFormat

◆ kCodecPreset

const M31VideoPreset kCodecPreset[]
static

Definition at line 23 of file main.cpp.

NTV2_FBF_10BIT_YCBCR_420PL2
@ NTV2_FBF_10BIT_YCBCR_420PL2
10-Bit 4:2:0 2-Plane YCbCr
Definition: ntv2enums.h:242
NTV2_FBF_8BIT_YCBCR_420PL2
@ NTV2_FBF_8BIT_YCBCR_420PL2
8-Bit 4:2:0 2-Plane YCbCr
Definition: ntv2enums.h:244
NTV2_FBF_10BIT_YCBCR_422PL2
@ NTV2_FBF_10BIT_YCBCR_422PL2
10-Bit 4:2:2 2-Plane YCbCr
Definition: ntv2enums.h:243
NTV2_FBF_8BIT_YCBCR_422PL2
@ NTV2_FBF_8BIT_YCBCR_422PL2
8-Bit 4:2:2 2-Plane YCbCr
Definition: ntv2enums.h:245