Commit 2b348161 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

codecparsers: Remove some unused functions

parent e7e74175
......@@ -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)
{
......
......@@ -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)
{
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment