Blame gst/rtp/gstrtpvorbispay.h

Packit 8ff292
/* GStreamer
Packit 8ff292
 * Copyright (C) <2005> Wim Taymans <wim.taymans@gmail.com>
Packit 8ff292
 *
Packit 8ff292
 * This library is free software; you can redistribute it and/or
Packit 8ff292
 * modify it under the terms of the GNU Library General Public
Packit 8ff292
 * License as published by the Free Software Foundation; either
Packit 8ff292
 * version 2 of the License, or (at your option) any later version.
Packit 8ff292
 *
Packit 8ff292
 * This library is distributed in the hope that it will be useful,
Packit 8ff292
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 8ff292
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 8ff292
 * Library General Public License for more details.
Packit 8ff292
 *
Packit 8ff292
 * You should have received a copy of the GNU Library General Public
Packit 8ff292
 * License along with this library; if not, write to the
Packit 8ff292
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 8ff292
 * Boston, MA 02110-1301, USA.
Packit 8ff292
 */
Packit 8ff292
Packit 8ff292
#ifndef __GST_RTP_VORBIS_PAY_H__
Packit 8ff292
#define __GST_RTP_VORBIS_PAY_H__
Packit 8ff292
Packit 8ff292
#include <gst/gst.h>
Packit 8ff292
#include <gst/rtp/gstrtpbasepayload.h>
Packit 8ff292
#include <gst/base/gstadapter.h>
Packit 8ff292
Packit 8ff292
G_BEGIN_DECLS
Packit 8ff292
Packit 8ff292
#define GST_TYPE_RTP_VORBIS_PAY \
Packit 8ff292
  (gst_rtp_vorbis_pay_get_type())
Packit 8ff292
#define GST_RTP_VORBIS_PAY(obj) \
Packit 8ff292
  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_VORBIS_PAY,GstRtpVorbisPay))
Packit 8ff292
#define GST_RTP_VORBIS_PAY_CLASS(klass) \
Packit 8ff292
  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_VORBIS_PAY,GstRtpVorbisPayClass))
Packit 8ff292
#define GST_IS_RTP_VORBIS_PAY(obj) \
Packit 8ff292
  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_VORBIS_PAY))
Packit 8ff292
#define GST_IS_RTP_VORBIS_PAY_CLASS(klass) \
Packit 8ff292
  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_VORBIS_PAY))
Packit 8ff292
Packit 8ff292
typedef struct _GstRtpVorbisPay GstRtpVorbisPay;
Packit 8ff292
typedef struct _GstRtpVorbisPayClass GstRtpVorbisPayClass;
Packit 8ff292
Packit 8ff292
struct _GstRtpVorbisPay
Packit 8ff292
{
Packit 8ff292
  GstRTPBasePayload payload;
Packit 8ff292
Packit 8ff292
  /* the headers */
Packit 8ff292
  gboolean      need_headers;
Packit 8ff292
  GList        *headers;
Packit 8ff292
Packit 8ff292
  /* queues of buffers along with some stats. */
Packit 8ff292
  GstBuffer    *packet;
Packit 8ff292
  GList        *packet_buffers;
Packit 8ff292
  guint         payload_pos;
Packit 8ff292
  guint         payload_left;
Packit 8ff292
  guint32       payload_ident;
Packit 8ff292
  guint8        payload_F;
Packit 8ff292
  guint8        payload_VDT;
Packit 8ff292
  guint         payload_pkts;
Packit 8ff292
  GstClockTime  payload_timestamp;
Packit 8ff292
  GstClockTime  payload_duration;
Packit 8ff292
Packit 8ff292
  /* config (re-sending) */
Packit 8ff292
  guint8       *config_data;
Packit 8ff292
  guint         config_size;
Packit 8ff292
  guint         config_extra_len;
Packit 8ff292
  guint         config_interval;
Packit 8ff292
  GstClockTime  last_config;
Packit 8ff292
Packit 8ff292
  gint          rate;
Packit 8ff292
  gint          channels;
Packit 8ff292
};
Packit 8ff292
Packit 8ff292
struct _GstRtpVorbisPayClass
Packit 8ff292
{
Packit 8ff292
  GstRTPBasePayloadClass parent_class;
Packit 8ff292
};
Packit 8ff292
Packit 8ff292
GType gst_rtp_vorbis_pay_get_type (void);
Packit 8ff292
Packit 8ff292
gboolean gst_rtp_vorbis_pay_plugin_init (GstPlugin * plugin);
Packit 8ff292
Packit 8ff292
G_END_DECLS
Packit 8ff292
Packit 8ff292
#endif /* __GST_RTP_VORBIS_PAY_H__ */