libklvanc
vanc-eia_608.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Kernel Labs Inc. All Rights Reserved
3  *
4  * Address: Kernel Labs Inc., PO Box 745, St James, NY. 11780
5  * Contact: sales@kernellabs.com
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
29 #ifndef _VANC_EIA_608_H
30 #define _VANC_EIA_608_H
31 
32 #include <libklvanc/vanc-packets.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
42 {
43  struct klvanc_packet_header_s hdr;
44  int nr;
45  unsigned char payload[3];
46 
47  /* Parsed */
48  int field;
49  int line_offset;
50  unsigned char cc_data_1;
51  unsigned char cc_data_2;
52 };
53 
60 int klvanc_dump_EIA_608(struct klvanc_context_s *ctx, void *p);
61 
69 
75 
87 int klvanc_convert_EIA_608_to_packetBytes(struct klvanc_packet_eia_608_s *pkt, uint8_t **bytes, uint16_t *byteCount);
88 
100 int klvanc_convert_EIA_608_to_words(struct klvanc_packet_eia_608_s *pkt, uint16_t **words, uint16_t *wordCount);
101 
102 #ifdef __cplusplus
103 };
104 #endif
105 
106 #endif /* _VANC_EIA_608_H */
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...
TODO - Brief description goes here.
Definition: vanc-packets.h:57
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...
TODO - Brief description goes here.
Definition: vanc-eia_608.h:41
Application specific context, the library allocates and stores user specific instance information...
Definition: vanc.h:118
int klvanc_dump_EIA_608(struct klvanc_context_s *ctx, void *p)
TODO - Brief description goes here.
void klvanc_destroy_EIA_608(struct klvanc_packet_eia_608_s *pkt)
Destroy an EIA-608 VANC packet.
int klvanc_create_EIA_608(struct klvanc_packet_eia_608_s **pkt)
Create an EIA-608 VANC packet.
VANC Headers and packet structure.