diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2015-06-14 19:01:12 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-06-21 11:30:30 +0100 |
commit | 441478d161f52ed1e20a197a37e96f97c1aa817d (patch) | |
tree | 17b5e38a491b9818c2d6670e7b8bb71692d18f07 | |
parent | d279e12c8f93cf88e397f40155079fa4439e3ccc (diff) |
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
-rw-r--r-- | gst-libs/gst/codecparsers/gstjpegparser.c | 16 | ||||
-rw-r--r-- | 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 30c67f3ec..ed63a5e7d 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 7237584e2..1ef57d3c1 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 |