Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ffmpeg-doc / usr / share / doc / ffmpeg-doc / api / dv__profile_8h_source.html
Size: Mime:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>FFmpeg: libavcodec/dv_profile.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">FFmpeg
   &#160;<span id="projectnumber">2.7.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">libavcodec/dv_profile.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="dv__profile_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * This file is part of FFmpeg.</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * FFmpeg is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00006"></a>00006 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * FFmpeg is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00012"></a>00012 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00015"></a>00015 <span class="comment"> * License along with FFmpeg; if not, write to the Free Software</span>
<a name="l00016"></a>00016 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span>
<a name="l00017"></a>00017 <span class="comment"> */</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef AVCODEC_DV_PROFILE_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define AVCODEC_DV_PROFILE_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="pixfmt_8h.html" title="pixel format definitions">libavutil/pixfmt.h</a>&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="rational_8h.html" title="rational numbers">libavutil/rational.h</a>&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="libavcodec_2avcodec_8h.html" title="Libavcodec external API header.">avcodec.h</a>&quot;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="comment">/* minimum number of bytes to read from a DV stream in order to</span>
<a name="l00029"></a>00029 <span class="comment"> * determine the profile */</span>
<a name="l00030"></a><a class="code" href="dv__profile_8h.html#ac1a05e6c2c38695c86f958a310c679c2">00030</a> <span class="preprocessor">#define DV_PROFILE_BYTES (6 * 80) </span><span class="comment">/* 6 DIF blocks */</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="comment">/*</span>
<a name="l00034"></a>00034 <span class="comment"> * AVDVProfile is used to express the differences between various</span>
<a name="l00035"></a>00035 <span class="comment"> * DV flavors. For now it&#39;s primarily used for differentiating</span>
<a name="l00036"></a>00036 <span class="comment"> * 525/60 and 625/50, but the plans are to use it for various</span>
<a name="l00037"></a>00037 <span class="comment"> * DV specs as well (e.g. SMPTE314M vs. IEC 61834).</span>
<a name="l00038"></a>00038 <span class="comment"> */</span>
<a name="l00039"></a><a class="code" href="structAVDVProfile.html">00039</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structAVDVProfile.html">AVDVProfile</a> {
<a name="l00040"></a><a class="code" href="structAVDVProfile.html#a5a6c419cebc96446eb3833820541bd88">00040</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#a5a6c419cebc96446eb3833820541bd88">dsf</a>;                   <span class="comment">/* value of the dsf in the DV header */</span>
<a name="l00041"></a><a class="code" href="structAVDVProfile.html#ae6fb4ff067a900d3a1a90b488d65260a">00041</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#ae6fb4ff067a900d3a1a90b488d65260a">video_stype</a>;           <span class="comment">/* stype for VAUX source pack */</span>
<a name="l00042"></a><a class="code" href="structAVDVProfile.html#aff2ba558e0f6e771158529b98de59327">00042</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#aff2ba558e0f6e771158529b98de59327">frame_size</a>;            <span class="comment">/* total size of one frame in bytes */</span>
<a name="l00043"></a><a class="code" href="structAVDVProfile.html#af7877449497c21497178b256f86441b9">00043</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#af7877449497c21497178b256f86441b9">difseg_size</a>;           <span class="comment">/* number of DIF segments per DIF channel */</span>
<a name="l00044"></a><a class="code" href="structAVDVProfile.html#ab00eec0771cb43f7739e25dec4cbaaeb">00044</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#ab00eec0771cb43f7739e25dec4cbaaeb">n_difchan</a>;             <span class="comment">/* number of DIF channels per frame */</span>
<a name="l00045"></a><a class="code" href="structAVDVProfile.html#a426cc1d18197649dbee2e0c189661165">00045</a>     <a class="code" href="structAVRational.html" title="rational number numerator/denominator">AVRational</a>       <a class="code" href="structAVDVProfile.html#a426cc1d18197649dbee2e0c189661165">time_base</a>;             <span class="comment">/* 1/framerate */</span>
<a name="l00046"></a><a class="code" href="structAVDVProfile.html#a419641b54a081dae5f7d58bafb0f4442">00046</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#a419641b54a081dae5f7d58bafb0f4442">ltc_divisor</a>;           <span class="comment">/* FPS from the LTS standpoint */</span>
<a name="l00047"></a><a class="code" href="structAVDVProfile.html#ad9e3fd93f735b40850fd78e73f32f7e8">00047</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#ad9e3fd93f735b40850fd78e73f32f7e8">height</a>;                <span class="comment">/* picture height in pixels */</span>
<a name="l00048"></a><a class="code" href="structAVDVProfile.html#a48e101f30f13027992dd02bc3943b744">00048</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#a48e101f30f13027992dd02bc3943b744">width</a>;                 <span class="comment">/* picture width in pixels */</span>
<a name="l00049"></a><a class="code" href="structAVDVProfile.html#adfe152931074cffcb08b96c94477df20">00049</a>     <a class="code" href="structAVRational.html" title="rational number numerator/denominator">AVRational</a>       <a class="code" href="structAVDVProfile.html#adfe152931074cffcb08b96c94477df20">sar</a>[2];                <span class="comment">/* sample aspect ratios for 4:3 and 16:9 */</span>
<a name="l00050"></a><a class="code" href="structAVDVProfile.html#acb71abd1abbda43885f7f978ae70d6ee">00050</a>     <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#a9a8e335cf3be472042bc9f0cf80cd4c5" title="Pixel format.">AVPixelFormat</a> <a class="code" href="structAVDVProfile.html#acb71abd1abbda43885f7f978ae70d6ee">pix_fmt</a>;             <span class="comment">/* picture pixel format */</span>
<a name="l00051"></a><a class="code" href="structAVDVProfile.html#a3cd4328d99eba11fe615123f66ea611b">00051</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#a3cd4328d99eba11fe615123f66ea611b">bpm</a>;                   <span class="comment">/* blocks per macroblock */</span>
<a name="l00052"></a><a class="code" href="structAVDVProfile.html#ab51ec3f0919265dc5ce94a1603b52592">00052</a>     <span class="keyword">const</span> uint8_t   *<a class="code" href="structAVDVProfile.html#ab51ec3f0919265dc5ce94a1603b52592">block_sizes</a>;           <span class="comment">/* AC block sizes, in bits */</span>
<a name="l00053"></a><a class="code" href="structAVDVProfile.html#a6343d9fbd12b3f0e36a55986274da885">00053</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#a6343d9fbd12b3f0e36a55986274da885">audio_stride</a>;          <span class="comment">/* size of audio_shuffle table */</span>
<a name="l00054"></a><a class="code" href="structAVDVProfile.html#a67ffd3d76d605bc35a2b2709073bba3c">00054</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#a67ffd3d76d605bc35a2b2709073bba3c">audio_min_samples</a>[3];  <span class="comment">/* min amount of audio samples */</span>
<a name="l00055"></a>00055                                             <span class="comment">/* for 48kHz, 44.1kHz and 32kHz */</span>
<a name="l00056"></a><a class="code" href="structAVDVProfile.html#a0536a35ea2778e81b9f63639179648ce">00056</a>     <span class="keywordtype">int</span>              <a class="code" href="structAVDVProfile.html#a0536a35ea2778e81b9f63639179648ce">audio_samples_dist</a>[5]; <span class="comment">/* how many samples are supposed to be */</span>
<a name="l00057"></a>00057                                             <span class="comment">/* in each frame in a 5 frames window */</span>
<a name="l00058"></a><a class="code" href="structAVDVProfile.html#a60e69db48ed11fa6b01386dd0816c347">00058</a>     <span class="keyword">const</span> uint8_t  (*<a class="code" href="structAVDVProfile.html#a60e69db48ed11fa6b01386dd0816c347">audio_shuffle</a>)[9];     <span class="comment">/* PCM shuffling table */</span>
<a name="l00059"></a>00059 } <a class="code" href="structAVDVProfile.html">AVDVProfile</a>;
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 <span class="preprocessor">#if FF_API_DV_FRAME_PROFILE</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span><span class="comment">/**</span>
<a name="l00063"></a>00063 <span class="comment"> * @deprecated use av_dv_frame_profile()</span>
<a name="l00064"></a>00064 <span class="comment"> */</span>
<a name="l00065"></a>00065 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00066"></a>00066 <span class="keyword">const</span> <a class="code" href="structAVDVProfile.html">AVDVProfile</a>* <a class="code" href="dv__profile_8h.html#a87df4f4db42c8cddaeacc333f5a551e0">avpriv_dv_frame_profile2</a>(<a class="code" href="structAVCodecContext.html" title="main external API structure.">AVCodecContext</a>* codec, <span class="keyword">const</span> <a class="code" href="structAVDVProfile.html">AVDVProfile</a> *sys,
<a name="l00067"></a>00067                                             <span class="keyword">const</span> uint8_t* <a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keywordtype">unsigned</span> buf_size);
<a name="l00068"></a>00068 <span class="preprocessor">#endif</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00070"></a>00070 <span class="comment">/**</span>
<a name="l00071"></a>00071 <span class="comment"> * Get a DV profile for the provided compressed frame.</span>
<a name="l00072"></a>00072 <span class="comment"> *</span>
<a name="l00073"></a>00073 <span class="comment"> * @param sys the profile used for the previous frame, may be NULL</span>
<a name="l00074"></a>00074 <span class="comment"> * @param frame the compressed data buffer</span>
<a name="l00075"></a>00075 <span class="comment"> * @param buf_size size of the buffer in bytes</span>
<a name="l00076"></a>00076 <span class="comment"> * @return the DV profile for the supplied data or NULL on failure</span>
<a name="l00077"></a>00077 <span class="comment"> */</span>
<a name="l00078"></a>00078 <span class="keyword">const</span> <a class="code" href="structAVDVProfile.html">AVDVProfile</a> *<a class="code" href="dv__profile_8h.html#a2b14cf1ed2d0416677b300e1f8410ee4" title="Get a DV profile for the provided compressed frame.">av_dv_frame_profile</a>(<span class="keyword">const</span> <a class="code" href="structAVDVProfile.html">AVDVProfile</a> *sys,
<a name="l00079"></a>00079                                        <span class="keyword">const</span> uint8_t *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keywordtype">unsigned</span> buf_size);
<a name="l00080"></a>00080 <span class="comment"></span>
<a name="l00081"></a>00081 <span class="comment">/**</span>
<a name="l00082"></a>00082 <span class="comment"> * Get a DV profile for the provided stream parameters.</span>
<a name="l00083"></a>00083 <span class="comment"> */</span>
<a name="l00084"></a>00084 <span class="keyword">const</span> <a class="code" href="structAVDVProfile.html">AVDVProfile</a> *<a class="code" href="dv__profile_8h.html#ac0ce11afd1cbfcf0365a56eef2f374c5" title="Get a DV profile for the provided stream parameters.">av_dv_codec_profile</a>(<span class="keywordtype">int</span> <a class="code" href="demuxing__decoding_8c.html#a2474a5474cbff19523a51eb1de01cda4">width</a>, <span class="keywordtype">int</span> <a class="code" href="demuxing__decoding_8c.html#ad12fc34ce789bce6c8a05d8a17138534">height</a>, <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#a9a8e335cf3be472042bc9f0cf80cd4c5" title="Pixel format.">AVPixelFormat</a> <a class="code" href="demuxing__decoding_8c.html#a7331e302ea7bb48e0b605a069576e135">pix_fmt</a>);
<a name="l00085"></a>00085 <span class="comment"></span>
<a name="l00086"></a>00086 <span class="comment">/**</span>
<a name="l00087"></a>00087 <span class="comment"> * Get a DV profile for the provided stream parameters.</span>
<a name="l00088"></a>00088 <span class="comment"> * The frame rate is used as a best-effort parameter.</span>
<a name="l00089"></a>00089 <span class="comment"> */</span>
<a name="l00090"></a>00090 <span class="keyword">const</span> <a class="code" href="structAVDVProfile.html">AVDVProfile</a> *<a class="code" href="dv__profile_8h.html#a6e6b2532a302003fcd0c35694867eb32" title="Get a DV profile for the provided stream parameters.">av_dv_codec_profile2</a>(<span class="keywordtype">int</span> <a class="code" href="demuxing__decoding_8c.html#a2474a5474cbff19523a51eb1de01cda4">width</a>, <span class="keywordtype">int</span> <a class="code" href="demuxing__decoding_8c.html#ad12fc34ce789bce6c8a05d8a17138534">height</a>, <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#a9a8e335cf3be472042bc9f0cf80cd4c5" title="Pixel format.">AVPixelFormat</a> <a class="code" href="demuxing__decoding_8c.html#a7331e302ea7bb48e0b605a069576e135">pix_fmt</a>, <a class="code" href="structAVRational.html" title="rational number numerator/denominator">AVRational</a> frame_rate);
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="preprocessor">#endif </span><span class="comment">/* AVCODEC_DV_PROFILE_H */</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>