From: Tim-Philipp Müller Date: Sun, 14 Jun 2015 18:01:12 +0000 (+0100) Subject: codecparsers: jpeg: hide gst_jpeg_scan_for_marker_code() X-Git-Tag: 1.19.3~507^2~8457 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=441478d161f52ed1e20a197a37e96f97c1aa817d;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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