theoradec

theoradec — decode raw theora streams to raw YUV video

Synopsis

                    GstTheoraDec;

Properties

  "crop"                     gboolean              : Read / Write

Description

This element decodes theora streams into raw video Theora is a royalty-free video codec maintained by the Xiph.org Foundation, based on the VP3 codec.

Example pipeline

1
gst-launch -v filesrc location=videotestsrc.ogg ! oggdemux ! theoradec ! xvimagesink
This example pipeline will decode an ogg stream and decodes the theora video. Refer to the theoraenc example to create the ogg file.

Last reviewed on 2006-03-01 (0.10.4)

Details

GstTheoraDec

typedef struct {
  GstElement element;

  /* Pads */
  GstPad *sinkpad;
  GstPad *srcpad;

  /* theora decoder state */
  th_dec_ctx *decoder;
  //theora_state state;
  th_setup_info *setup;
  th_info info;
  th_comment comment;

  gboolean have_header;

  GstClockTime last_timestamp;
  guint64 frame_nr;
  gboolean need_keyframe;
  gint width, height;
  gint offset_x, offset_y;
  gint output_bpp;

  /* telemetry debuging options */
  gint telemetry_mv;
  gint telemetry_mbmode;
  gint telemetry_qi;
  gint telemetry_bits;

  gboolean crop;

  /* list of buffers that need timestamps */
  GList *queued;
  /* list of raw output buffers */
  GList *output;
  /* gather/decode queues for reverse playback */
  GList *gather;
  GList *decode;
  GList *pendingevents;

  GstTagList *tags;

  /* segment info */ /* with STREAM_LOCK */
  GstSegment segment;
  gboolean discont;
  guint32 seqnum;

  /* QoS stuff */ /* with LOCK*/
  gdouble proportion;
  GstClockTime earliest_time;
  guint64 processed;
  guint64 dropped;

  gboolean have_par;
  gint par_num;
  gint par_den;
} GstTheoraDec;

Opaque object data structure.

Property Details

The "crop" property

  "crop"                     gboolean              : Read / Write

Crop the image to the visible region.

Default value: TRUE

See Also

theoraenc, oggdemux