Blame gst/fsrtpconference/fs-rtp-codec-specific.h

Packit 133782
/*
Packit 133782
 * fs-rtp-codec-specific.h - Per-codec SDP negotiation
Packit 133782
 *
Packit 133782
 * Farstream RTP/AVP/SAVP/AVPF Module
Packit 133782
 * Copyright (C) 2007-2010 Collabora Ltd.
Packit 133782
 * Copyright (C) 2007-2010 Nokia Corporation
Packit 133782
 *   @author Olivier Crete <olivier.crete@collabora.co.uk>
Packit 133782
 *
Packit 133782
 * This library is free software; you can redistribute it and/or
Packit 133782
 * modify it under the terms of the GNU Lesser General Public
Packit 133782
 * License as published by the Free Software Foundation; either
Packit 133782
 * version 2.1 of the License, or (at your option) any later version.
Packit 133782
 *
Packit 133782
 * This library is distributed in the hope that it will be useful,
Packit 133782
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 133782
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 133782
 * Lesser General Public License for more details.
Packit 133782
 *
Packit 133782
 * You should have received a copy of the GNU Lesser General Public
Packit 133782
 * License along with this library; if not, write to the Free Software
Packit 133782
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
Packit 133782
 */
Packit 133782
Packit 133782
#ifndef __FS_RTP_SPECIFIC_NEGO_H__
Packit 133782
#define __FS_RTP_SPECIFIC_NEGO_H__
Packit 133782
Packit 133782
#include <glib.h>
Packit 133782
#include <gst/gst.h>
Packit 133782
Packit 133782
#include <farstream/fs-codec.h>
Packit 133782
Packit 133782
G_BEGIN_DECLS
Packit 133782
Packit 133782
/*
Packit 133782
 * These are the basic types:
Packit 133782
 *
Packit 133782
 * @FS_PARAM_TYPE_SEND: The parameter define what we are allowed to send
Packit 133782
 * @FS_PARAM_TYPE_RECV: The parameter defines what will be received,
Packit 133782
 * @FS_PARAM_TYPE_CONFIG: The parameter is some configuration that must be
Packit 133782
 *  fed to the decoder to be able to decode the stream
Packit 133782
 * @FS_PARAM_TYPE_SEND_AVOID_NEGO: The parameter is not negotiated and can
Packit 133782
 *  be different on both sides
Packit 133782
 * @FS_PARAM_TYPE_MANDATORY: This parameter is mandatory and the codec's
Packit 133782
 *  definition is not useful without it.
Packit 133782
 */
Packit 133782
Packit 133782
typedef enum {
Packit 133782
  FS_PARAM_TYPE_SEND = 1 << 0,
Packit 133782
  FS_PARAM_TYPE_RECV = 1 << 1,
Packit 133782
  FS_PARAM_TYPE_BOTH = FS_PARAM_TYPE_SEND | FS_PARAM_TYPE_RECV,
Packit 133782
  FS_PARAM_TYPE_CONFIG = 1 << 2,
Packit 133782
  FS_PARAM_TYPE_SEND_AVOID_NEGO = 1 << 3,
Packit 133782
  FS_PARAM_TYPE_MANDATORY = 1 << 4,
Packit 133782
  FS_PARAM_TYPE_ALL = FS_PARAM_TYPE_BOTH | FS_PARAM_TYPE_CONFIG
Packit 133782
  | FS_PARAM_TYPE_SEND_AVOID_NEGO
Packit 133782
} FsParamType;
Packit 133782
Packit 133782
FsCodec *
Packit 133782
sdp_negotiate_codec (FsCodec *local_recv_codec, FsParamType local_paramtypes,
Packit 133782
    FsCodec *remote_codec, FsParamType remote_paramtypes);
Packit 133782
Packit 133782
gboolean
Packit 133782
codec_needs_config (FsCodec *codec);
Packit 133782
Packit 133782
gboolean
Packit 133782
codec_has_config_data_named (FsCodec *codec, const gchar *name);
Packit 133782
Packit 133782
FsCodec *
Packit 133782
codec_copy_filtered (FsCodec *codec, FsParamType types);
Packit 133782
Packit 133782
GList *
Packit 133782
codecs_list_has_codec_config_changed (GList *old, GList *new);
Packit 133782
Packit 133782
G_END_DECLS
Packit 133782
Packit 133782
#endif