libklvanc
 All Classes Files Functions Variables Enumerations Macros
vanc-sdp.h
1 #ifndef _VANC_SDP_H
2 #define _VANC_SDP_H
3 
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 enum klvanc_sdp_format_code_e
11 {
12  SDP_WSS_TELETEXT = 0x02
13 };
14 
16 {
17  uint8_t line; // Line number, only 5 bits
18  uint8_t field; // Field number, only 1 bit, 0 = even field
19  uint8_t data[45]; // WSS Teletext data representing a subtitle line
20 };
21 
23 {
24  struct klvanc_packet_header_s hdr;
25  uint16_t identifier;
26  enum klvanc_sdp_format_code_e format_code;
27  struct klvanc_sdp_desc_s descriptors[5];
28  uint16_t sequence_counter;
29 };
30 
31 int klvanc_dump_SDP(struct klvanc_context_s *ctx, void *p);
32 
33 int klvanc_create_SDP(struct klvanc_packet_sdp_s **pkt);
34 
35 void klvanc_destroy_SDP(struct klvanc_packet_sdp_s *pkt);
36 
37 int klvanc_convert_SDP_to_words(struct klvanc_packet_sdp_s *pkt, uint16_t **words, uint16_t *wordCount);
38 
39 int klvanc_convert_SDP_to_packetBytes(struct klvanc_packet_sdp_s *pkt, uint8_t **bytes, uint16_t *byteCount);
40 
41 #ifdef __cplusplus
42 };
43 #endif
44 
45 #endif /* _VANC_SDP_H */
TODO - Brief description goes here.
Definition: vanc-packets.h:57
Application specific context, the library allocates and stores user specific instance information...
Definition: vanc.h:118
Definition: vanc-sdp.h:15
VANC Headers and packet structure.
Definition: vanc-sdp.h:22