libklvanc
Loading...
Searching...
No Matches
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
28
29#ifndef _VANC_EIA_608_H
30#define _VANC_EIA_608_H
31
33
34#ifdef __cplusplus
35extern "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
60int klvanc_dump_EIA_608(struct klvanc_context_s *ctx, void *p);
61
69
75
87int klvanc_convert_EIA_608_to_packetBytes(struct klvanc_packet_eia_608_s *pkt, uint8_t **bytes, uint16_t *byteCount);
88
100int 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 */
Application specific context, the library allocates and stores user specific instance information.
Definition vanc.h:125
TODO - Brief description goes here.
Definition vanc-eia_608.h:42
TODO - Brief description goes here.
Definition vanc-packets.h:59
int klvanc_create_EIA_608(struct klvanc_packet_eia_608_s **pkt)
Create an EIA-608 VANC packet.
void klvanc_destroy_EIA_608(struct klvanc_packet_eia_608_s *pkt)
Destroy an EIA-608 VANC packet.
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,...
int klvanc_dump_EIA_608(struct klvanc_context_s *ctx, void *p)
TODO - Brief description goes here.
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...
VANC Headers and packet structure.