GNU Radio 3.7.2 C++ API
reed_solomon_impl.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2002 Free Software Foundation, Inc.
4
*
5
* This file is part of GNU Radio
6
*
7
* GNU Radio is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 3, or (at your option)
10
* any later version.
11
*
12
* GNU Radio 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
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with GNU Radio; see the file COPYING. If not, write to
19
* the Free Software Foundation, Inc., 51 Franklin Street,
20
* Boston, MA 02110-1301, USA.
21
*/
22
23
#ifndef _ATSC_REED_SOLOMON_H_
24
#define _ATSC_REED_SOLOMON_H_
25
26
#include <
gnuradio/atsc/api.h
>
27
#include <
gnuradio/atsc/types.h
>
28
29
/*!
30
* \brief ATSC Reed-Solomon encoder / decoder
31
*
32
* The t=10 (207,187) code described in ATSC standard A/53B.
33
* See figure D5 on page 55.
34
*/
35
36
class
ATSC_API
atsci_reed_solomon
{
37
38
public
:
39
atsci_reed_solomon
();
40
~
atsci_reed_solomon
();
41
42
/*!
43
* \brief Add RS error correction encoding
44
*/
45
void
encode
(
atsc_mpeg_packet_rs_encoded
&out,
const
atsc_mpeg_packet_no_sync
&in);
46
47
/*!
48
* Decode RS encoded packet.
49
* \returns a count of corrected symbols, or -1 if the block was uncorrectible.
50
*/
51
int
decode (
atsc_mpeg_packet_no_sync
&out,
const
atsc_mpeg_packet_rs_encoded
&in);
52
53
private
:
54
void
*d_rs;
55
};
56
57
#endif
/* _ATSC_REED_SOLOMON_H_ */
ATSC_API
#define ATSC_API
Definition:
gr-atsc/include/gnuradio/atsc/api.h:30
atsci_reed_solomon
ATSC Reed-Solomon encoder / decoder.
Definition:
reed_solomon_impl.h:36
atsc_mpeg_packet_no_sync
Definition:
gr-atsc/include/gnuradio/atsc/types.h:160
atsc_mpeg_packet_rs_encoded
Definition:
gr-atsc/include/gnuradio/atsc/types.h:177
api.h
encode
FEC_API unsigned char encode(unsigned char *symbols, unsigned char *data, unsigned int nbytes, unsigned char encstate)
types.h
gnuradio
gr-atsc
include
gnuradio
atsc
reed_solomon_impl.h
Generated on Mon Sep 22 2014 16:08:59 for GNU Radio 3.7.2 C++ API by
1.8.6