closedcaption: zvbi: Disable unused legacy bit slicer
authorEdward Hervey <edward@centricular.com>
Mon, 19 Mar 2018 09:53:52 +0000 (10:53 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 28 May 2018 13:04:19 +0000 (15:04 +0200)
The code only uses the new 'optimized' bit slicer

ext/closedcaption/decoder.c
ext/closedcaption/decoder.h

index 98933b1..083a885 100644 (file)
@@ -48,6 +48,7 @@
  * these lower level functions.
  */
 
+#if 0                           /* LEGACY BIT SLICER */
 /*
  *  Bit Slicer
  */
@@ -475,6 +476,8 @@ vbi_bit_slicer_init (vbi_bit_slicer * slicer,
   }
 }
 
+#endif
+
 /**
  * @example examples/wss.c
  * WSS capture example.
index f12147d..04dfd20 100644 (file)
@@ -233,6 +233,7 @@ typedef enum {
        VBI_MODULATION_BIPHASE_MSB
 } vbi_modulation;
 
+#if 0
 /**
  * @ingroup Rawdec
  * @brief Bit slicer context.
@@ -296,7 +297,7 @@ vbi_bit_slice(vbi_bit_slicer *slicer, uint8_t *raw, uint8_t *buf)
        return slicer->func(slicer, raw, buf);
 }
 /** @} */
-
+#endif
 /**
  * @ingroup Rawdec
  * @brief Raw vbi decoder context.
@@ -372,14 +373,18 @@ typedef struct vbi_raw_decoder {
        pthread_mutex_t         mutex;
 
        unsigned int            services;
+#if 0                          /* DISABLED LEGACY DECODER */
        int                     num_jobs;
+#endif
 
-       int8_t *                pattern;
+       int8_t *                pattern; /* The real vbi3_raw_decoder */
+#if 0          /* DISABLED LEGACY DECODER */
        struct _vbi_raw_decoder_job {
                unsigned int            id;
                int                     offset;
                vbi_bit_slicer          slicer;
        }                       jobs[8];
+#endif
 } vbi_raw_decoder;
 
 /**