Blame gst/rtsp/gstrtpdec.h

Packit 8ff292
/* GStreamer
Packit 8ff292
 * Copyright (C) <2005,2006> Wim Taymans <wim@fluendo.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
 * Unless otherwise indicated, Source Code is licensed under MIT license.
Packit 8ff292
 * See further explanation attached in License Statement (distributed in the file
Packit 8ff292
 * LICENSE).
Packit 8ff292
 *
Packit 8ff292
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
Packit 8ff292
 * this software and associated documentation files (the "Software"), to deal in
Packit 8ff292
 * the Software without restriction, including without limitation the rights to
Packit 8ff292
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
Packit 8ff292
 * of the Software, and to permit persons to whom the Software is furnished to do
Packit 8ff292
 * so, subject to the following conditions:
Packit 8ff292
 *
Packit 8ff292
 * The above copyright notice and this permission notice shall be included in all
Packit 8ff292
 * copies or substantial portions of the Software.
Packit 8ff292
 *
Packit 8ff292
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit 8ff292
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit 8ff292
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Packit 8ff292
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit 8ff292
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
Packit 8ff292
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Packit 8ff292
 * SOFTWARE.
Packit 8ff292
 */
Packit 8ff292
Packit 8ff292
#ifndef __GST_RTP_DEC_H__
Packit 8ff292
#define __GST_RTP_DEC_H__
Packit 8ff292
Packit 8ff292
#include <gst/gst.h>
Packit 8ff292
Packit 8ff292
G_BEGIN_DECLS
Packit 8ff292
Packit 8ff292
#define GST_TYPE_RTP_DEC  		(gst_rtp_dec_get_type())
Packit 8ff292
#define GST_IS_RTP_DEC(obj)  		(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_DEC))
Packit 8ff292
#define GST_IS_RTP_DEC_CLASS(klass) 	(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_DEC))
Packit 8ff292
#define GST_RTP_DEC(obj)  		(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_DEC, GstRTPDec))
Packit 8ff292
#define GST_RTP_DEC_CLASS(klass)  	(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_DEC, GstRTPDecClass))
Packit 8ff292
Packit 8ff292
typedef struct _GstRTPDec GstRTPDec;
Packit 8ff292
typedef struct _GstRTPDecClass GstRTPDecClass;
Packit 8ff292
typedef struct _GstRTPDecSession GstRTPDecSession;
Packit 8ff292
Packit 8ff292
struct _GstRTPDec {
Packit 8ff292
  GstElement  element;
Packit 8ff292
Packit 8ff292
  guint       latency;
Packit 8ff292
  GSList     *sessions;
Packit 8ff292
  GstClock   *provided_clock;
Packit 8ff292
};
Packit 8ff292
Packit 8ff292
struct _GstRTPDecClass {
Packit 8ff292
  GstElementClass parent_class;
Packit 8ff292
Packit 8ff292
  /* get the caps for pt */
Packit 8ff292
  GstCaps* (*request_pt_map)  (GstRTPDec *rtpdec, guint session, guint pt);
Packit 8ff292
Packit 8ff292
  void     (*clear_pt_map)    (GstRTPDec *rtpdec);
Packit 8ff292
Packit 8ff292
  void     (*on_new_ssrc)       (GstRTPDec *rtpdec, guint session, guint32 ssrc);
Packit 8ff292
  void     (*on_ssrc_collision) (GstRTPDec *rtpdec, guint session, guint32 ssrc);
Packit 8ff292
  void     (*on_ssrc_validated) (GstRTPDec *rtpdec, guint session, guint32 ssrc);
Packit 8ff292
  void     (*on_bye_ssrc)       (GstRTPDec *rtpdec, guint session, guint32 ssrc);
Packit 8ff292
  void     (*on_bye_timeout)    (GstRTPDec *rtpdec, guint session, guint32 ssrc);
Packit 8ff292
  void     (*on_timeout)        (GstRTPDec *rtpdec, guint session, guint32 ssrc);
Packit 8ff292
};
Packit 8ff292
Packit 8ff292
GType gst_rtp_dec_get_type(void);
Packit 8ff292
Packit 8ff292
G_END_DECLS
Packit 8ff292
Packit 8ff292
#endif /* __GST_RTP_DEC_H__ */