40 #include <sys/errno.h>
41 #include <sys/errno.h>
123 void *callback_context;
126 void (*log_cb)(
void *p,
int level,
const char *fmt, ...);
131 unsigned int checksum_failures;
152 #define LIBKLVANC_SCTE104_MAX_FRAGMENTS (10)
154 int scte104_fragment_count;
157 #define LIBKLVANC_LOGLEVEL_ERR 0
158 #define LIBKLVANC_LOGLEVEL_WARN 1
159 #define LIBKLVANC_LOGLEVEL_INFO 2
160 #define LIBKLVANC_LOGLEVEL_DEBUG 3
220 #include <libklvanc/vanc-sdp.h>
237 const uint8_t *src, uint16_t srcByteCount,
238 uint16_t **dst, uint16_t *dstWordCount,
klvanc_packet_type_e
TODO - Brief description goes here.
Definition: vanc-packets.h:42
VANC counter library used for diagnostics/debugging.
SCTE-104 Automation System to Compression System Communications Applications Program Interface...
SMPTE ST 12-2 Timecode over VANC.
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 ...
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_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...
const char * klvanc_lookupDescriptionByType(enum klvanc_packet_type_e type)
TODO - Brief description goes here.
int klvanc_context_dump(struct klvanc_context_s *ctx)
Generate user visible context details to the console.
int warn_on_decode_failure
Definition: vanc.h:124
SMPTE 2016-3 Vertical Ancillary Data Mapping of Active Format Description and Bar Data...
int klvanc_packet_copy(struct klvanc_packet_header_s **dst, struct klvanc_packet_header_s *src)
Create a copy of a packet header.
Lookup functions that translate did/sdid into printable strings.
int klvanc_context_destroy(struct klvanc_context_s *ctx)
Deallocate and destroy a context. See klvanc_context_create()
int allow_bad_checksums
Definition: vanc.h:121
EIA/CEA-608 Closed Captions.
VANC Caching functionality.
Common colorspace conversion functions for VANC.
TODO - Brief description goes here.
Definition: vanc-kl_u64le_counter.h:41
Generic code to limit the running of certain code to N times per second. Primary use case is to preve...
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.
TODO - Brief description goes here.
Definition: vanc-eia_608.h:41
Application specific context, the library allocates and stores user specific instance information...
Definition: vanc.h:118
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.
TODO - Brief description goes here.
Definition: vanc.h:100
TODO - Brief description goes here.
Definition: vanc-afd.h:75
TODO - Brief description goes here.
Definition: vanc-smpte_12_2.h:54
Functions to parse, create and inspect SMPTE2038 formatted packets.
Definition: klrestricted_code_path.h:54
TODO - Brief description goes here.
Definition: vanc-scte_104.h:283
const char * klvanc_lookupSpecificationByType(enum klvanc_packet_type_e type)
TODO - Brief description goes here.
void klvanc_packet_free(struct klvanc_packet_header_s *src)
TODO - Brief description goes here.
Definition: vanc-sdp.h:22
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...
TODO - Brief description goes here.
Definition: vanc-eia_708b.h:120