129 void *callback_context;
132 void (*log_cb)(
void *p,
int level,
const char *fmt, ...);
137 unsigned int checksum_failures;
158#define LIBKLVANC_SCTE104_MAX_FRAGMENTS (10)
160 int scte104_fragment_count;
163#define LIBKLVANC_LOGLEVEL_ERR 0
164#define LIBKLVANC_LOGLEVEL_WARN 1
165#define LIBKLVANC_LOGLEVEL_INFO 2
166#define LIBKLVANC_LOGLEVEL_DEBUG 3
244 const uint8_t *src, uint16_t srcByteCount,
245 uint16_t **dst, uint16_t *dstWordCount,
VANC Caching functionality.
Lookup functions that translate did/sdid into printable strings.
Generic code to limit the running of certain code to N times per second. Primary use case is to preve...
Common colorspace conversion functions for VANC.
Functions to parse, create and inspect SMPTE2038 formatted packets.
Definition klrestricted_code_path.h:55
TODO - Brief description goes here.
Definition vanc.h:106
Application specific context, the library allocates and stores user specific instance information.
Definition vanc.h:125
int allow_bad_checksums
Definition vanc.h:127
int warn_on_decode_failure
Definition vanc.h:130
TODO - Brief description goes here.
Definition vanc-afd.h:76
TODO - Brief description goes here.
Definition vanc-eia_608.h:42
TODO - Brief description goes here.
Definition vanc-eia_708b.h:121
TODO - Brief description goes here.
Definition vanc-kl_u64le_counter.h:42
TODO - Brief description goes here.
Definition vanc-scte_104.h:284
TODO - Brief description goes here.
Definition vanc-sdp.h:37
TODO - Brief description goes here.
Definition vanc-smpte_12_2.h:55
Describes an ST2108 packet.
Definition vanc-smpte_2108_1.h:74
SMPTE 2016-3 Vertical Ancillary Data Mapping of Active Format Description and Bar Data.
EIA/CEA-608 Closed Captions.
VANC counter library used for diagnostics/debugging.
klvanc_packet_type_e
TODO - Brief description goes here.
Definition vanc-packets.h:43
SCTE-104 Automation System to Compression System Communications Applications Program Interface.
WST / OP-47 / RDD8 - Subtitling Distribution Packet (SDP) Format.
SMPTE ST 12-2 Timecode over VANC.
SMPTE ST 2108-1 HDR/WCG over VANC.
int klvanc_context_dump(struct klvanc_context_s *ctx)
Generate user visible context details to the console.
void klvanc_packet_free(struct klvanc_packet_header_s *src)
TODO - Brief description goes here.
const char * klvanc_lookupDescriptionByType(enum klvanc_packet_type_e type)
TODO - Brief description goes here.
const char * klvanc_lookupSpecificationByType(enum klvanc_packet_type_e type)
TODO - Brief description goes here.
void klvanc_dump_words_console(struct klvanc_context_s *ctx, uint16_t *vanc, int maxlen, unsigned int linenr, int onlyvalid)
TODO - Brief description goes here.
int klvanc_packet_parse(struct klvanc_context_s *ctx, unsigned int lineNr, const unsigned short *words, unsigned int wordCount)
Parse a line of payload, trigger callbacks as necessary. lineNr is passed around and only used for r...
int klvanc_packet_payload_append(struct klvanc_packet_header_s *dst, struct klvanc_packet_header_s *src, int srcOffset)
Append the payload words from srd to dst. Start copying from srcOffset position.
int klvanc_context_create(struct klvanc_context_s **ctx)
Create or destroy some basic application/library context. The context is considered private and is l...
int klvanc_packet_copy(struct klvanc_packet_header_s **dst, struct klvanc_packet_header_s *src)
Create a copy of a packet header.
int klvanc_packet_save(const char *dir, const struct klvanc_packet_header_s *pkt, int lineNr, int did)
Write the packet to disk, in a debug friendly format that can be used by other offline tools....
int klvanc_context_destroy(struct klvanc_context_s *ctx)
Deallocate and destroy a context. See klvanc_context_create()
int klvanc_sdi_create_payload(uint8_t sdid, uint8_t did, const uint8_t *src, uint16_t srcByteCount, uint16_t **dst, uint16_t *dstWordCount, uint32_t bitDepth)
Take an array of payload, create a fully formed VANC message. bitDepth of 10 is the only valid input ...