diff src/decoder.h @ 124:9c7bc6c0327e

Add DLNA server function test. (from uShare project)
author naoyan@johnstown.minaminoshima.org
date Wed, 29 Sep 2010 23:18:55 +0900
parents recpt1/decoder.h@aeba1988234f
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/decoder.h	Wed Sep 29 23:18:55 2010 +0900
@@ -0,0 +1,53 @@
+/* -*- tab-width: 4; indent-tabs-mode: nil -*- */
+#ifndef _DECODER_H_
+#define _DECODER_H_
+
+#include "config.h"
+
+#ifdef HAVE_LIBARIB25
+
+#include <arib25/arib_std_b25.h>
+#include <arib25/b_cas_card.h>
+
+typedef struct decoder {
+    ARIB_STD_B25 *b25;
+    B_CAS_CARD *bcas;
+} decoder;
+
+typedef struct decoder_options {
+    int round;
+    int strip;
+    int emm;
+} decoder_options;
+
+#else
+
+typedef struct {
+    int size;
+    void *data;
+} ARIB_STD_B25_BUFFER;
+
+typedef struct decoder {
+    void *dummy;
+} decoder;
+
+typedef struct decoder_options {
+    int round;
+    int strip;
+    int emm;
+} decoder_options;
+
+#endif
+
+/* prototypes */
+decoder *b25_startup(decoder_options *opt);
+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