WST / OP-47 / RDD8 - Subtitling Distribution Packet (SDP) Format.
More...
Go to the source code of this file.
|
| enum | klvanc_sdp_format_code_e { SDP_WSS_TELETEXT = 0x02
} |
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
- Copyright
- Copyright (c) 2023 Kernel Labs Inc. All Rights Reserved.
◆ 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] | struct | klvanc_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] | struct | klvanc_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()
Allocate a new SDP packet.
- Parameters
-
- Returns
- 0 - Success
-
< 0 - Error
◆ klvanc_destroy_SDP()
Free a previously allocated SDP packet.
- Parameters
-
◆ klvanc_finalize_SDP()
Finalize a packet and prepare to serialize to output.
- Parameters
-
| [in] | struct | klvanc_packet_sdp_s *pkt - A SDP VANC entry, received from the SDP parser |
| [in] | uint16_t | seqNum - Sequence Number. This value should increment with each packet output over the final SDI link. |