mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
codecparsers: Remove some unused functions
This commit is contained in:
parent
e7e7417523
commit
2b348161ed
3 changed files with 0 additions and 54 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue