SDI Technologies iH30 Especificações Página 37

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 147
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 36
Ancillary Data
Quadro SDI Output PG-03776-001_v06 | 32
6.3 TIME CODE
The following code example shows how an application can send VITC time code as
defined by SMPTE 12M-1999 to the SDI device. The time code data as well as relevant
bit flags are packed into the 32-bit
VITCTimecode field as documented and
demonstrated in the following code example.
Code Listing 31: Specifying Time Code Data
NVVIOANCDATAFRAME ancData = {0};
static int counter = 0;
// Set field mask
ancData.version = NVVIOANCDATAFRAME_VERSION;
ancData.fields = NVVIOANCDATAFRAME_VITC;
// Generate timecode here
int frameTens = myTimeCode.frame() / 10;
int frameUnits = myTimeCode.frame() % 10;
int secondTens = myTimeCode.second() / 10;
int secondUnits = myTimeCode.second() % 10;
int minuteTens = myTimeCode.minute() / 10;
int minuteUnits = myTimeCode.minute() % 10;
int hourTens = myTimeCode.hour() / 10;
int hourUnits = myTimeCode.hour() % 10;
// Set relevant bits here
short dropFrame = 1;
short colorFrame = 1;
short fieldPhase = 0;
short /jointfilesconvert/300731/bg0 = 1;
short /jointfilesconvert/300731/bg1 = 0;
short /jointfilesconvert/300731/bg2 = 1;
// Per SMPTE 12M-1999, shift values to the appropriate
// bit positions.
//
// Bit Assigment 60-field TV 50-field TV 24-frame Film
// --- ---------------- ----------- ----------- -------------
// 0 Frame Units (1)
// 1 Frame Units (2)
// 2 Frame Units (4)
// 3 Frame Units (8)
// 4 Frame Tens (1)
// 5 Frame Tens (2)
// 6 Flag Drop Frame Unused Unused
// 7 Flag Color Frame Color Frame Unused
// 8 Second Units (1)
// 9 Second Units (2)
// 10 Second Units (4)
// 11 Second Units (8)
Vista de página 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 146 147

Comentários a estes Manuais

Sem comentários