for (i = 0; i < 64; i++)
out_quant[i] = quant[mpeg_zigzag_8x8[i]];
}
-
-/****** Deprecated API *******/
-
-/**
- * gst_mpeg_video_parse_sequence_header:
- * @seqhdr: (out): The #GstMpegVideoSequenceHdr structure to fill
- * @data: The data from which to parse the sequence header
- * @size: The size of @data
- * @offset: The offset in byte from which to start parsing @data
- *
- * Parses the @seqhdr Mpeg Video Sequence Header structure members from @data
- *
- * Returns: %TRUE if the seqhdr could be parsed correctly, %FALSE otherwise.
- *
- * Deprecated: Use gst_mpeg_video_packet_parse_sequence_header() instead.
- */
-#ifndef GST_REMOVE_DEPRECATED
-#ifdef GST_DISABLE_DEPRECATED
-gboolean
-gst_mpeg_video_parse_sequence_header (GstMpegVideoSequenceHdr * seqhdr,
- const guint8 * data, gsize size, guint offset);
-#endif
-gboolean
-gst_mpeg_video_parse_sequence_header (GstMpegVideoSequenceHdr * seqhdr,
- const guint8 * data, gsize size, guint offset)
-{
- GstMpegVideoPacket packet;
-
- packet.data = data;
- packet.type = GST_MPEG_VIDEO_PACKET_SEQUENCE;
- packet.offset = offset;
- packet.size = size - offset;
- return gst_mpeg_video_packet_parse_sequence_header (&packet, seqhdr);
-}
-#endif
-
-/**
- * gst_mpeg_video_parse_sequence_extension:
- * @seqext: (out): The #GstMpegVideoSequenceExt structure to fill
- * @data: The data from which to parse the sequence extension
- * @size: The size of @data
- * @offset: The offset in byte from which to start parsing @data
- *
- * Parses the @seqext Mpeg Video Sequence Extension structure members from @data
- *
- * Returns: %TRUE if the seqext could be parsed correctly, %FALSE otherwise.
- *
- * Deprecated: Use gst_mpeg_video_packet_parse_sequence_extension() instead.
- */
-#ifndef GST_REMOVE_DEPRECATED
-#ifdef GST_DISABLE_DEPRECATED
-gboolean
-gst_mpeg_video_parse_sequence_extension (GstMpegVideoSequenceExt * seqext,
- const guint8 * data, gsize size, guint offset);
-#endif
-gboolean
-gst_mpeg_video_parse_sequence_extension (GstMpegVideoSequenceExt * seqext,
- const guint8 * data, gsize size, guint offset)
-{
- GstMpegVideoPacket packet;
-
- packet.data = data;
- packet.type = GST_MPEG_VIDEO_PACKET_EXTENSION;
- packet.offset = offset;
- packet.size = size - offset;
- return gst_mpeg_video_packet_parse_sequence_extension (&packet, seqext);
-}
-#endif
-
-#ifndef GST_REMOVE_DEPRECATED
-#ifdef GST_DISABLE_DEPRECATED
-gboolean
-gst_mpeg_video_parse_sequence_display_extension (GstMpegVideoSequenceDisplayExt
- * seqdisplayext, const guint8 * data, gsize size, guint offset);
-#endif
-gboolean
-gst_mpeg_video_parse_sequence_display_extension (GstMpegVideoSequenceDisplayExt
- * seqdisplayext, const guint8 * data, gsize size, guint offset)
-{
- GstMpegVideoPacket packet;
-
- packet.data = data;
- packet.type = GST_MPEG_VIDEO_PACKET_EXTENSION;
- packet.offset = offset;
- packet.size = size - offset;
- return gst_mpeg_video_packet_parse_sequence_display_extension (&packet,
- seqdisplayext);
-}
-#endif
-
-/**
- * gst_mpeg_video_parse_quant_matrix_extension:
- * @quant: (out): The #GstMpegVideoQuantMatrixExt structure to fill
- * @data: The data from which to parse the Quantization Matrix extension
- * @size: The size of @data
- * @offset: The offset in byte from which to start the parsing
- *
- * Parses the @quant Mpeg Video Quant Matrix Extension structure members from
- * @data
- *
- * Returns: %TRUE if the quant matrix extension could be parsed correctly,
- * %FALSE otherwise.
- *
- * Deprecated: Use gst_mpeg_video_packet_parse_quant_matrix_extension() instead.
- */
-#ifndef GST_REMOVE_DEPRECATED
-#ifdef GST_DISABLE_DEPRECATED
-gboolean
-gst_mpeg_video_parse_quant_matrix_extension (GstMpegVideoQuantMatrixExt * quant,
- const guint8 * data, gsize size, guint offset);
-#endif
-gboolean
-gst_mpeg_video_parse_quant_matrix_extension (GstMpegVideoQuantMatrixExt * quant,
- const guint8 * data, gsize size, guint offset)
-{
- GstMpegVideoPacket packet;
-
- packet.data = data;
- packet.type = GST_MPEG_VIDEO_PACKET_EXTENSION;
- packet.offset = offset;
- packet.size = size - offset;
- return gst_mpeg_video_packet_parse_quant_matrix_extension (&packet, quant);
-}
-#endif
-
-/**
- * gst_mpeg_video_parse_picture_header:
- * @hdr: (out): The #GstMpegVideoPictureHdr structure to fill
- * @data: The data from which to parse the picture header
- * @size: The size of @data
- * @offset: The offset in byte from which to start the parsing
- *
- * Parsers the @hdr Mpeg Video Picture Header structure members from @data
- *
- * Returns: %TRUE if the picture sequence could be parsed correctly, %FALSE
- * otherwise.
- *
- * Deprecated: Use gst_mpeg_video_packet_parse_picture_header() instead.
- */
-#ifndef GST_REMOVE_DEPRECATED
-#ifdef GST_DISABLE_DEPRECATED
-gboolean
-gst_mpeg_video_parse_picture_header (GstMpegVideoPictureHdr * hdr,
- const guint8 * data, gsize size, guint offset);
-#endif
-gboolean
-gst_mpeg_video_parse_picture_header (GstMpegVideoPictureHdr * hdr,
- const guint8 * data, gsize size, guint offset)
-{
- GstMpegVideoPacket packet;
-
- packet.data = data;
- packet.type = GST_MPEG_VIDEO_PACKET_PICTURE;
- packet.offset = offset;
- packet.size = size - offset;
- return gst_mpeg_video_packet_parse_picture_header (&packet, hdr);
-}
-#endif
-
-/**
- * gst_mpeg_video_parse_picture_extension:
- * @ext: (out): The #GstMpegVideoPictureExt structure to fill
- * @data: The data from which to parse the picture extension
- * @size: The size of @data
- * @offset: The offset in byte from which to start the parsing
- *
- * Parse the @ext Mpeg Video Picture Extension structure members from @data
- *
- * Returns: %TRUE if the picture extension could be parsed correctly,
- * %FALSE otherwise.
- *
- * Deprecated: Use gst_mpeg_video_packet_parse_picture_extension() instead.
- */
-#ifndef GST_REMOVE_DEPRECATED
-#ifdef GST_DISABLE_DEPRECATED
-gboolean
-gst_mpeg_video_parse_picture_extension (GstMpegVideoPictureExt * ext,
- const guint8 * data, gsize size, guint offset);
-#endif
-gboolean
-gst_mpeg_video_parse_picture_extension (GstMpegVideoPictureExt * ext,
- const guint8 * data, gsize size, guint offset)
-{
- GstMpegVideoPacket packet;
-
- packet.data = data;
- packet.type = GST_MPEG_VIDEO_PACKET_EXTENSION;
- packet.offset = offset;
- packet.size = size - offset;
- return gst_mpeg_video_packet_parse_picture_extension (&packet, ext);
-}
-#endif
-
-/**
- * gst_mpeg_video_parse_gop:
- * @gop: (out): The #GstMpegVideoGop structure to fill
- * @data: The data from which to parse the gop
- * @size: The size of @data
- * @offset: The offset in byte from which to start the parsing
- *
- * Parses the @gop Mpeg Video Group of Picture structure members from @data
- *
- * Returns: %TRUE if the gop could be parsed correctly, %FALSE otherwise.
- *
- * Deprecated: Use gst_mpeg_video_packet_parse_gop() instead.
- */
-#ifndef GST_REMOVE_DEPRECATED
-#ifdef GST_DISABLE_DEPRECATED
-gboolean
-gst_mpeg_video_parse_gop (GstMpegVideoGop * gop, const guint8 * data,
- gsize size, guint offset);
-#endif
-gboolean
-gst_mpeg_video_parse_gop (GstMpegVideoGop * gop, const guint8 * data,
- gsize size, guint offset)
-{
- GstMpegVideoPacket packet;
-
- packet.data = data;
- packet.type = GST_MPEG_VIDEO_PACKET_GOP;
- packet.offset = offset;
- packet.size = size - offset;
- return gst_mpeg_video_packet_parse_gop (&packet, gop);
-}
-#endif