rtpopusdepay

rtpopusdepay

Synopsis

struct              GstOpenalSrc;
struct              GstOpencvTextOverlay;
struct              GstOpusDec;
struct              GstOpusEnc;
struct              GstOpusParse;
struct              GstRTPOpusDepay;

Description

Synopsis

Element Information

plugin

opus

author

Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>

class

Codec/Depayloader/Network/RTP

Element Pads

name

sink

direction

sink

presence

always

details

application/x-rtp, media=(string)audio, payload=(int)[ 96, 127 ], clock-rate=(int)48000, encoding-name=(string){ OPUS, X-GST-OPUS-DRAFT-SPITTKA-00 }

name

src

direction

source

presence

always

details

audio/x-opus, multistream=(boolean)false

Details

struct GstOpenalSrc

struct GstOpenalSrc;

struct GstOpencvTextOverlay

struct GstOpencvTextOverlay {
  GstElement element;

  GstPad *sinkpad, *srcpad;

  IplImage *cvImage;
  CvFont font;  

  gint xpos;
  gint ypos;
  gint thickness;
  gint colorR,colorG,colorB;
  gdouble height;
  gdouble width;
  gchar *textbuf;
};

struct GstOpusDec

struct GstOpusDec {
  GstAudioDecoder       element;

  OpusMSDecoder        *state;

  guint64               packetno;

  GstBuffer            *streamheader;
  GstBuffer            *vorbiscomment;

  int sample_rate;
  int n_channels;
  guint32 pre_skip;
  gint16 r128_gain;

  GstAudioChannelPosition opus_pos[64];
  GstAudioInfo info;

  guint8 n_streams;
  guint8 n_stereo_streams;
  guint8 channel_mapping_family;
  guint8 channel_mapping[256];

  gboolean apply_gain;
  double r128_gain_volume;

  gboolean use_inband_fec;
  GstBuffer *last_buffer;
  gboolean primed;

  guint64 leftover_plc_duration;
};

struct GstOpusEnc

struct GstOpusEnc {
  GstAudioEncoder       element;

  OpusMSEncoder        *state;

  /* Locks those properties which may be changed at play time */
  GMutex                property_lock;

  /* properties */
  gint                  audio_type;
  gint                  bitrate;
  gint                  bandwidth;
  gint                  frame_size;
  GstOpusEncBitrateType bitrate_type;
  gint                  complexity;
  gboolean              inband_fec;
  gboolean              dtx;
  gint                  packet_loss_percentage;
  guint                 max_payload_size;

  gint                  frame_samples;
  gint                  n_channels;
  gint                  sample_rate;

  guint64               encoded_samples;

  guint8                channel_mapping_family;
  guint8                encoding_channel_mapping[256];
  guint8                decoding_channel_mapping[256];
  guint8                n_stereo_streams;
};

struct GstOpusParse

struct GstOpusParse {
  GstBaseParse       element;

  gboolean header_sent;
  GSList *headers;
  GstClockTime next_ts;
  GstBuffer *id_header;
  GstBuffer *comment_header;
};

struct GstRTPOpusDepay

struct GstRTPOpusDepay {
  GstRTPBaseDepayload depayload;
};