From: Edward Hervey Date: Mon, 19 Mar 2018 09:53:52 +0000 (+0100) Subject: closedcaption: zvbi: Disable unused legacy bit slicer X-Git-Tag: 1.19.3~507^2~4156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af9e9d613ad8e9ac8c2218412cb5446af5da0de2;p=platform%2Fupstream%2Fgstreamer.git closedcaption: zvbi: Disable unused legacy bit slicer The code only uses the new 'optimized' bit slicer --- diff --git a/ext/closedcaption/decoder.c b/ext/closedcaption/decoder.c index 98933b1..083a885 100644 --- a/ext/closedcaption/decoder.c +++ b/ext/closedcaption/decoder.c @@ -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. diff --git a/ext/closedcaption/decoder.h b/ext/closedcaption/decoder.h index f12147d..04dfd20 100644 --- a/ext/closedcaption/decoder.h +++ b/ext/closedcaption/decoder.h @@ -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; /**