diff recpt1/decoder.h @ 2:8ac7c59fefc9

added b25 decode functionality
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 16 Feb 2009 21:40:16 +0900
parents
children 6801fe7e04ff
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/recpt1/decoder.h	Mon Feb 16 21:40:16 2009 +0900
@@ -0,0 +1,23 @@
+#ifndef _DECODER_H_
+#define _DECODER_H_
+
+#include "../arib25v021/arib25/src/arib_std_b25.h"
+#include "../arib25v021/arib25/src/b_cas_card.h"
+
+typedef struct decoder
+{
+  ARIB_STD_B25 *b25;
+  B_CAS_CARD *bcas;
+} decoder;
+
+/* prototypes */
+decoder *b25_startup(void);
+int b25_shutdown(decoder *dec);
+int b25_decode(decoder *dec,
+	       ARIB_STD_B25_BUFFER *sbuf,
+	       ARIB_STD_B25_BUFFER *dbuf);
+int b25_finish(decoder *dec,
+	       ARIB_STD_B25_BUFFER *sbuf,
+	       ARIB_STD_B25_BUFFER *dbuf);
+
+#endif