libklvanc
Loading...
Searching...
No Matches
vanc-sdp.h
Go to the documentation of this file.
1
8
9#ifndef _VANC_SDP_H
10#define _VANC_SDP_H
11
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18enum klvanc_sdp_format_code_e
19{
20 SDP_WSS_TELETEXT = 0x02
21};
22
27{
28 uint8_t line; // Line number, only 5 bits
29 uint8_t field; // Field number, only 1 bit, 0 = even field
30 uint8_t data[45]; // WSS Teletext data representing a subtitle line
31};
32
37{
38 struct klvanc_packet_header_s hdr;
39 uint16_t identifier;
40 enum klvanc_sdp_format_code_e format_code;
41 struct klvanc_sdp_desc_s descriptors[5];
42 uint16_t sequence_counter;
43 uint8_t checksum;
44 uint8_t checksum_valid;
45};
46
47int klvanc_dump_SDP(struct klvanc_context_s *ctx, void *p);
48
56
62
68void klvanc_finalize_SDP(struct klvanc_packet_sdp_s *pkt, uint16_t seqNum);
69
81int klvanc_convert_SDP_to_words(struct klvanc_packet_sdp_s *pkt, uint16_t **words, uint16_t *wordCount);
82
94int klvanc_convert_SDP_to_packetBytes(struct klvanc_packet_sdp_s *pkt, uint8_t **bytes, uint16_t *byteCount);
95
96#ifdef __cplusplus
97};
98#endif
99
100#endif /* _VANC_SDP_H */
Application specific context, the library allocates and stores user specific instance information.
Definition vanc.h:125
TODO - Brief description goes here.
Definition vanc-packets.h:59
TODO - Brief description goes here.
Definition vanc-sdp.h:37
TODO - Brief description goes here.
Definition vanc-sdp.h:27
VANC Headers and packet structure.
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 succ...
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,...
int klvanc_create_SDP(struct klvanc_packet_sdp_s **pkt)
Allocate a new SDP packet.