summaryrefslogtreecommitdiff
path: root/gr-dtv/lib/dvbt/dvbt_reed_solomon_dec_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-dtv/lib/dvbt/dvbt_reed_solomon_dec_impl.h')
-rw-r--r--gr-dtv/lib/dvbt/dvbt_reed_solomon_dec_impl.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/gr-dtv/lib/dvbt/dvbt_reed_solomon_dec_impl.h b/gr-dtv/lib/dvbt/dvbt_reed_solomon_dec_impl.h
index 951aa4b2a1..2d9b24809d 100644
--- a/gr-dtv/lib/dvbt/dvbt_reed_solomon_dec_impl.h
+++ b/gr-dtv/lib/dvbt/dvbt_reed_solomon_dec_impl.h
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2015 Free Software Foundation, Inc.
+ * Copyright 2015,2016 Free Software Foundation, Inc.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,7 +22,10 @@
#define INCLUDED_DTV_DVBT_REED_SOLOMON_DEC_IMPL_H
#include <gnuradio/dtv/dvbt_reed_solomon_dec.h>
-#include "dvbt_reed_solomon.h"
+
+extern "C" {
+#include <gnuradio/fec/rs.h>
+}
namespace gr {
namespace dtv {
@@ -30,18 +33,18 @@ namespace gr {
class dvbt_reed_solomon_dec_impl : public dvbt_reed_solomon_dec
{
private:
- int d_p;
- int d_m;
- int d_gfpoly;
int d_n;
int d_k;
- int d_t;
int d_s;
int d_blocks;
- unsigned char * d_in;
+ int d_nerrors_corrected_count;
+ int d_bad_packet_count;
+ int d_total_packets;
+ int d_total_bits;
- dvbt_reed_solomon d_rs;
+ void *d_rs; /* Reed-Solomon characteristics structure */
+ int decode(unsigned char &out, const unsigned char &in);
public:
dvbt_reed_solomon_dec_impl(int p, int m, int gfpoly, int n, int k, int t, int s, int blocks);