mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
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
This commit is contained in:
parent
d279e12c8f
commit
441478d161
2 changed files with 15 additions and 17 deletions
|
@ -211,6 +211,9 @@ static const GstJpegHuffmanTableEntry default_chrominance_ac_table[] = {
|
||||||
};
|
};
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
|
|
||||||
|
static gint gst_jpeg_scan_for_marker_code (const guint8 * data, gsize size,
|
||||||
|
guint offset);
|
||||||
|
|
||||||
static inline gboolean
|
static inline gboolean
|
||||||
jpeg_parse_to_next_marker (GstByteReader * br, guint8 * marker)
|
jpeg_parse_to_next_marker (GstByteReader * br, guint8 * marker)
|
||||||
{
|
{
|
||||||
|
@ -226,7 +229,18 @@ jpeg_parse_to_next_marker (GstByteReader * br, guint8 * marker)
|
||||||
return TRUE;
|
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)
|
gst_jpeg_scan_for_marker_code (const guint8 * data, gsize size, guint offset)
|
||||||
{
|
{
|
||||||
guint i;
|
guint i;
|
||||||
|
|
|
@ -268,22 +268,6 @@ struct _GstJpegMarkerSegment
|
||||||
gint size;
|
gint size;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* 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:
|
* gst_jpeg_parse:
|
||||||
* @data: The data to parse
|
* @data: The data to parse
|
||||||
|
|
Loading…
Reference in a new issue