<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>dvdec</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="GStreamer Good Plugins 0.10 Plugins Reference Manual">
<link rel="up" href="ch01.html" title="gst-plugins-good Elements">
<link rel="prev" href="gst-plugins-good-plugins-dv1394src.html" title="dv1394src">
<link rel="next" href="gst-plugins-good-plugins-dvdemux.html" title="dvdemux">
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gst-plugins-good-plugins-dv1394src.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GStreamer Good Plugins 0.10 Plugins Reference Manual</th>
<td><a accesskey="n" href="gst-plugins-good-plugins-dvdemux.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gst-plugins-good-plugins-dvdec.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gst-plugins-good-plugins-dvdec.description" class="shortcut">Description</a>
                   | 
                  <a href="#gst-plugins-good-plugins-dvdec.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry" title="dvdec">
<a name="gst-plugins-good-plugins-dvdec"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gst-plugins-good-plugins-dvdec.top_of_page"></a>dvdec</span></h2>
<p>dvdec — Uses libdv to decode DV video (smpte314) (libdv.sourceforge.net)</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="gst-plugins-good-plugins-dvdec.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="gst-plugins-good-plugins-dvdec.html#GstDVDec" title="GstDVDec">GstDVDec</a>;
</pre>
</div>
<div class="refsect1" title="Properties">
<a name="gst-plugins-good-plugins-dvdec.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="gst-plugins-good-plugins-dvdec.html#GstDVDec--clamp-chroma" title='The "clamp-chroma" property'>clamp-chroma</a>"             <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
  "<a class="link" href="gst-plugins-good-plugins-dvdec.html#GstDVDec--clamp-luma" title='The "clamp-luma" property'>clamp-luma</a>"               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
  "<a class="link" href="gst-plugins-good-plugins-dvdec.html#GstDVDec--drop-factor" title='The "drop-factor" property'>drop-factor</a>"              <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
  "<a class="link" href="gst-plugins-good-plugins-dvdec.html#GstDVDec--quality" title='The "quality" property'>quality</a>"                  <span class="type">GstDVDecQualityEnum</span>   : Read / Write
</pre>
</div>
<div class="refsect1" title="Description">
<a name="gst-plugins-good-plugins-dvdec.description"></a><h2>Description</h2>
<p>
dvdec decodes DV video into raw video. The element expects a full DV frame
as input, which is 120000 bytes for NTSC and 144000 for PAL video.
</p>
<p>
This element can perform simple frame dropping with the <a class="link" href="gst-plugins-good-plugins-dvdec.html#GstDVDec--drop-factor" title='The "drop-factor" property'><span class="type">"drop-factor"</span></a>
property. Setting this property to a value N &gt; 1 will only decode every 
Nth frame.
</p>
<div class="refsect2" title="Example launch line">
<a name="id405004"></a><h3>Example launch line</h3>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1</pre></td>
        <td class="listing_code"><pre class="programlisting">gst-launch filesrc location=test.dv ! dvdemux name=demux ! dvdec ! xvimagesink</pre></td>
      </tr>
    </tbody>
  </table>
</div>
 This pipeline decodes and renders the raw DV stream to a videosink.
</div>
<p>
Last reviewed on 2006-02-28 (0.10.3)
</p>
</div>
<div class="refsect1" title="Details">
<a name="gst-plugins-good-plugins-dvdec.details"></a><h2>Details</h2>
<div class="refsect2" title="GstDVDec">
<a name="GstDVDec"></a><h3>GstDVDec</h3>
<pre class="programlisting">typedef struct {
  GstElement     element;

  GstPad        *sinkpad;
  GstPad        *srcpad;

  dv_decoder_t  *decoder;
  gboolean       clamp_luma;
  gboolean       clamp_chroma;
  gint           quality;

  gboolean       PAL;
  gboolean       interlaced;
  gboolean       wide;
  gint           frame_len;

  /* input caps */
  gboolean       sink_negotiated;
  gint           framerate_numerator;
  gint           framerate_denominator;
  gint           height;
  gint           par_x;
  gint           par_y;
  gboolean       need_par;

  /* negotiated output */
  dv_color_space_t space;
  gint           bpp;
  gboolean       src_negotiated;
  
  gint           video_offset;
  gint           drop_factor;

  GstSegment *segment;
} GstDVDec;
</pre>
<p>
</p>
</div>
</div>
<div class="refsect1" title="Property Details">
<a name="gst-plugins-good-plugins-dvdec.property-details"></a><h2>Property Details</h2>
<div class="refsect2" title='The "clamp-chroma" property'>
<a name="GstDVDec--clamp-chroma"></a><h3>The <code class="literal">"clamp-chroma"</code> property</h3>
<pre class="programlisting">  "clamp-chroma"             <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
<p>Clamp chroma.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" title='The "clamp-luma" property'>
<a name="GstDVDec--clamp-luma"></a><h3>The <code class="literal">"clamp-luma"</code> property</h3>
<pre class="programlisting">  "clamp-luma"               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
<p>Clamp luma.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" title='The "drop-factor" property'>
<a name="GstDVDec--drop-factor"></a><h3>The <code class="literal">"drop-factor"</code> property</h3>
<pre class="programlisting">  "drop-factor"              <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
<p>Only decode Nth frame.</p>
<p>Allowed values: &gt;= 1</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2" title='The "quality" property'>
<a name="GstDVDec--quality"></a><h3>The <code class="literal">"quality"</code> property</h3>
<pre class="programlisting">  "quality"                  <span class="type">GstDVDecQualityEnum</span>   : Read / Write</pre>
<p>Decoding quality.</p>
<p>Default value: Highest quality colour decoding</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.15</div>
</body>
</html>