29 #ifndef _VANC_SMPTE_12_2_H
30 #define _VANC_SMPTE_12_2_H
39 #define KLVANC_ATC_LTC 0x00
40 #define KLVANC_ATC_VITC1 0x01
41 #define KLVANC_ATC_VITC2 0x02
43 #define KLVANC_FILM_DATA_BLOCK 0x06
44 #define KLVANC_PROD_DATA_BLOCK 0x07
46 #define KLVANC_VID_TAPE_DATA_BLOCK_LOCAL 0x7d
47 #define KLVANC_FILM_DATA_BLOCK_LOCAL 0x7e
48 #define KLVANC_PROD_DATA_BLOCK_LOCAL 0x7f
58 unsigned char payload[256];
59 unsigned int payloadLengthBytes;
64 uint8_t vitc_line_select;
65 uint8_t line_duplication_flag;
66 uint8_t tc_validity_flag;
67 uint8_t user_bits_process_flag;
110 int frate_num,
int frate_den,
141 uint16_t **words, uint16_t *wordCount);
156 uint8_t **bytes, uint16_t *byteCount);
int klvanc_SMPTE_12_2_preferred_line(int dbb1, int lineCount, int interlaced)
Determine the appropriate line to insert this S-12 packet onto. This takes into consideration interop...
int klvanc_convert_SMPTE_12_2_to_words(struct klvanc_context_s *ctx, struct klvanc_packet_smpte_12_2_s *pkt, uint16_t **words, uint16_t *wordCount)
Convert type struct packet_smpte_12_2_s into a more traditional line of vanc words, so that we may push out as VANC data. On success, caller MUST free the resulting *words array.
int klvanc_alloc_SMPTE_12_2(struct klvanc_packet_smpte_12_2_s **pkt)
Create SMPTE ST 12-2 timecode.
int klvanc_create_SMPTE_12_2_from_ST370(uint32_t st370_tc, int frate_num, int frate_den, struct klvanc_packet_smpte_12_2_s **pkt)
Create SMPTE ST 12-2 timecode from SMPTE 370 / 314 timecode.
Application specific context, the library allocates and stores user specific instance information...
Definition: vanc.h:118
int klvanc_dump_SMPTE_12_2(struct klvanc_context_s *ctx, void *p)
TODO - Brief description goes here.
TODO - Brief description goes here.
Definition: vanc-smpte_12_2.h:54
void klvanc_free_SMPTE_12_2(void *p)
TODO - Brief description goes here.
int klvanc_convert_SMPTE_12_2_to_packetBytes(struct klvanc_context_s *ctx, const struct klvanc_packet_smpte_12_2_s *pkt, uint8_t **bytes, uint16_t *byteCount)
Convert type struct packet_smpte_12_2_s into a block of bytes which can be embedded into a VANC line...
VANC Headers and packet structure.