From 2b348161edb79c71f09b50373295175fc980a1dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 7 Nov 2013 09:54:40 +0100 Subject: [PATCH] codecparsers: Remove some unused functions --- gst-libs/gst/codecparsers/gsth264parser.c | 15 ------------ gst-libs/gst/codecparsers/gsth265parser.c | 15 ------------ .../gst/codecparsers/gstmpegvideoparser.c | 24 ------------------- 3 files changed, 54 deletions(-) diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index efbdf30027..d71b6950ad 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -269,21 +269,6 @@ nal_reader_skip (NalReader * nr, guint nbits) return TRUE; } -static inline gboolean -nal_reader_skip_to_byte (NalReader * nr) -{ - if (nr->bits_in_cache == 0) { - if (G_LIKELY ((nr->size - nr->byte) > 0)) - nr->byte++; - else - return FALSE; - } - - nr->bits_in_cache = 0; - - return TRUE; -} - static inline guint nal_reader_get_pos (const NalReader * nr) { diff --git a/gst-libs/gst/codecparsers/gsth265parser.c b/gst-libs/gst/codecparsers/gsth265parser.c index 10c591bbcb..b4021321d2 100644 --- a/gst-libs/gst/codecparsers/gsth265parser.c +++ b/gst-libs/gst/codecparsers/gsth265parser.c @@ -255,21 +255,6 @@ nal_reader_skip (NalReader * nr, guint nbits) return TRUE; } -static inline gboolean -nal_reader_skip_to_byte (NalReader * nr) -{ - if (nr->bits_in_cache == 0) { - if (G_LIKELY ((nr->size - nr->byte) > 0)) - nr->byte++; - else - return FALSE; - } - - nr->bits_in_cache = 0; - - return TRUE; -} - static inline guint nal_reader_get_pos (const NalReader * nr) { diff --git a/gst-libs/gst/codecparsers/gstmpegvideoparser.c b/gst-libs/gst/codecparsers/gstmpegvideoparser.c index 2fd992f24d..51a97987fa 100644 --- a/gst-libs/gst/codecparsers/gstmpegvideoparser.c +++ b/gst-libs/gst/codecparsers/gstmpegvideoparser.c @@ -126,30 +126,6 @@ GST_DEBUG_CATEGORY (mpegvideo_parser_debug); static gboolean initialized = FALSE; -static inline gboolean -find_start_code (GstBitReader * b) -{ - guint32 bits; - - /* 0 bits until byte aligned */ - while (b->bit != 0) { - GET_BITS (b, 1, &bits); - } - - /* 0 bytes until startcode */ - while (gst_bit_reader_peek_bits_uint32 (b, &bits, 32)) { - if (bits >> 8 == 0x1) { - return TRUE; - } else if (gst_bit_reader_skip (b, 8) == FALSE) - break; - } - - return FALSE; - -failed: - return FALSE; -} - /* Set the Pixel Aspect Ratio in our hdr from a ASR code in the data */ static void set_par_from_asr_mpeg1 (GstMpegVideoSequenceHdr * seqhdr, guint8 asr_code)