libklvanc
Classes | Functions
vanc-eia_608.h File Reference

EIA/CEA-608 Closed Captions. More...

#include <libklvanc/vanc-packets.h>

Go to the source code of this file.

Classes

struct  klvanc_packet_eia_608_s
 TODO - Brief description goes here. More...
 

Functions

int klvanc_dump_EIA_608 (struct klvanc_context_s *ctx, void *p)
 TODO - Brief description goes here. More...
 
int klvanc_create_EIA_608 (struct klvanc_packet_eia_608_s **pkt)
 Create an EIA-608 VANC packet. More...
 
void klvanc_destroy_EIA_608 (struct klvanc_packet_eia_608_s *pkt)
 Destroy an EIA-608 VANC packet. More...
 
int klvanc_convert_EIA_608_to_packetBytes (struct klvanc_packet_eia_608_s *pkt, uint8_t **bytes, uint16_t *byteCount)
 Convert type struct klvanc_packet_eia_608_s into a block of bytes which represents
an EIA-608 packet (without DID/SDID/DC/checksum) On success, caller MUST free the resulting *bytes array. More...
 
int klvanc_convert_EIA_608_to_words (struct klvanc_packet_eia_608_s *pkt, uint16_t **words, uint16_t *wordCount)
 Convert type struct klvanc_packet_eia_608_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. More...
 

Detailed Description

EIA/CEA-608 Closed Captions.

Author
Steven Toth stoth.nosp@m.@ker.nosp@m.nella.nosp@m.bs.c.nosp@m.om

Function Documentation

int klvanc_convert_EIA_608_to_packetBytes ( struct klvanc_packet_eia_608_s pkt,
uint8_t **  bytes,
uint16_t *  byteCount 
)

Convert type struct klvanc_packet_eia_608_s into a block of bytes which represents
an EIA-608 packet (without DID/SDID/DC/checksum) On success, caller MUST free the resulting *bytes array.

Parameters
[in]structklvanc_packet_eia_608_s *pkt - An EIA-608 VANC entry, received from the EIA-608 parser
[out]uint8_t**bytes - An array of bytes representing the serialized EIA-608 packet
[out]uint16_t*byteCount - Number of bytes in the array.
Returns
0 - Success
< 0 - Error
-ENOMEM - Not enough memory to satisfy request
int klvanc_convert_EIA_608_to_words ( struct klvanc_packet_eia_608_s pkt,
uint16_t **  words,
uint16_t *  wordCount 
)

Convert type struct klvanc_packet_eia_608_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.

Parameters
[in]structklvanc_packet_eia_608_s *pkt - A EIA-608 VANC entry
[out]uint16_t**words - An array of words representing a fully formed vanc line.
[out]uint16_t*wordCount - Number of words in the array.
Returns
0 - Success
< 0 - Error
-ENOMEM - Not enough memory to satisfy request
int klvanc_create_EIA_608 ( struct klvanc_packet_eia_608_s **  pkt)

Create an EIA-608 VANC packet.

Parameters
[out]structklvanc_packet_eia_608_s **pkt - Pointer to newly created packet
Returns
0 - Success
< 0 - Error
void klvanc_destroy_EIA_608 ( struct klvanc_packet_eia_608_s pkt)

Destroy an EIA-608 VANC packet.

Parameters
[in]structklvanc_packet_eia_608_s *pkt - Packet to be destroyed
int klvanc_dump_EIA_608 ( struct klvanc_context_s ctx,
void *  p 
)

TODO - Brief description goes here.

Parameters
[in]structvanc_context_s *ctx, void *p - Brief description goes here.
Returns
0 - Success
< 0 - Error