From 441478d161f52ed1e20a197a37e96f97c1aa817d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 14 Jun 2015 19:01:12 +0100 Subject: [PATCH] codecparsers: jpeg: hide gst_jpeg_scan_for_marker_code() 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 | 16 +++++++++++++++- gst-libs/gst/codecparsers/gstjpegparser.h | 16 ---------------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/gst-libs/gst/codecparsers/gstjpegparser.c b/gst-libs/gst/codecparsers/gstjpegparser.c index 30c67f3..ed63a5e 100644 --- a/gst-libs/gst/codecparsers/gstjpegparser.c +++ b/gst-libs/gst/codecparsers/gstjpegparser.c @@ -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; diff --git a/gst-libs/gst/codecparsers/gstjpegparser.h b/gst-libs/gst/codecparsers/gstjpegparser.h index 7237584..1ef57d3 100644 --- a/gst-libs/gst/codecparsers/gstjpegparser.h +++ b/gst-libs/gst/codecparsers/gstjpegparser.h @@ -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 -- 2.7.4