codecparsers: jpeg: hide gst_jpeg_scan_for_marker_code()
authorTim-Philipp Müller <tim@centricular.com>
Sun, 14 Jun 2015 18:01:12 +0000 (19:01 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 21 Jun 2015 10:30:30 +0000 (11:30 +0100)
Make this function private for now, since it's unclear whether
it's actually needed seeing that gst_jpeg_parse() scans too.

https://bugzilla.gnome.org/show_bug.cgi?id=673925

gst-libs/gst/codecparsers/gstjpegparser.c
gst-libs/gst/codecparsers/gstjpegparser.h

index 30c67f3..ed63a5e 100644 (file)
@@ -211,6 +211,9 @@ static const GstJpegHuffmanTableEntry default_chrominance_ac_table[] = {
 };
 /* *INDENT-ON* */
 
+static gint gst_jpeg_scan_for_marker_code (const guint8 * data, gsize size,
+    guint offset);
+
 static inline gboolean
 jpeg_parse_to_next_marker (GstByteReader * br, guint8 * marker)
 {
@@ -226,7 +229,18 @@ jpeg_parse_to_next_marker (GstByteReader * br, guint8 * marker)
   return TRUE;
 }
 
-gint
+/* gst_jpeg_scan_for_marker_code:
+ * @data: The data to parse
+ * @size: The size of @data
+ * @offset: The offset from which to start parsing
+ *
+ * Scans the JPEG bitstream contained in @data for the next marker
+ * code. If found, the function returns an offset to the marker code,
+ * including the 0xff prefix code but excluding any extra fill bytes.
+ *
+ * Returns: offset to the marker code if found, or -1 if not found.
+ */
+static gint
 gst_jpeg_scan_for_marker_code (const guint8 * data, gsize size, guint offset)
 {
   guint i;
index 7237584..1ef57d3 100644 (file)
@@ -269,22 +269,6 @@ struct _GstJpegMarkerSegment
 };
 
 /**
- * gst_jpeg_scan_for_marker_code:
- * @data: The data to parse
- * @size: The size of @data
- * @offset: The offset from which to start parsing
- *
- * Scans the JPEG bitstream contained in @data for the next marker
- * code. If found, the function returns an offset to the marker code,
- * including the 0xff prefix code but excluding any extra fill bytes.
- *
- * Returns: offset to the marker code if found, or -1 if not found.
- */
-gint            gst_jpeg_scan_for_marker_code   (const guint8 * data,
-                                                 gsize size,
-                                                 guint offset);
-
-/**
  * gst_jpeg_parse:
  * @data: The data to parse
  * @size: The size of @data