libklvanc
Loading...
Searching...
No Matches
vanc-sdp.h File Reference

WST / OP-47 / RDD8 - Subtitling Distribution Packet (SDP) Format. More...

Go to the source code of this file.

Classes

struct  klvanc_sdp_desc_s
 TODO - Brief description goes here. More...
struct  klvanc_packet_sdp_s
 TODO - Brief description goes here. More...

Enumerations

enum  klvanc_sdp_format_code_e { SDP_WSS_TELETEXT = 0x02 }

Functions

int klvanc_dump_SDP (struct klvanc_context_s *ctx, void *p)
int klvanc_create_SDP (struct klvanc_packet_sdp_s **pkt)
 Allocate a new SDP packet.
void klvanc_destroy_SDP (struct klvanc_packet_sdp_s *pkt)
 Free a previously allocated SDP packet.
void klvanc_finalize_SDP (struct klvanc_packet_sdp_s *pkt, uint16_t seqNum)
 Finalize a packet and prepare to serialize to output.
int klvanc_convert_SDP_to_words (struct klvanc_packet_sdp_s *pkt, uint16_t **words, uint16_t *wordCount)
 Convert type struct klvanc_packet_sdp_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_convert_SDP_to_packetBytes (struct klvanc_packet_sdp_s *pkt, uint8_t **bytes, uint16_t *byteCount)
 Convert type struct klvanc_packet_sdp_s into a block of bytes which represents
an SDP packet On success, caller MUST free the resulting *bytes array.

Detailed Description

WST / OP-47 / RDD8 - Subtitling Distribution Packet (SDP) Format.

Author
Yves De Muyter yves@.nosp@m.alfa.nosp@m.visio.nosp@m..be, tidy-ups: Steven Toth stoth.nosp@m.@ker.nosp@m.nella.nosp@m.bs.c.nosp@m.om

Function Documentation

◆ klvanc_convert_SDP_to_packetBytes()

int klvanc_convert_SDP_to_packetBytes ( struct klvanc_packet_sdp_s * pkt,
uint8_t ** bytes,
uint16_t * byteCount )

Convert type struct klvanc_packet_sdp_s into a block of bytes which represents
an SDP packet On success, caller MUST free the resulting *bytes array.

Parameters
[in]structklvanc_packet_sdp_s *pkt - A SDP VANC entry, received from the SDP parser
[out]uint8_t**bytes - An array of bytes representing the serialized SDP packet
[out]uint16_t*byteCount - Number of bytes in the array.
Returns
0 - Success
< 0 - Error
-ENOMEM - Not enough memory to satisfy request

◆ klvanc_convert_SDP_to_words()

int klvanc_convert_SDP_to_words ( struct klvanc_packet_sdp_s * pkt,
uint16_t ** words,
uint16_t * wordCount )

Convert type struct klvanc_packet_sdp_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_sdp_s *pkt - A SDP 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

◆ klvanc_create_SDP()

int klvanc_create_SDP ( struct klvanc_packet_sdp_s ** pkt)

Allocate a new SDP packet.

Parameters
[out]structklvanc_packet_sdp_s **pkt - object created
Returns
0 - Success
< 0 - Error

◆ klvanc_destroy_SDP()

void klvanc_destroy_SDP ( struct klvanc_packet_sdp_s * pkt)

Free a previously allocated SDP packet.

Parameters
[in]structklvanc_packet_sdp_s *pkt - object to be freed

◆ klvanc_finalize_SDP()

void klvanc_finalize_SDP ( struct klvanc_packet_sdp_s * pkt,
uint16_t seqNum )

Finalize a packet and prepare to serialize to output.

Parameters
[in]structklvanc_packet_sdp_s *pkt - A SDP VANC entry, received from the SDP parser
[in]uint16_tseqNum - Sequence Number. This value should increment with each packet output over the final SDI link.