Repository URL to install this package:
Version:
7:2.7.1-1ubuntu3 ▾
|
<!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: libavutil/frame.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
 <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 Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data 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 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">libavutil/frame.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="frame_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"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * This file is part of FFmpeg.</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * FFmpeg is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00007"></a>00007 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * FFmpeg is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00013"></a>00013 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00016"></a>00016 <span class="comment"> * License along with FFmpeg; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span>
<a name="l00018"></a>00018 <span class="comment"> */</span>
<a name="l00019"></a>00019 <span class="comment"></span>
<a name="l00020"></a>00020 <span class="comment">/**</span>
<a name="l00021"></a>00021 <span class="comment"> * @file</span>
<a name="l00022"></a>00022 <span class="comment"> * @ingroup lavu_frame</span>
<a name="l00023"></a>00023 <span class="comment"> * reference-counted frame API</span>
<a name="l00024"></a>00024 <span class="comment"> */</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#ifndef AVUTIL_FRAME_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define AVUTIL_FRAME_H</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="preprocessor">#include <stdint.h></span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="avutil_8h.html" title="external API header">avutil.h</a>"</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="buffer_8h.html" title="refcounted data buffer API">buffer.h</a>"</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="dict_8h.html" title="Public dictionary API.">dict.h</a>"</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="rational_8h.html" title="rational numbers">rational.h</a>"</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include "<a class="code" href="samplefmt_8h.html">samplefmt.h</a>"</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="pixfmt_8h.html" title="pixel format definitions">pixfmt.h</a>"</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="libavutil_2version_8h.html" title="Libavutil version macros.">version.h</a>"</span>
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="comment"></span>
<a name="l00040"></a>00040 <span class="comment">/**</span>
<a name="l00041"></a>00041 <span class="comment"> * @defgroup lavu_frame AVFrame</span>
<a name="l00042"></a>00042 <span class="comment"> * @ingroup lavu_data</span>
<a name="l00043"></a>00043 <span class="comment"> *</span>
<a name="l00044"></a>00044 <span class="comment"> * @{</span>
<a name="l00045"></a>00045 <span class="comment"> * AVFrame is an abstraction for reference-counted raw multimedia data.</span>
<a name="l00046"></a>00046 <span class="comment"> */</span>
<a name="l00047"></a>00047
<a name="l00048"></a><a class="code" href="group__lavu__frame.html#gae01fa7e427274293aacdf2adc17076bc">00048</a> <span class="keyword">enum</span> <a class="code" href="group__lavu__frame.html#gae01fa7e427274293aacdf2adc17076bc">AVFrameSideDataType</a> {<span class="comment"></span>
<a name="l00049"></a>00049 <span class="comment"> /**</span>
<a name="l00050"></a>00050 <span class="comment"> * The data is the AVPanScan struct defined in libavcodec.</span>
<a name="l00051"></a>00051 <span class="comment"> */</span>
<a name="l00052"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca3de91a03b453c956b7274a2392d9a437">00052</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca3de91a03b453c956b7274a2392d9a437" title="The data is the AVPanScan struct defined in libavcodec.">AV_FRAME_DATA_PANSCAN</a>,<span class="comment"></span>
<a name="l00053"></a>00053 <span class="comment"> /**</span>
<a name="l00054"></a>00054 <span class="comment"> * ATSC A53 Part 4 Closed Captions.</span>
<a name="l00055"></a>00055 <span class="comment"> * A53 CC bitstream is stored as uint8_t in AVFrameSideData.data.</span>
<a name="l00056"></a>00056 <span class="comment"> * The number of bytes of CC data is AVFrameSideData.size.</span>
<a name="l00057"></a>00057 <span class="comment"> */</span>
<a name="l00058"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca4848fd3952b4c2e1c1b85acb628c78a6">00058</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca4848fd3952b4c2e1c1b85acb628c78a6" title="ATSC A53 Part 4 Closed Captions.">AV_FRAME_DATA_A53_CC</a>,<span class="comment"></span>
<a name="l00059"></a>00059 <span class="comment"> /**</span>
<a name="l00060"></a>00060 <span class="comment"> * Stereoscopic 3d metadata.</span>
<a name="l00061"></a>00061 <span class="comment"> * The data is the AVStereo3D struct defined in libavutil/stereo3d.h.</span>
<a name="l00062"></a>00062 <span class="comment"> */</span>
<a name="l00063"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bcacec681d6146e8bd4c61b2e1cc88354a8">00063</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bcacec681d6146e8bd4c61b2e1cc88354a8" title="Stereoscopic 3d metadata.">AV_FRAME_DATA_STEREO3D</a>,<span class="comment"></span>
<a name="l00064"></a>00064 <span class="comment"> /**</span>
<a name="l00065"></a>00065 <span class="comment"> * The data is the AVMatrixEncoding enum defined in libavutil/channel_layout.h.</span>
<a name="l00066"></a>00066 <span class="comment"> */</span>
<a name="l00067"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bcaa69ea5c11a5431bfff9e565714dafe41">00067</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bcaa69ea5c11a5431bfff9e565714dafe41" title="The data is the AVMatrixEncoding enum defined in libavutil/channel_layout.h.">AV_FRAME_DATA_MATRIXENCODING</a>,<span class="comment"></span>
<a name="l00068"></a>00068 <span class="comment"> /**</span>
<a name="l00069"></a>00069 <span class="comment"> * Metadata relevant to a downmix procedure.</span>
<a name="l00070"></a>00070 <span class="comment"> * The data is the AVDownmixInfo struct defined in libavutil/downmix_info.h.</span>
<a name="l00071"></a>00071 <span class="comment"> */</span>
<a name="l00072"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca71819257ea0bedb7e0740a0ce60e404a">00072</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca71819257ea0bedb7e0740a0ce60e404a" title="Metadata relevant to a downmix procedure.">AV_FRAME_DATA_DOWNMIX_INFO</a>,<span class="comment"></span>
<a name="l00073"></a>00073 <span class="comment"> /**</span>
<a name="l00074"></a>00074 <span class="comment"> * ReplayGain information in the form of the AVReplayGain struct.</span>
<a name="l00075"></a>00075 <span class="comment"> */</span>
<a name="l00076"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca66f46a9df9fcb8cf212e0693465794e1">00076</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca66f46a9df9fcb8cf212e0693465794e1" title="ReplayGain information in the form of the AVReplayGain struct.">AV_FRAME_DATA_REPLAYGAIN</a>,<span class="comment"></span>
<a name="l00077"></a>00077 <span class="comment"> /**</span>
<a name="l00078"></a>00078 <span class="comment"> * This side data contains a 3x3 transformation matrix describing an affine</span>
<a name="l00079"></a>00079 <span class="comment"> * transformation that needs to be applied to the frame for correct</span>
<a name="l00080"></a>00080 <span class="comment"> * presentation.</span>
<a name="l00081"></a>00081 <span class="comment"> *</span>
<a name="l00082"></a>00082 <span class="comment"> * See libavutil/display.h for a detailed description of the data.</span>
<a name="l00083"></a>00083 <span class="comment"> */</span>
<a name="l00084"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca3e01b882b6fa04724076067d6d9f8b69">00084</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca3e01b882b6fa04724076067d6d9f8b69" title="This side data contains a 3x3 transformation matrix describing an affine transformation that needs to...">AV_FRAME_DATA_DISPLAYMATRIX</a>,<span class="comment"></span>
<a name="l00085"></a>00085 <span class="comment"> /**</span>
<a name="l00086"></a>00086 <span class="comment"> * Active Format Description data consisting of a single byte as specified</span>
<a name="l00087"></a>00087 <span class="comment"> * in ETSI TS 101 154 using AVActiveFormatDescription enum.</span>
<a name="l00088"></a>00088 <span class="comment"> */</span>
<a name="l00089"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca9aabf5c0b8abc7064bfcc59485e54aea">00089</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca9aabf5c0b8abc7064bfcc59485e54aea" title="Active Format Description data consisting of a single byte as specified in ETSI TS 101 154 using AVAc...">AV_FRAME_DATA_AFD</a>,<span class="comment"></span>
<a name="l00090"></a>00090 <span class="comment"> /**</span>
<a name="l00091"></a>00091 <span class="comment"> * Motion vectors exported by some codecs (on demand through the export_mvs</span>
<a name="l00092"></a>00092 <span class="comment"> * flag set in the libavcodec AVCodecContext flags2 option).</span>
<a name="l00093"></a>00093 <span class="comment"> * The data is the AVMotionVector struct defined in</span>
<a name="l00094"></a>00094 <span class="comment"> * libavutil/motion_vector.h.</span>
<a name="l00095"></a>00095 <span class="comment"> */</span>
<a name="l00096"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bcaf50d0ed0a9a4517341c221be03a06c42">00096</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bcaf50d0ed0a9a4517341c221be03a06c42" title="Motion vectors exported by some codecs (on demand through the export_mvs flag set in the libavcodec A...">AV_FRAME_DATA_MOTION_VECTORS</a>,<span class="comment"></span>
<a name="l00097"></a>00097 <span class="comment"> /**</span>
<a name="l00098"></a>00098 <span class="comment"> * Recommmends skipping the specified number of samples. This is exported</span>
<a name="l00099"></a>00099 <span class="comment"> * only if the "skip_manual" AVOption is set in libavcodec.</span>
<a name="l00100"></a>00100 <span class="comment"> * This has the same format as AV_PKT_DATA_SKIP_SAMPLES.</span>
<a name="l00101"></a>00101 <span class="comment"> * @code</span>
<a name="l00102"></a>00102 <span class="comment"> * u32le number of samples to skip from start of this packet</span>
<a name="l00103"></a>00103 <span class="comment"> * u32le number of samples to skip from end of this packet</span>
<a name="l00104"></a>00104 <span class="comment"> * u8 reason for start skip</span>
<a name="l00105"></a>00105 <span class="comment"> * u8 reason for end skip (0=padding silence, 1=convergence)</span>
<a name="l00106"></a>00106 <span class="comment"> * @endcode</span>
<a name="l00107"></a>00107 <span class="comment"> */</span>
<a name="l00108"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca6b0b1ee4315f322922710f65d02a146b">00108</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca6b0b1ee4315f322922710f65d02a146b" title="Recommmends skipping the specified number of samples.">AV_FRAME_DATA_SKIP_SAMPLES</a>,
<a name="l00109"></a>00109 <span class="comment"></span>
<a name="l00110"></a>00110 <span class="comment"> /**</span>
<a name="l00111"></a>00111 <span class="comment"> * This side data must be associated with an audio frame and corresponds to</span>
<a name="l00112"></a>00112 <span class="comment"> * enum AVAudioServiceType defined in avcodec.h.</span>
<a name="l00113"></a>00113 <span class="comment"> */</span>
<a name="l00114"></a><a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca51023c847159dcc08776f9dcee5e0c90">00114</a> <a class="code" href="group__lavu__frame.html#ggae01fa7e427274293aacdf2adc17076bca51023c847159dcc08776f9dcee5e0c90" title="This side data must be associated with an audio frame and corresponds to enum AVAudioServiceType defi...">AV_FRAME_DATA_AUDIO_SERVICE_TYPE</a>,
<a name="l00115"></a>00115 };
<a name="l00116"></a>00116
<a name="l00117"></a><a class="code" href="group__lavu__frame.html#ga612627d8f03d52317992979dfa151d76">00117</a> <span class="keyword">enum</span> <a class="code" href="group__lavu__frame.html#ga612627d8f03d52317992979dfa151d76">AVActiveFormatDescription</a> {
<a name="l00118"></a><a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76a0e9a49946d70eb6ca77cf937ed1a342c">00118</a> <a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76a0e9a49946d70eb6ca77cf937ed1a342c">AV_AFD_SAME</a> = 8,
<a name="l00119"></a><a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76ab118e63239595dceb50deea7351dc1cb">00119</a> <a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76ab118e63239595dceb50deea7351dc1cb">AV_AFD_4_3</a> = 9,
<a name="l00120"></a><a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76ad8f8850e69a05765363a4a833adc97d8">00120</a> <a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76ad8f8850e69a05765363a4a833adc97d8">AV_AFD_16_9</a> = 10,
<a name="l00121"></a><a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76a0da920de1ba63c73fabe1b9878477a13">00121</a> <a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76a0da920de1ba63c73fabe1b9878477a13">AV_AFD_14_9</a> = 11,
<a name="l00122"></a><a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76a65edb00603a0d7fdb37cecac94b62cc5">00122</a> <a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76a65edb00603a0d7fdb37cecac94b62cc5">AV_AFD_4_3_SP_14_9</a> = 13,
<a name="l00123"></a><a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76a488ce7ad4833c96497000dd03b8f0b55">00123</a> <a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76a488ce7ad4833c96497000dd03b8f0b55">AV_AFD_16_9_SP_14_9</a> = 14,
<a name="l00124"></a><a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76aac53fd979d24b22c0673d1a0bc59e304">00124</a> <a class="code" href="group__lavu__frame.html#gga612627d8f03d52317992979dfa151d76aac53fd979d24b22c0673d1a0bc59e304">AV_AFD_SP_4_3</a> = 15,
<a name="l00125"></a>00125 };
<a name="l00126"></a>00126
<a name="l00127"></a>00127 <span class="comment"></span>
<a name="l00128"></a>00128 <span class="comment">/**</span>
<a name="l00129"></a>00129 <span class="comment"> * Structure to hold side data for an AVFrame.</span>
<a name="l00130"></a>00130 <span class="comment"> *</span>
<a name="l00131"></a>00131 <span class="comment"> * sizeof(AVFrameSideData) is not a part of the public ABI, so new fields may be added</span>
<a name="l00132"></a>00132 <span class="comment"> * to the end with a minor bump.</span>
<a name="l00133"></a>00133 <span class="comment"> */</span>
<a name="l00134"></a><a class="code" href="structAVFrameSideData.html">00134</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structAVFrameSideData.html" title="Structure to hold side data for an AVFrame.">AVFrameSideData</a> {
<a name="l00135"></a><a class="code" href="structAVFrameSideData.html#a07ff3499827c124591ff4bae6f68eec0">00135</a> <span class="keyword">enum</span> <a class="code" href="group__lavu__frame.html#gae01fa7e427274293aacdf2adc17076bc">AVFrameSideDataType</a> <a class="code" href="structAVFrameSideData.html#a07ff3499827c124591ff4bae6f68eec0">type</a>;
<a name="l00136"></a><a class="code" href="structAVFrameSideData.html#a76937ad48652a5a0cc4bff65fc6c886e">00136</a> uint8_t *<a class="code" href="structAVFrameSideData.html#a76937ad48652a5a0cc4bff65fc6c886e">data</a>;
<a name="l00137"></a><a class="code" href="structAVFrameSideData.html#aa8418cdc71a76dfab523445b17f10028">00137</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrameSideData.html#aa8418cdc71a76dfab523445b17f10028">size</a>;
<a name="l00138"></a><a class="code" href="structAVFrameSideData.html#a1b5aa30410c54c8aebefa1a791616e9f">00138</a> <a class="code" href="group__lavu__dict.html#ga1d7cc0833bee918994a600556410315f">AVDictionary</a> *<a class="code" href="structAVFrameSideData.html#a1b5aa30410c54c8aebefa1a791616e9f">metadata</a>;
<a name="l00139"></a><a class="code" href="structAVFrameSideData.html#a8760a02e39e6fc1467f32c6b66ccf368">00139</a> <a class="code" href="structAVBufferRef.html" title="A reference to a data buffer.">AVBufferRef</a> *<a class="code" href="structAVFrameSideData.html#a8760a02e39e6fc1467f32c6b66ccf368">buf</a>;
<a name="l00140"></a>00140 } <a class="code" href="structAVFrameSideData.html" title="Structure to hold side data for an AVFrame.">AVFrameSideData</a>;
<a name="l00141"></a>00141 <span class="comment"></span>
<a name="l00142"></a>00142 <span class="comment">/**</span>
<a name="l00143"></a>00143 <span class="comment"> * This structure describes decoded (raw) audio or video data.</span>
<a name="l00144"></a>00144 <span class="comment"> *</span>
<a name="l00145"></a>00145 <span class="comment"> * AVFrame must be allocated using av_frame_alloc(). Note that this only</span>
<a name="l00146"></a>00146 <span class="comment"> * allocates the AVFrame itself, the buffers for the data must be managed</span>
<a name="l00147"></a>00147 <span class="comment"> * through other means (see below).</span>
<a name="l00148"></a>00148 <span class="comment"> * AVFrame must be freed with av_frame_free().</span>
<a name="l00149"></a>00149 <span class="comment"> *</span>
<a name="l00150"></a>00150 <span class="comment"> * AVFrame is typically allocated once and then reused multiple times to hold</span>
<a name="l00151"></a>00151 <span class="comment"> * different data (e.g. a single AVFrame to hold frames received from a</span>
<a name="l00152"></a>00152 <span class="comment"> * decoder). In such a case, av_frame_unref() will free any references held by</span>
<a name="l00153"></a>00153 <span class="comment"> * the frame and reset it to its original clean state before it</span>
<a name="l00154"></a>00154 <span class="comment"> * is reused again.</span>
<a name="l00155"></a>00155 <span class="comment"> *</span>
<a name="l00156"></a>00156 <span class="comment"> * The data described by an AVFrame is usually reference counted through the</span>
<a name="l00157"></a>00157 <span class="comment"> * AVBuffer API. The underlying buffer references are stored in AVFrame.buf /</span>
<a name="l00158"></a>00158 <span class="comment"> * AVFrame.extended_buf. An AVFrame is considered to be reference counted if at</span>
<a name="l00159"></a>00159 <span class="comment"> * least one reference is set, i.e. if AVFrame.buf[0] != NULL. In such a case,</span>
<a name="l00160"></a>00160 <span class="comment"> * every single data plane must be contained in one of the buffers in</span>
<a name="l00161"></a>00161 <span class="comment"> * AVFrame.buf or AVFrame.extended_buf.</span>
<a name="l00162"></a>00162 <span class="comment"> * There may be a single buffer for all the data, or one separate buffer for</span>
<a name="l00163"></a>00163 <span class="comment"> * each plane, or anything in between.</span>
<a name="l00164"></a>00164 <span class="comment"> *</span>
<a name="l00165"></a>00165 <span class="comment"> * sizeof(AVFrame) is not a part of the public ABI, so new fields may be added</span>
<a name="l00166"></a>00166 <span class="comment"> * to the end with a minor bump.</span>
<a name="l00167"></a>00167 <span class="comment"> * Similarly fields that are marked as to be only accessed by</span>
<a name="l00168"></a>00168 <span class="comment"> * av_opt_ptr() can be reordered. This allows 2 forks to add fields</span>
<a name="l00169"></a>00169 <span class="comment"> * without breaking compatibility with each other.</span>
<a name="l00170"></a>00170 <span class="comment"> */</span>
<a name="l00171"></a><a class="code" href="structAVFrame.html">00171</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> {
<a name="l00172"></a><a class="code" href="frame_8h.html#add80189702cf0f5ea82718576fb43201">00172</a> <span class="preprocessor">#define AV_NUM_DATA_POINTERS 8</span>
<a name="l00173"></a>00173 <span class="preprocessor"></span><span class="comment"> /**</span>
<a name="l00174"></a>00174 <span class="comment"> * pointer to the picture/channel planes.</span>
<a name="l00175"></a>00175 <span class="comment"> * This might be different from the first allocated byte</span>
<a name="l00176"></a>00176 <span class="comment"> *</span>
<a name="l00177"></a>00177 <span class="comment"> * Some decoders access areas outside 0,0 - width,height, please</span>
<a name="l00178"></a>00178 <span class="comment"> * see avcodec_align_dimensions2(). Some filters and swscale can read</span>
<a name="l00179"></a>00179 <span class="comment"> * up to 16 bytes beyond the planes, if these filters are to be used,</span>
<a name="l00180"></a>00180 <span class="comment"> * then 16 extra bytes must be allocated.</span>
<a name="l00181"></a>00181 <span class="comment"> */</span>
<a name="l00182"></a><a class="code" href="structAVFrame.html#a1d0f65014a8d1bf78cec8cbed2304992">00182</a> uint8_t *<a class="code" href="structAVFrame.html#a1d0f65014a8d1bf78cec8cbed2304992" title="pointer to the picture/channel planes.">data</a>[<a class="code" href="frame_8h.html#add80189702cf0f5ea82718576fb43201">AV_NUM_DATA_POINTERS</a>];
<a name="l00183"></a>00183 <span class="comment"></span>
<a name="l00184"></a>00184 <span class="comment"> /**</span>
<a name="l00185"></a>00185 <span class="comment"> * For video, size in bytes of each picture line.</span>
<a name="l00186"></a>00186 <span class="comment"> * For audio, size in bytes of each plane.</span>
<a name="l00187"></a>00187 <span class="comment"> *</span>
<a name="l00188"></a>00188 <span class="comment"> * For audio, only linesize[0] may be set. For planar audio, each channel</span>
<a name="l00189"></a>00189 <span class="comment"> * plane must be the same size.</span>
<a name="l00190"></a>00190 <span class="comment"> *</span>
<a name="l00191"></a>00191 <span class="comment"> * For video the linesizes should be multiples of the CPUs alignment</span>
<a name="l00192"></a>00192 <span class="comment"> * preference, this is 16 or 32 for modern desktop CPUs.</span>
<a name="l00193"></a>00193 <span class="comment"> * Some code requires such alignment other code can be slower without</span>
<a name="l00194"></a>00194 <span class="comment"> * correct alignment, for yet other it makes no difference.</span>
<a name="l00195"></a>00195 <span class="comment"> *</span>
<a name="l00196"></a>00196 <span class="comment"> * @note The linesize may be larger than the size of usable data -- there</span>
<a name="l00197"></a>00197 <span class="comment"> * may be extra padding present for performance reasons.</span>
<a name="l00198"></a>00198 <span class="comment"> */</span>
<a name="l00199"></a><a class="code" href="structAVFrame.html#aa52bfc6605f6a3059a0c3226cc0f6567">00199</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#aa52bfc6605f6a3059a0c3226cc0f6567" title="For video, size in bytes of each picture line.">linesize</a>[<a class="code" href="frame_8h.html#add80189702cf0f5ea82718576fb43201">AV_NUM_DATA_POINTERS</a>];
<a name="l00200"></a>00200 <span class="comment"></span>
<a name="l00201"></a>00201 <span class="comment"> /**</span>
<a name="l00202"></a>00202 <span class="comment"> * pointers to the data planes/channels.</span>
<a name="l00203"></a>00203 <span class="comment"> *</span>
<a name="l00204"></a>00204 <span class="comment"> * For video, this should simply point to data[].</span>
<a name="l00205"></a>00205 <span class="comment"> *</span>
<a name="l00206"></a>00206 <span class="comment"> * For planar audio, each channel has a separate data pointer, and</span>
<a name="l00207"></a>00207 <span class="comment"> * linesize[0] contains the size of each channel buffer.</span>
<a name="l00208"></a>00208 <span class="comment"> * For packed audio, there is just one data pointer, and linesize[0]</span>
<a name="l00209"></a>00209 <span class="comment"> * contains the total size of the buffer for all channels.</span>
<a name="l00210"></a>00210 <span class="comment"> *</span>
<a name="l00211"></a>00211 <span class="comment"> * Note: Both data and extended_data should always be set in a valid frame,</span>
<a name="l00212"></a>00212 <span class="comment"> * but for planar audio with more channels that can fit in data,</span>
<a name="l00213"></a>00213 <span class="comment"> * extended_data must be used in order to access all channels.</span>
<a name="l00214"></a>00214 <span class="comment"> */</span>
<a name="l00215"></a><a class="code" href="structAVFrame.html#afca04d808393822625e09b5ba91c6756">00215</a> uint8_t **<a class="code" href="structAVFrame.html#afca04d808393822625e09b5ba91c6756" title="pointers to the data planes/channels.">extended_data</a>;
<a name="l00216"></a>00216 <span class="comment"></span>
<a name="l00217"></a>00217 <span class="comment"> /**</span>
<a name="l00218"></a>00218 <span class="comment"> * width and height of the video frame</span>
<a name="l00219"></a>00219 <span class="comment"> */</span>
<a name="l00220"></a><a class="code" href="structAVFrame.html#a1e71ce60cedd5f3b6811714a9f7f9e0a">00220</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a1e71ce60cedd5f3b6811714a9f7f9e0a" title="width and height of the video frame">width</a>, <a class="code" href="structAVFrame.html#a3f89733f429c98ba5bc64373fb0a3f13">height</a>;
<a name="l00221"></a>00221 <span class="comment"></span>
<a name="l00222"></a>00222 <span class="comment"> /**</span>
<a name="l00223"></a>00223 <span class="comment"> * number of audio samples (per channel) described by this frame</span>
<a name="l00224"></a>00224 <span class="comment"> */</span>
<a name="l00225"></a><a class="code" href="structAVFrame.html#a02f45ab8191aea1660159f1e464237ea">00225</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a02f45ab8191aea1660159f1e464237ea" title="number of audio samples (per channel) described by this frame">nb_samples</a>;
<a name="l00226"></a>00226 <span class="comment"></span>
<a name="l00227"></a>00227 <span class="comment"> /**</span>
<a name="l00228"></a>00228 <span class="comment"> * format of the frame, -1 if unknown or unset</span>
<a name="l00229"></a>00229 <span class="comment"> * Values correspond to enum AVPixelFormat for video frames,</span>
<a name="l00230"></a>00230 <span class="comment"> * enum AVSampleFormat for audio)</span>
<a name="l00231"></a>00231 <span class="comment"> */</span>
<a name="l00232"></a><a class="code" href="structAVFrame.html#aed14fa772ce46881020fd1545c86432c">00232</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#aed14fa772ce46881020fd1545c86432c" title="format of the frame, -1 if unknown or unset Values correspond to enum AVPixelFormat for video frames...">format</a>;
<a name="l00233"></a>00233 <span class="comment"></span>
<a name="l00234"></a>00234 <span class="comment"> /**</span>
<a name="l00235"></a>00235 <span class="comment"> * 1 -> keyframe, 0-> not</span>
<a name="l00236"></a>00236 <span class="comment"> */</span>
<a name="l00237"></a><a class="code" href="structAVFrame.html#a3649a81e8414a193d685a6eee06ce902">00237</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a3649a81e8414a193d685a6eee06ce902" title="1 -> keyframe, 0-> not">key_frame</a>;
<a name="l00238"></a>00238 <span class="comment"></span>
<a name="l00239"></a>00239 <span class="comment"> /**</span>
<a name="l00240"></a>00240 <span class="comment"> * Picture type of the frame.</span>
<a name="l00241"></a>00241 <span class="comment"> */</span>
<a name="l00242"></a><a class="code" href="structAVFrame.html#af9920fc3fbfa347b8943ae461b50d18b">00242</a> <span class="keyword">enum</span> <a class="code" href="group__lavu__picture.html#gae6cbcab1f70d8e476757f1c1f5a0a78e">AVPictureType</a> <a class="code" href="structAVFrame.html#af9920fc3fbfa347b8943ae461b50d18b" title="Picture type of the frame.">pict_type</a>;
<a name="l00243"></a>00243
<a name="l00244"></a>00244 <span class="preprocessor">#if FF_API_AVFRAME_LAVC</span>
<a name="l00245"></a>00245 <span class="preprocessor"></span> <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00246"></a>00246 uint8_t *base[<a class="code" href="frame_8h.html#add80189702cf0f5ea82718576fb43201">AV_NUM_DATA_POINTERS</a>];
<a name="l00247"></a>00247 <span class="preprocessor">#endif</span>
<a name="l00248"></a>00248 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00249"></a>00249 <span class="comment"> /**</span>
<a name="l00250"></a>00250 <span class="comment"> * Sample aspect ratio for the video frame, 0/1 if unknown/unspecified.</span>
<a name="l00251"></a>00251 <span class="comment"> */</span>
<a name="l00252"></a><a class="code" href="structAVFrame.html#a62f9c20541a83d37db7072126ff0060d">00252</a> <a class="code" href="structAVRational.html" title="rational number numerator/denominator">AVRational</a> <a class="code" href="structAVFrame.html#a62f9c20541a83d37db7072126ff0060d" title="Sample aspect ratio for the video frame, 0/1 if unknown/unspecified.">sample_aspect_ratio</a>;
<a name="l00253"></a>00253 <span class="comment"></span>
<a name="l00254"></a>00254 <span class="comment"> /**</span>
<a name="l00255"></a>00255 <span class="comment"> * Presentation timestamp in time_base units (time when frame should be shown to user).</span>
<a name="l00256"></a>00256 <span class="comment"> */</span>
<a name="l00257"></a><a class="code" href="structAVFrame.html#a0452833e3ab6ddd7acbf82817a7818a4">00257</a> int64_t <a class="code" href="structAVFrame.html#a0452833e3ab6ddd7acbf82817a7818a4" title="Presentation timestamp in time_base units (time when frame should be shown to user).">pts</a>;
<a name="l00258"></a>00258 <span class="comment"></span>
<a name="l00259"></a>00259 <span class="comment"> /**</span>
<a name="l00260"></a>00260 <span class="comment"> * PTS copied from the AVPacket that was decoded to produce this frame.</span>
<a name="l00261"></a>00261 <span class="comment"> */</span>
<a name="l00262"></a><a class="code" href="structAVFrame.html#a47f555732f9c18928de727a163cd7cb6">00262</a> int64_t <a class="code" href="structAVFrame.html#a47f555732f9c18928de727a163cd7cb6" title="PTS copied from the AVPacket that was decoded to produce this frame.">pkt_pts</a>;
<a name="l00263"></a>00263 <span class="comment"></span>
<a name="l00264"></a>00264 <span class="comment"> /**</span>
<a name="l00265"></a>00265 <span class="comment"> * DTS copied from the AVPacket that triggered returning this frame. (if frame threading isn't used)</span>
<a name="l00266"></a>00266 <span class="comment"> * This is also the Presentation time of this AVFrame calculated from</span>
<a name="l00267"></a>00267 <span class="comment"> * only AVPacket.dts values without pts values.</span>
<a name="l00268"></a>00268 <span class="comment"> */</span>
<a name="l00269"></a><a class="code" href="structAVFrame.html#aa52951f35ec9e303d3dfeb4b3e44248a">00269</a> int64_t <a class="code" href="structAVFrame.html#aa52951f35ec9e303d3dfeb4b3e44248a" title="DTS copied from the AVPacket that triggered returning this frame.">pkt_dts</a>;
<a name="l00270"></a>00270 <span class="comment"></span>
<a name="l00271"></a>00271 <span class="comment"> /**</span>
<a name="l00272"></a>00272 <span class="comment"> * picture number in bitstream order</span>
<a name="l00273"></a>00273 <span class="comment"> */</span>
<a name="l00274"></a><a class="code" href="structAVFrame.html#a02ca9bb7f500d3d850f8736f3cb29c6c">00274</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a02ca9bb7f500d3d850f8736f3cb29c6c" title="picture number in bitstream order">coded_picture_number</a>;<span class="comment"></span>
<a name="l00275"></a>00275 <span class="comment"> /**</span>
<a name="l00276"></a>00276 <span class="comment"> * picture number in display order</span>
<a name="l00277"></a>00277 <span class="comment"> */</span>
<a name="l00278"></a><a class="code" href="structAVFrame.html#a12b00a552b74c79f0760b80fac18efe7">00278</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a12b00a552b74c79f0760b80fac18efe7" title="picture number in display order">display_picture_number</a>;
<a name="l00279"></a>00279 <span class="comment"></span>
<a name="l00280"></a>00280 <span class="comment"> /**</span>
<a name="l00281"></a>00281 <span class="comment"> * quality (between 1 (good) and FF_LAMBDA_MAX (bad))</span>
<a name="l00282"></a>00282 <span class="comment"> */</span>
<a name="l00283"></a><a class="code" href="structAVFrame.html#a791c071afd3e95fcae14cb781829754d">00283</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a791c071afd3e95fcae14cb781829754d" title="quality (between 1 (good) and FF_LAMBDA_MAX (bad))">quality</a>;
<a name="l00284"></a>00284
<a name="l00285"></a>00285 <span class="preprocessor">#if FF_API_AVFRAME_LAVC</span>
<a name="l00286"></a>00286 <span class="preprocessor"></span> <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00287"></a>00287 <span class="keywordtype">int</span> reference;
<a name="l00288"></a>00288 <span class="comment"></span>
<a name="l00289"></a>00289 <span class="comment"> /**</span>
<a name="l00290"></a>00290 <span class="comment"> * QP table</span>
<a name="l00291"></a>00291 <span class="comment"> */</span>
<a name="l00292"></a>00292 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00293"></a>00293 int8_t *qscale_table;<span class="comment"></span>
<a name="l00294"></a>00294 <span class="comment"> /**</span>
<a name="l00295"></a>00295 <span class="comment"> * QP store stride</span>
<a name="l00296"></a>00296 <span class="comment"> */</span>
<a name="l00297"></a>00297 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00298"></a>00298 <span class="keywordtype">int</span> qstride;
<a name="l00299"></a>00299
<a name="l00300"></a>00300 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00301"></a>00301 <span class="keywordtype">int</span> qscale_type;
<a name="l00302"></a>00302 <span class="comment"></span>
<a name="l00303"></a>00303 <span class="comment"> /**</span>
<a name="l00304"></a>00304 <span class="comment"> * mbskip_table[mb]>=1 if MB didn't change</span>
<a name="l00305"></a>00305 <span class="comment"> * stride= mb_width = (width+15)>>4</span>
<a name="l00306"></a>00306 <span class="comment"> */</span>
<a name="l00307"></a>00307 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00308"></a>00308 uint8_t *mbskip_table;
<a name="l00309"></a>00309 <span class="comment"></span>
<a name="l00310"></a>00310 <span class="comment"> /**</span>
<a name="l00311"></a>00311 <span class="comment"> * motion vector table</span>
<a name="l00312"></a>00312 <span class="comment"> * @code</span>
<a name="l00313"></a>00313 <span class="comment"> * example:</span>
<a name="l00314"></a>00314 <span class="comment"> * int mv_sample_log2= 4 - motion_subsample_log2;</span>
<a name="l00315"></a>00315 <span class="comment"> * int mb_width= (width+15)>>4;</span>
<a name="l00316"></a>00316 <span class="comment"> * int mv_stride= (mb_width << mv_sample_log2) + 1;</span>
<a name="l00317"></a>00317 <span class="comment"> * motion_val[direction][x + y*mv_stride][0->mv_x, 1->mv_y];</span>
<a name="l00318"></a>00318 <span class="comment"> * @endcode</span>
<a name="l00319"></a>00319 <span class="comment"> */</span>
<a name="l00320"></a>00320 int16_t (*motion_val[2])[2];
<a name="l00321"></a>00321 <span class="comment"></span>
<a name="l00322"></a>00322 <span class="comment"> /**</span>
<a name="l00323"></a>00323 <span class="comment"> * macroblock type table</span>
<a name="l00324"></a>00324 <span class="comment"> * mb_type_base + mb_width + 2</span>
<a name="l00325"></a>00325 <span class="comment"> */</span>
<a name="l00326"></a>00326 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00327"></a>00327 uint32_t *mb_type;
<a name="l00328"></a>00328 <span class="comment"></span>
<a name="l00329"></a>00329 <span class="comment"> /**</span>
<a name="l00330"></a>00330 <span class="comment"> * DCT coefficients</span>
<a name="l00331"></a>00331 <span class="comment"> */</span>
<a name="l00332"></a>00332 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00333"></a>00333 <span class="keywordtype">short</span> *dct_coeff;
<a name="l00334"></a>00334 <span class="comment"></span>
<a name="l00335"></a>00335 <span class="comment"> /**</span>
<a name="l00336"></a>00336 <span class="comment"> * motion reference frame index</span>
<a name="l00337"></a>00337 <span class="comment"> * the order in which these are stored can depend on the codec.</span>
<a name="l00338"></a>00338 <span class="comment"> */</span>
<a name="l00339"></a>00339 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00340"></a>00340 int8_t *ref_index[2];
<a name="l00341"></a>00341 <span class="preprocessor">#endif</span>
<a name="l00342"></a>00342 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00343"></a>00343 <span class="comment"> /**</span>
<a name="l00344"></a>00344 <span class="comment"> * for some private data of the user</span>
<a name="l00345"></a>00345 <span class="comment"> */</span>
<a name="l00346"></a><a class="code" href="structAVFrame.html#a385d043b41cd182b7b1bdaec56ed19e0">00346</a> <span class="keywordtype">void</span> *<a class="code" href="structAVFrame.html#a385d043b41cd182b7b1bdaec56ed19e0" title="for some private data of the user">opaque</a>;
<a name="l00347"></a>00347 <span class="comment"></span>
<a name="l00348"></a>00348 <span class="comment"> /**</span>
<a name="l00349"></a>00349 <span class="comment"> * error</span>
<a name="l00350"></a>00350 <span class="comment"> */</span>
<a name="l00351"></a><a class="code" href="structAVFrame.html#a3893c612b55b82258333f99a32117e60">00351</a> uint64_t <a class="code" href="structAVFrame.html#a3893c612b55b82258333f99a32117e60" title="error">error</a>[<a class="code" href="frame_8h.html#add80189702cf0f5ea82718576fb43201">AV_NUM_DATA_POINTERS</a>];
<a name="l00352"></a>00352
<a name="l00353"></a>00353 <span class="preprocessor">#if FF_API_AVFRAME_LAVC</span>
<a name="l00354"></a>00354 <span class="preprocessor"></span> <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00355"></a>00355 <span class="keywordtype">int</span> type;
<a name="l00356"></a>00356 <span class="preprocessor">#endif</span>
<a name="l00357"></a>00357 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00358"></a>00358 <span class="comment"> /**</span>
<a name="l00359"></a>00359 <span class="comment"> * When decoding, this signals how much the picture must be delayed.</span>
<a name="l00360"></a>00360 <span class="comment"> * extra_delay = repeat_pict / (2*fps)</span>
<a name="l00361"></a>00361 <span class="comment"> */</span>
<a name="l00362"></a><a class="code" href="structAVFrame.html#aef11fd783ad17b6841af82efa07c859e">00362</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#aef11fd783ad17b6841af82efa07c859e" title="When decoding, this signals how much the picture must be delayed.">repeat_pict</a>;
<a name="l00363"></a>00363 <span class="comment"></span>
<a name="l00364"></a>00364 <span class="comment"> /**</span>
<a name="l00365"></a>00365 <span class="comment"> * The content of the picture is interlaced.</span>
<a name="l00366"></a>00366 <span class="comment"> */</span>
<a name="l00367"></a><a class="code" href="structAVFrame.html#a7f761518da738c704676c6a5f08eeb8e">00367</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a7f761518da738c704676c6a5f08eeb8e" title="The content of the picture is interlaced.">interlaced_frame</a>;
<a name="l00368"></a>00368 <span class="comment"></span>
<a name="l00369"></a>00369 <span class="comment"> /**</span>
<a name="l00370"></a>00370 <span class="comment"> * If the content is interlaced, is top field displayed first.</span>
<a name="l00371"></a>00371 <span class="comment"> */</span>
<a name="l00372"></a><a class="code" href="structAVFrame.html#a6f3ee0596312c90a2ef2ad160c991188">00372</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a6f3ee0596312c90a2ef2ad160c991188" title="If the content is interlaced, is top field displayed first.">top_field_first</a>;
<a name="l00373"></a>00373 <span class="comment"></span>
<a name="l00374"></a>00374 <span class="comment"> /**</span>
<a name="l00375"></a>00375 <span class="comment"> * Tell user application that palette has changed from previous frame.</span>
<a name="l00376"></a>00376 <span class="comment"> */</span>
<a name="l00377"></a><a class="code" href="structAVFrame.html#a6144be38de30e80de331f435e61f5f4c">00377</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a6144be38de30e80de331f435e61f5f4c" title="Tell user application that palette has changed from previous frame.">palette_has_changed</a>;
<a name="l00378"></a>00378
<a name="l00379"></a>00379 <span class="preprocessor">#if FF_API_AVFRAME_LAVC</span>
<a name="l00380"></a>00380 <span class="preprocessor"></span> <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00381"></a>00381 <span class="keywordtype">int</span> buffer_hints;
<a name="l00382"></a>00382 <span class="comment"></span>
<a name="l00383"></a>00383 <span class="comment"> /**</span>
<a name="l00384"></a>00384 <span class="comment"> * Pan scan.</span>
<a name="l00385"></a>00385 <span class="comment"> */</span>
<a name="l00386"></a>00386 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00387"></a>00387 <span class="keyword">struct </span><a class="code" href="structAVPanScan.html" title="Pan Scan area.">AVPanScan</a> *pan_scan;
<a name="l00388"></a>00388 <span class="preprocessor">#endif</span>
<a name="l00389"></a>00389 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00390"></a>00390 <span class="comment"> /**</span>
<a name="l00391"></a>00391 <span class="comment"> * reordered opaque 64bit (generally an integer or a double precision float</span>
<a name="l00392"></a>00392 <span class="comment"> * PTS but can be anything).</span>
<a name="l00393"></a>00393 <span class="comment"> * The user sets AVCodecContext.reordered_opaque to represent the input at</span>
<a name="l00394"></a>00394 <span class="comment"> * that time,</span>
<a name="l00395"></a>00395 <span class="comment"> * the decoder reorders values as needed and sets AVFrame.reordered_opaque</span>
<a name="l00396"></a>00396 <span class="comment"> * to exactly one of the values provided by the user through AVCodecContext.reordered_opaque</span>
<a name="l00397"></a>00397 <span class="comment"> * @deprecated in favor of pkt_pts</span>
<a name="l00398"></a>00398 <span class="comment"> */</span>
<a name="l00399"></a><a class="code" href="structAVFrame.html#ab54a78c51318c8c678e545b1f3d6fddd">00399</a> int64_t <a class="code" href="structAVFrame.html#ab54a78c51318c8c678e545b1f3d6fddd" title="reordered opaque 64bit (generally an integer or a double precision float PTS but can be anything)...">reordered_opaque</a>;
<a name="l00400"></a>00400
<a name="l00401"></a>00401 <span class="preprocessor">#if FF_API_AVFRAME_LAVC</span>
<a name="l00402"></a>00402 <span class="preprocessor"></span><span class="comment"> /**</span>
<a name="l00403"></a>00403 <span class="comment"> * @deprecated this field is unused</span>
<a name="l00404"></a>00404 <span class="comment"> */</span>
<a name="l00405"></a>00405 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a> <span class="keywordtype">void</span> *hwaccel_picture_private;
<a name="l00406"></a>00406
<a name="l00407"></a>00407 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00408"></a>00408 <span class="keyword">struct </span><a class="code" href="structAVCodecContext.html" title="main external API structure.">AVCodecContext</a> *owner;
<a name="l00409"></a>00409 <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00410"></a>00410 <span class="keywordtype">void</span> *<a class="code" href="structAVCodecContext.html#aeed57307d47f36a39905f206eee8dd96">thread_opaque</a>;
<a name="l00411"></a>00411 <span class="comment"></span>
<a name="l00412"></a>00412 <span class="comment"> /**</span>
<a name="l00413"></a>00413 <span class="comment"> * log2 of the size of the block which a single vector in motion_val represents:</span>
<a name="l00414"></a>00414 <span class="comment"> * (4->16x16, 3->8x8, 2-> 4x4, 1-> 2x2)</span>
<a name="l00415"></a>00415 <span class="comment"> */</span>
<a name="l00416"></a>00416 uint8_t motion_subsample_log2;
<a name="l00417"></a>00417 <span class="preprocessor">#endif</span>
<a name="l00418"></a>00418 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00419"></a>00419 <span class="comment"> /**</span>
<a name="l00420"></a>00420 <span class="comment"> * Sample rate of the audio data.</span>
<a name="l00421"></a>00421 <span class="comment"> */</span>
<a name="l00422"></a><a class="code" href="structAVFrame.html#ac85daa1316e1f47e78da0ca19b7c60e6">00422</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#ac85daa1316e1f47e78da0ca19b7c60e6" title="Sample rate of the audio data.">sample_rate</a>;
<a name="l00423"></a>00423 <span class="comment"></span>
<a name="l00424"></a>00424 <span class="comment"> /**</span>
<a name="l00425"></a>00425 <span class="comment"> * Channel layout of the audio data.</span>
<a name="l00426"></a>00426 <span class="comment"> */</span>
<a name="l00427"></a><a class="code" href="structAVFrame.html#a5f343e0325e3e9d9ed20e34c9e156aef">00427</a> uint64_t <a class="code" href="structAVFrame.html#a5f343e0325e3e9d9ed20e34c9e156aef" title="Channel layout of the audio data.">channel_layout</a>;
<a name="l00428"></a>00428 <span class="comment"></span>
<a name="l00429"></a>00429 <span class="comment"> /**</span>
<a name="l00430"></a>00430 <span class="comment"> * AVBuffer references backing the data for this frame. If all elements of</span>
<a name="l00431"></a>00431 <span class="comment"> * this array are NULL, then this frame is not reference counted. This array</span>
<a name="l00432"></a>00432 <span class="comment"> * must be filled contiguously -- if buf[i] is non-NULL then buf[j] must</span>
<a name="l00433"></a>00433 <span class="comment"> * also be non-NULL for all j < i.</span>
<a name="l00434"></a>00434 <span class="comment"> *</span>
<a name="l00435"></a>00435 <span class="comment"> * There may be at most one AVBuffer per data plane, so for video this array</span>
<a name="l00436"></a>00436 <span class="comment"> * always contains all the references. For planar audio with more than</span>
<a name="l00437"></a>00437 <span class="comment"> * AV_NUM_DATA_POINTERS channels, there may be more buffers than can fit in</span>
<a name="l00438"></a>00438 <span class="comment"> * this array. Then the extra AVBufferRef pointers are stored in the</span>
<a name="l00439"></a>00439 <span class="comment"> * extended_buf array.</span>
<a name="l00440"></a>00440 <span class="comment"> */</span>
<a name="l00441"></a><a class="code" href="structAVFrame.html#a4a64d05cc676bfa8e18bf22d16c8a51f">00441</a> <a class="code" href="structAVBufferRef.html" title="A reference to a data buffer.">AVBufferRef</a> *<a class="code" href="structAVFrame.html#a4a64d05cc676bfa8e18bf22d16c8a51f" title="AVBuffer references backing the data for this frame.">buf</a>[<a class="code" href="frame_8h.html#add80189702cf0f5ea82718576fb43201">AV_NUM_DATA_POINTERS</a>];
<a name="l00442"></a>00442 <span class="comment"></span>
<a name="l00443"></a>00443 <span class="comment"> /**</span>
<a name="l00444"></a>00444 <span class="comment"> * For planar audio which requires more than AV_NUM_DATA_POINTERS</span>
<a name="l00445"></a>00445 <span class="comment"> * AVBufferRef pointers, this array will hold all the references which</span>
<a name="l00446"></a>00446 <span class="comment"> * cannot fit into AVFrame.buf.</span>
<a name="l00447"></a>00447 <span class="comment"> *</span>
<a name="l00448"></a>00448 <span class="comment"> * Note that this is different from AVFrame.extended_data, which always</span>
<a name="l00449"></a>00449 <span class="comment"> * contains all the pointers. This array only contains the extra pointers,</span>
<a name="l00450"></a>00450 <span class="comment"> * which cannot fit into AVFrame.buf.</span>
<a name="l00451"></a>00451 <span class="comment"> *</span>
<a name="l00452"></a>00452 <span class="comment"> * This array is always allocated using av_malloc() by whoever constructs</span>
<a name="l00453"></a>00453 <span class="comment"> * the frame. It is freed in av_frame_unref().</span>
<a name="l00454"></a>00454 <span class="comment"> */</span>
<a name="l00455"></a><a class="code" href="structAVFrame.html#a254a144d113ceedc003ec1547cc5bd54">00455</a> <a class="code" href="structAVBufferRef.html" title="A reference to a data buffer.">AVBufferRef</a> **<a class="code" href="structAVFrame.html#a254a144d113ceedc003ec1547cc5bd54" title="For planar audio which requires more than AV_NUM_DATA_POINTERS AVBufferRef pointers, this array will hold all the references which cannot fit into AVFrame.buf.">extended_buf</a>;<span class="comment"></span>
<a name="l00456"></a>00456 <span class="comment"> /**</span>
<a name="l00457"></a>00457 <span class="comment"> * Number of elements in extended_buf.</span>
<a name="l00458"></a>00458 <span class="comment"> */</span>
<a name="l00459"></a><a class="code" href="structAVFrame.html#aa2dc17f4f816018b0782e1386bdbeeb1">00459</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#aa2dc17f4f816018b0782e1386bdbeeb1" title="Number of elements in extended_buf.">nb_extended_buf</a>;
<a name="l00460"></a>00460
<a name="l00461"></a><a class="code" href="structAVFrame.html#a44d40e03fe22a0511c9157dab22143ee">00461</a> <a class="code" href="structAVFrameSideData.html" title="Structure to hold side data for an AVFrame.">AVFrameSideData</a> **<a class="code" href="structAVFrame.html#a44d40e03fe22a0511c9157dab22143ee">side_data</a>;
<a name="l00462"></a><a class="code" href="structAVFrame.html#a9061ffbfdbdfec29f2dbfc252c5569a7">00462</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a9061ffbfdbdfec29f2dbfc252c5569a7">nb_side_data</a>;
<a name="l00463"></a>00463 <span class="comment"></span>
<a name="l00464"></a>00464 <span class="comment">/**</span>
<a name="l00465"></a>00465 <span class="comment"> * @defgroup lavu_frame_flags AV_FRAME_FLAGS</span>
<a name="l00466"></a>00466 <span class="comment"> * Flags describing additional frame properties.</span>
<a name="l00467"></a>00467 <span class="comment"> *</span>
<a name="l00468"></a>00468 <span class="comment"> * @{</span>
<a name="l00469"></a>00469 <span class="comment"> */</span>
<a name="l00470"></a>00470 <span class="comment"></span>
<a name="l00471"></a>00471 <span class="comment">/**</span>
<a name="l00472"></a>00472 <span class="comment"> * The frame data may be corrupted, e.g. due to decoding errors.</span>
<a name="l00473"></a>00473 <span class="comment"> */</span>
<a name="l00474"></a><a class="code" href="group__lavu__frame__flags.html#gadddbce4ec0cc2ad4298cf6f266f97f6a">00474</a> <span class="preprocessor">#define AV_FRAME_FLAG_CORRUPT (1 << 0)</span>
<a name="l00475"></a>00475 <span class="preprocessor"></span><span class="comment">/**</span>
<a name="l00476"></a>00476 <span class="comment"> * @}</span>
<a name="l00477"></a>00477 <span class="comment"> */</span>
<a name="l00478"></a>00478 <span class="comment"></span>
<a name="l00479"></a>00479 <span class="comment"> /**</span>
<a name="l00480"></a>00480 <span class="comment"> * Frame flags, a combination of @ref lavu_frame_flags</span>
<a name="l00481"></a>00481 <span class="comment"> */</span>
<a name="l00482"></a><a class="code" href="structAVFrame.html#a49020cc320b8fb1f5449167b6c97515b">00482</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a49020cc320b8fb1f5449167b6c97515b" title="Frame flags, a combination of AV_FRAME_FLAGS.">flags</a>;
<a name="l00483"></a>00483 <span class="comment"></span>
<a name="l00484"></a>00484 <span class="comment"> /**</span>
<a name="l00485"></a>00485 <span class="comment"> * MPEG vs JPEG YUV range.</span>
<a name="l00486"></a>00486 <span class="comment"> * It must be accessed using av_frame_get_color_range() and</span>
<a name="l00487"></a>00487 <span class="comment"> * av_frame_set_color_range().</span>
<a name="l00488"></a>00488 <span class="comment"> * - encoding: Set by user</span>
<a name="l00489"></a>00489 <span class="comment"> * - decoding: Set by libavcodec</span>
<a name="l00490"></a>00490 <span class="comment"> */</span>
<a name="l00491"></a><a class="code" href="structAVFrame.html#a853afbad220bbc58549b4860732a3aa5">00491</a> <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#a3da0bf691418bc22c4bcbe6583ad589a" title="MPEG vs JPEG YUV range.">AVColorRange</a> <a class="code" href="structAVFrame.html#a853afbad220bbc58549b4860732a3aa5" title="MPEG vs JPEG YUV range.">color_range</a>;
<a name="l00492"></a>00492
<a name="l00493"></a><a class="code" href="structAVFrame.html#a59a3f830494f2ed1133103a1bc9481e7">00493</a> <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#ad384ee5a840bafd73daef08e6d9cafe7" title="Chromaticity coordinates of the source primaries.">AVColorPrimaries</a> <a class="code" href="structAVFrame.html#a59a3f830494f2ed1133103a1bc9481e7">color_primaries</a>;
<a name="l00494"></a>00494
<a name="l00495"></a><a class="code" href="structAVFrame.html#ab09abb126e3922bc1d010cf044087939">00495</a> <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#ad4791ea14975f098b649db7fcd731ce6" title="Color Transfer Characteristic.">AVColorTransferCharacteristic</a> <a class="code" href="structAVFrame.html#ab09abb126e3922bc1d010cf044087939">color_trc</a>;
<a name="l00496"></a>00496 <span class="comment"></span>
<a name="l00497"></a>00497 <span class="comment"> /**</span>
<a name="l00498"></a>00498 <span class="comment"> * YUV colorspace type.</span>
<a name="l00499"></a>00499 <span class="comment"> * It must be accessed using av_frame_get_colorspace() and</span>
<a name="l00500"></a>00500 <span class="comment"> * av_frame_set_colorspace().</span>
<a name="l00501"></a>00501 <span class="comment"> * - encoding: Set by user</span>
<a name="l00502"></a>00502 <span class="comment"> * - decoding: Set by libavcodec</span>
<a name="l00503"></a>00503 <span class="comment"> */</span>
<a name="l00504"></a><a class="code" href="structAVFrame.html#a9262c231f1f64869439b4fe587fe1710">00504</a> <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#aff71a069509a1ad3ff54d53a1c894c85" title="YUV colorspace type.">AVColorSpace</a> <a class="code" href="structAVFrame.html#a9262c231f1f64869439b4fe587fe1710" title="YUV colorspace type.">colorspace</a>;
<a name="l00505"></a>00505
<a name="l00506"></a><a class="code" href="structAVFrame.html#a1d15617172d8123a66bdcf8d4d826ee2">00506</a> <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#a1f86ed1b6a420faccacf77c98db6c1ff" title="Location of chroma samples.">AVChromaLocation</a> <a class="code" href="structAVFrame.html#a1d15617172d8123a66bdcf8d4d826ee2">chroma_location</a>;
<a name="l00507"></a>00507 <span class="comment"></span>
<a name="l00508"></a>00508 <span class="comment"> /**</span>
<a name="l00509"></a>00509 <span class="comment"> * frame timestamp estimated using various heuristics, in stream time base</span>
<a name="l00510"></a>00510 <span class="comment"> * Code outside libavcodec should access this field using:</span>
<a name="l00511"></a>00511 <span class="comment"> * av_frame_get_best_effort_timestamp(frame)</span>
<a name="l00512"></a>00512 <span class="comment"> * - encoding: unused</span>
<a name="l00513"></a>00513 <span class="comment"> * - decoding: set by libavcodec, read by user.</span>
<a name="l00514"></a>00514 <span class="comment"> */</span>
<a name="l00515"></a><a class="code" href="structAVFrame.html#a0943e85eb624c2191490862ececd319d">00515</a> int64_t <a class="code" href="structAVFrame.html#a0943e85eb624c2191490862ececd319d" title="frame timestamp estimated using various heuristics, in stream time base Code outside libavcodec shoul...">best_effort_timestamp</a>;
<a name="l00516"></a>00516 <span class="comment"></span>
<a name="l00517"></a>00517 <span class="comment"> /**</span>
<a name="l00518"></a>00518 <span class="comment"> * reordered pos from the last AVPacket that has been input into the decoder</span>
<a name="l00519"></a>00519 <span class="comment"> * Code outside libavcodec should access this field using:</span>
<a name="l00520"></a>00520 <span class="comment"> * av_frame_get_pkt_pos(frame)</span>
<a name="l00521"></a>00521 <span class="comment"> * - encoding: unused</span>
<a name="l00522"></a>00522 <span class="comment"> * - decoding: Read by user.</span>
<a name="l00523"></a>00523 <span class="comment"> */</span>
<a name="l00524"></a><a class="code" href="structAVFrame.html#a3bc83474709406b511c4f3498182d18a">00524</a> int64_t <a class="code" href="structAVFrame.html#a3bc83474709406b511c4f3498182d18a" title="reordered pos from the last AVPacket that has been input into the decoder Code outside libavcodec sho...">pkt_pos</a>;
<a name="l00525"></a>00525 <span class="comment"></span>
<a name="l00526"></a>00526 <span class="comment"> /**</span>
<a name="l00527"></a>00527 <span class="comment"> * duration of the corresponding packet, expressed in</span>
<a name="l00528"></a>00528 <span class="comment"> * AVStream->time_base units, 0 if unknown.</span>
<a name="l00529"></a>00529 <span class="comment"> * Code outside libavcodec should access this field using:</span>
<a name="l00530"></a>00530 <span class="comment"> * av_frame_get_pkt_duration(frame)</span>
<a name="l00531"></a>00531 <span class="comment"> * - encoding: unused</span>
<a name="l00532"></a>00532 <span class="comment"> * - decoding: Read by user.</span>
<a name="l00533"></a>00533 <span class="comment"> */</span>
<a name="l00534"></a><a class="code" href="structAVFrame.html#a385c44d7cafe80cad82fe46e25cab221">00534</a> int64_t <a class="code" href="structAVFrame.html#a385c44d7cafe80cad82fe46e25cab221" title="duration of the corresponding packet, expressed in AVStream->time_base units, 0 if unknown...">pkt_duration</a>;
<a name="l00535"></a>00535 <span class="comment"></span>
<a name="l00536"></a>00536 <span class="comment"> /**</span>
<a name="l00537"></a>00537 <span class="comment"> * metadata.</span>
<a name="l00538"></a>00538 <span class="comment"> * Code outside libavcodec should access this field using:</span>
<a name="l00539"></a>00539 <span class="comment"> * av_frame_get_metadata(frame)</span>
<a name="l00540"></a>00540 <span class="comment"> * - encoding: Set by user.</span>
<a name="l00541"></a>00541 <span class="comment"> * - decoding: Set by libavcodec.</span>
<a name="l00542"></a>00542 <span class="comment"> */</span>
<a name="l00543"></a><a class="code" href="structAVFrame.html#a5bde87fd101f66d6263bb451056dba13">00543</a> <a class="code" href="group__lavu__dict.html#ga1d7cc0833bee918994a600556410315f">AVDictionary</a> *<a class="code" href="structAVFrame.html#a5bde87fd101f66d6263bb451056dba13" title="metadata.">metadata</a>;
<a name="l00544"></a>00544 <span class="comment"></span>
<a name="l00545"></a>00545 <span class="comment"> /**</span>
<a name="l00546"></a>00546 <span class="comment"> * decode error flags of the frame, set to a combination of</span>
<a name="l00547"></a>00547 <span class="comment"> * FF_DECODE_ERROR_xxx flags if the decoder produced a frame, but there</span>
<a name="l00548"></a>00548 <span class="comment"> * were errors during the decoding.</span>
<a name="l00549"></a>00549 <span class="comment"> * Code outside libavcodec should access this field using:</span>
<a name="l00550"></a>00550 <span class="comment"> * av_frame_get_decode_error_flags(frame)</span>
<a name="l00551"></a>00551 <span class="comment"> * - encoding: unused</span>
<a name="l00552"></a>00552 <span class="comment"> * - decoding: set by libavcodec, read by user.</span>
<a name="l00553"></a>00553 <span class="comment"> */</span>
<a name="l00554"></a><a class="code" href="structAVFrame.html#a3dd46fd353a405f6e9b91c11d9c5b736">00554</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a3dd46fd353a405f6e9b91c11d9c5b736" title="decode error flags of the frame, set to a combination of FF_DECODE_ERROR_xxx flags if the decoder pro...">decode_error_flags</a>;
<a name="l00555"></a><a class="code" href="frame_8h.html#a0fe215657b893e361ba4c42c8896c0ac">00555</a> <span class="preprocessor">#define FF_DECODE_ERROR_INVALID_BITSTREAM 1</span>
<a name="l00556"></a><a class="code" href="frame_8h.html#a995eb38eb9ab4e9897422d06aeea4cfd">00556</a> <span class="preprocessor"></span><span class="preprocessor">#define FF_DECODE_ERROR_MISSING_REFERENCE 2</span>
<a name="l00557"></a>00557 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00558"></a>00558 <span class="comment"> /**</span>
<a name="l00559"></a>00559 <span class="comment"> * number of audio channels, only used for audio.</span>
<a name="l00560"></a>00560 <span class="comment"> * Code outside libavcodec should access this field using:</span>
<a name="l00561"></a>00561 <span class="comment"> * av_frame_get_channels(frame)</span>
<a name="l00562"></a>00562 <span class="comment"> * - encoding: unused</span>
<a name="l00563"></a>00563 <span class="comment"> * - decoding: Read by user.</span>
<a name="l00564"></a>00564 <span class="comment"> */</span>
<a name="l00565"></a><a class="code" href="structAVFrame.html#a58c663568a99c1477c163e64858b3fef">00565</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a58c663568a99c1477c163e64858b3fef" title="number of audio channels, only used for audio.">channels</a>;
<a name="l00566"></a>00566 <span class="comment"></span>
<a name="l00567"></a>00567 <span class="comment"> /**</span>
<a name="l00568"></a>00568 <span class="comment"> * size of the corresponding packet containing the compressed</span>
<a name="l00569"></a>00569 <span class="comment"> * frame. It must be accessed using av_frame_get_pkt_size() and</span>
<a name="l00570"></a>00570 <span class="comment"> * av_frame_set_pkt_size().</span>
<a name="l00571"></a>00571 <span class="comment"> * It is set to a negative value if unknown.</span>
<a name="l00572"></a>00572 <span class="comment"> * - encoding: unused</span>
<a name="l00573"></a>00573 <span class="comment"> * - decoding: set by libavcodec, read by user.</span>
<a name="l00574"></a>00574 <span class="comment"> */</span>
<a name="l00575"></a><a class="code" href="structAVFrame.html#a3cc73a3345ec1ff8e473ab6049c607e7">00575</a> <span class="keywordtype">int</span> <a class="code" href="structAVFrame.html#a3cc73a3345ec1ff8e473ab6049c607e7" title="size of the corresponding packet containing the compressed frame.">pkt_size</a>;
<a name="l00576"></a>00576 <span class="comment"></span>
<a name="l00577"></a>00577 <span class="comment"> /**</span>
<a name="l00578"></a>00578 <span class="comment"> * Not to be accessed directly from outside libavutil</span>
<a name="l00579"></a>00579 <span class="comment"> */</span>
<a name="l00580"></a><a class="code" href="structAVFrame.html#ae7899bbbb38ef9da9e99f36fa69939cc">00580</a> <a class="code" href="structAVBufferRef.html" title="A reference to a data buffer.">AVBufferRef</a> *<a class="code" href="structAVFrame.html#ae7899bbbb38ef9da9e99f36fa69939cc" title="Not to be accessed directly from outside libavutil.">qp_table_buf</a>;
<a name="l00581"></a>00581 } <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a>;
<a name="l00582"></a>00582 <span class="comment"></span>
<a name="l00583"></a>00583 <span class="comment">/**</span>
<a name="l00584"></a>00584 <span class="comment"> * Accessors for some AVFrame fields.</span>
<a name="l00585"></a>00585 <span class="comment"> * The position of these field in the structure is not part of the ABI,</span>
<a name="l00586"></a>00586 <span class="comment"> * they should not be accessed directly outside libavcodec.</span>
<a name="l00587"></a>00587 <span class="comment"> */</span>
<a name="l00588"></a>00588 int64_t <a class="code" href="group__lavu__frame.html#gacb9d9082c10e625e51a68caceabd4458" title="Accessors for some AVFrame fields.">av_frame_get_best_effort_timestamp</a>(<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00589"></a>00589 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga8c4a32b4b0314432050a4bbe29171070">av_frame_set_best_effort_timestamp</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, int64_t val);
<a name="l00590"></a>00590 int64_t <a class="code" href="group__lavu__frame.html#ga877a6a0703b74e7e27f196313e160d60">av_frame_get_pkt_duration</a> (<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00591"></a>00591 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#gaebd80bc8675289737641235473bdc19d">av_frame_set_pkt_duration</a> (<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, int64_t val);
<a name="l00592"></a>00592 int64_t <a class="code" href="group__lavu__frame.html#ga2f09c3e454ca78320a8f3be17d0473c1">av_frame_get_pkt_pos</a> (<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00593"></a>00593 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga6c137c59cc65afdf2dea1fef903a69e1">av_frame_set_pkt_pos</a> (<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, int64_t val);
<a name="l00594"></a>00594 int64_t <a class="code" href="group__lavu__frame.html#gacefc94a29e6741998e408363c8531909">av_frame_get_channel_layout</a> (<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00595"></a>00595 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#gad695986e6e97256de64bb49b0c11a882">av_frame_set_channel_layout</a> (<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, int64_t val);
<a name="l00596"></a>00596 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#gac252f01dc52f96b5faf9466ecbe5c150">av_frame_get_channels</a> (<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00597"></a>00597 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#gae499cd896ae97d2ef97fb4b9d76535c3">av_frame_set_channels</a> (<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keywordtype">int</span> val);
<a name="l00598"></a>00598 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#ga3a7aec7d00a18357af066da81b17cfcd">av_frame_get_sample_rate</a> (<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00599"></a>00599 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga2bc09011d642d2f7b60a683d2daf8cd4">av_frame_set_sample_rate</a> (<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keywordtype">int</span> val);
<a name="l00600"></a>00600 <a class="code" href="group__lavu__dict.html#ga1d7cc0833bee918994a600556410315f">AVDictionary</a> *<a class="code" href="group__lavu__frame.html#ga4a42eca8e01c59b2cef5507c959e663b">av_frame_get_metadata</a> (<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00601"></a>00601 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#gace774db7b47a1c708a23f4f24fe85a8d">av_frame_set_metadata</a> (<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <a class="code" href="group__lavu__dict.html#ga1d7cc0833bee918994a600556410315f">AVDictionary</a> *val);
<a name="l00602"></a>00602 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#gac72c0e153987ef0e3febc26452bb3861">av_frame_get_decode_error_flags</a> (<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00603"></a>00603 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga0060b8c9949b28790013039e70d830f2">av_frame_set_decode_error_flags</a> (<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keywordtype">int</span> val);
<a name="l00604"></a>00604 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#ga03e2090721bb5d66f292090c7e7e2524">av_frame_get_pkt_size</a>(<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00605"></a>00605 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga12742a052df91eeb22a0062cf3da0504">av_frame_set_pkt_size</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keywordtype">int</span> val);
<a name="l00606"></a>00606 <a class="code" href="group__lavu__dict.html#ga1d7cc0833bee918994a600556410315f">AVDictionary</a> **<a class="code" href="group__lavu__frame.html#gae3797588a2664e4d1cc137b7aaf67b1c">avpriv_frame_get_metadatap</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00607"></a>00607 int8_t *<a class="code" href="group__lavu__frame.html#ga3072a9eafc1dba9df289a9aac2dcb083">av_frame_get_qp_table</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *f, <span class="keywordtype">int</span> *stride, <span class="keywordtype">int</span> *type);
<a name="l00608"></a>00608 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#ga4021d1fbc36d31bcaa986aa6217624c5">av_frame_set_qp_table</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *f, <a class="code" href="structAVBufferRef.html" title="A reference to a data buffer.">AVBufferRef</a> *buf, <span class="keywordtype">int</span> stride, <span class="keywordtype">int</span> type);
<a name="l00609"></a>00609 <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#aff71a069509a1ad3ff54d53a1c894c85" title="YUV colorspace type.">AVColorSpace</a> <a class="code" href="group__lavu__frame.html#ga03224acf06cbd666f3878a2c35b3f704">av_frame_get_colorspace</a>(<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00610"></a>00610 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga43e7dd7b76a6d76811e7f33557fd48e6">av_frame_set_colorspace</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#aff71a069509a1ad3ff54d53a1c894c85" title="YUV colorspace type.">AVColorSpace</a> val);
<a name="l00611"></a>00611 <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#a3da0bf691418bc22c4bcbe6583ad589a" title="MPEG vs JPEG YUV range.">AVColorRange</a> <a class="code" href="group__lavu__frame.html#ga829e2f3cb3edcc04d76fa9eac37392cd">av_frame_get_color_range</a>(<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00612"></a>00612 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga862e9789b46539b3edcf0ae4cb106f95">av_frame_set_color_range</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#a3da0bf691418bc22c4bcbe6583ad589a" title="MPEG vs JPEG YUV range.">AVColorRange</a> val);
<a name="l00613"></a>00613 <span class="comment"></span>
<a name="l00614"></a>00614 <span class="comment">/**</span>
<a name="l00615"></a>00615 <span class="comment"> * Get the name of a colorspace.</span>
<a name="l00616"></a>00616 <span class="comment"> * @return a static string identifying the colorspace; can be NULL.</span>
<a name="l00617"></a>00617 <span class="comment"> */</span>
<a name="l00618"></a>00618 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__lavu__frame.html#gaf0e077dd848dd61ee4ac89ef4d3547cc" title="Get the name of a colorspace.">av_get_colorspace_name</a>(<span class="keyword">enum</span> <a class="code" href="pixfmt_8h.html#aff71a069509a1ad3ff54d53a1c894c85" title="YUV colorspace type.">AVColorSpace</a> val);
<a name="l00619"></a>00619 <span class="comment"></span>
<a name="l00620"></a>00620 <span class="comment">/**</span>
<a name="l00621"></a>00621 <span class="comment"> * Allocate an AVFrame and set its fields to default values. The resulting</span>
<a name="l00622"></a>00622 <span class="comment"> * struct must be freed using av_frame_free().</span>
<a name="l00623"></a>00623 <span class="comment"> *</span>
<a name="l00624"></a>00624 <span class="comment"> * @return An AVFrame filled with default values or NULL on failure.</span>
<a name="l00625"></a>00625 <span class="comment"> *</span>
<a name="l00626"></a>00626 <span class="comment"> * @note this only allocates the AVFrame itself, not the data buffers. Those</span>
<a name="l00627"></a>00627 <span class="comment"> * must be allocated through other means, e.g. with av_frame_get_buffer() or</span>
<a name="l00628"></a>00628 <span class="comment"> * manually.</span>
<a name="l00629"></a>00629 <span class="comment"> */</span>
<a name="l00630"></a>00630 <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="group__lavu__frame.html#gac700017c5270c79c1e1befdeeb008b2f" title="Allocate an AVFrame and set its fields to default values.">av_frame_alloc</a>(<span class="keywordtype">void</span>);
<a name="l00631"></a>00631 <span class="comment"></span>
<a name="l00632"></a>00632 <span class="comment">/**</span>
<a name="l00633"></a>00633 <span class="comment"> * Free the frame and any dynamically allocated objects in it,</span>
<a name="l00634"></a>00634 <span class="comment"> * e.g. extended_data. If the frame is reference counted, it will be</span>
<a name="l00635"></a>00635 <span class="comment"> * unreferenced first.</span>
<a name="l00636"></a>00636 <span class="comment"> *</span>
<a name="l00637"></a>00637 <span class="comment"> * @param frame frame to be freed. The pointer will be set to NULL.</span>
<a name="l00638"></a>00638 <span class="comment"> */</span>
<a name="l00639"></a>00639 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga979d73f3228814aee56aeca0636e37cc" title="Free the frame and any dynamically allocated objects in it, e.g.">av_frame_free</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> **<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00640"></a>00640 <span class="comment"></span>
<a name="l00641"></a>00641 <span class="comment">/**</span>
<a name="l00642"></a>00642 <span class="comment"> * Set up a new reference to the data described by the source frame.</span>
<a name="l00643"></a>00643 <span class="comment"> *</span>
<a name="l00644"></a>00644 <span class="comment"> * Copy frame properties from src to dst and create a new reference for each</span>
<a name="l00645"></a>00645 <span class="comment"> * AVBufferRef from src.</span>
<a name="l00646"></a>00646 <span class="comment"> *</span>
<a name="l00647"></a>00647 <span class="comment"> * If src is not reference counted, new buffers are allocated and the data is</span>
<a name="l00648"></a>00648 <span class="comment"> * copied.</span>
<a name="l00649"></a>00649 <span class="comment"> *</span>
<a name="l00650"></a>00650 <span class="comment"> * @return 0 on success, a negative AVERROR on error</span>
<a name="l00651"></a>00651 <span class="comment"> */</span>
<a name="l00652"></a>00652 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#ga88b0ecbc4eb3453eef3fbefa3bddeb7c" title="Set up a new reference to the data described by the source frame.">av_frame_ref</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *dst, <span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *src);
<a name="l00653"></a>00653 <span class="comment"></span>
<a name="l00654"></a>00654 <span class="comment">/**</span>
<a name="l00655"></a>00655 <span class="comment"> * Create a new frame that references the same data as src.</span>
<a name="l00656"></a>00656 <span class="comment"> *</span>
<a name="l00657"></a>00657 <span class="comment"> * This is a shortcut for av_frame_alloc()+av_frame_ref().</span>
<a name="l00658"></a>00658 <span class="comment"> *</span>
<a name="l00659"></a>00659 <span class="comment"> * @return newly created AVFrame on success, NULL on error.</span>
<a name="l00660"></a>00660 <span class="comment"> */</span>
<a name="l00661"></a>00661 <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="group__lavu__frame.html#ga46d6d32f6482a3e9c19203db5877105b" title="Create a new frame that references the same data as src.">av_frame_clone</a>(<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *src);
<a name="l00662"></a>00662 <span class="comment"></span>
<a name="l00663"></a>00663 <span class="comment">/**</span>
<a name="l00664"></a>00664 <span class="comment"> * Unreference all the buffers referenced by frame and reset the frame fields.</span>
<a name="l00665"></a>00665 <span class="comment"> */</span>
<a name="l00666"></a>00666 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga0a2b687f9c1c5ed0089b01fd61227108" title="Unreference all the buffers referenced by frame and reset the frame fields.">av_frame_unref</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00667"></a>00667 <span class="comment"></span>
<a name="l00668"></a>00668 <span class="comment">/**</span>
<a name="l00669"></a>00669 <span class="comment"> * Move everything contained in src to dst and reset src.</span>
<a name="l00670"></a>00670 <span class="comment"> */</span>
<a name="l00671"></a>00671 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga709e62bc2917ffd84c5c0f4e1dfc48f7" title="Move everything contained in src to dst and reset src.">av_frame_move_ref</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *dst, <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *src);
<a name="l00672"></a>00672 <span class="comment"></span>
<a name="l00673"></a>00673 <span class="comment">/**</span>
<a name="l00674"></a>00674 <span class="comment"> * Allocate new buffer(s) for audio or video data.</span>
<a name="l00675"></a>00675 <span class="comment"> *</span>
<a name="l00676"></a>00676 <span class="comment"> * The following fields must be set on frame before calling this function:</span>
<a name="l00677"></a>00677 <span class="comment"> * - format (pixel format for video, sample format for audio)</span>
<a name="l00678"></a>00678 <span class="comment"> * - width and height for video</span>
<a name="l00679"></a>00679 <span class="comment"> * - nb_samples and channel_layout for audio</span>
<a name="l00680"></a>00680 <span class="comment"> *</span>
<a name="l00681"></a>00681 <span class="comment"> * This function will fill AVFrame.data and AVFrame.buf arrays and, if</span>
<a name="l00682"></a>00682 <span class="comment"> * necessary, allocate and fill AVFrame.extended_data and AVFrame.extended_buf.</span>
<a name="l00683"></a>00683 <span class="comment"> * For planar formats, one buffer will be allocated for each plane.</span>
<a name="l00684"></a>00684 <span class="comment"> *</span>
<a name="l00685"></a>00685 <span class="comment"> * @param frame frame in which to store the new buffers.</span>
<a name="l00686"></a>00686 <span class="comment"> * @param align required buffer size alignment</span>
<a name="l00687"></a>00687 <span class="comment"> *</span>
<a name="l00688"></a>00688 <span class="comment"> * @return 0 on success, a negative AVERROR on error.</span>
<a name="l00689"></a>00689 <span class="comment"> */</span>
<a name="l00690"></a>00690 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#ga6b1acbfa82c79bf7fd78d868572f0ceb" title="Allocate new buffer(s) for audio or video data.">av_frame_get_buffer</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keywordtype">int</span> align);
<a name="l00691"></a>00691 <span class="comment"></span>
<a name="l00692"></a>00692 <span class="comment">/**</span>
<a name="l00693"></a>00693 <span class="comment"> * Check if the frame data is writable.</span>
<a name="l00694"></a>00694 <span class="comment"> *</span>
<a name="l00695"></a>00695 <span class="comment"> * @return A positive value if the frame data is writable (which is true if and</span>
<a name="l00696"></a>00696 <span class="comment"> * only if each of the underlying buffers has only one reference, namely the one</span>
<a name="l00697"></a>00697 <span class="comment"> * stored in this frame). Return 0 otherwise.</span>
<a name="l00698"></a>00698 <span class="comment"> *</span>
<a name="l00699"></a>00699 <span class="comment"> * If 1 is returned the answer is valid until av_buffer_ref() is called on any</span>
<a name="l00700"></a>00700 <span class="comment"> * of the underlying AVBufferRefs (e.g. through av_frame_ref() or directly).</span>
<a name="l00701"></a>00701 <span class="comment"> *</span>
<a name="l00702"></a>00702 <span class="comment"> * @see av_frame_make_writable(), av_buffer_is_writable()</span>
<a name="l00703"></a>00703 <span class="comment"> */</span>
<a name="l00704"></a>00704 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#ga3ba755bada5c3c8883361ef43fb5fb7a" title="Check if the frame data is writable.">av_frame_is_writable</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00705"></a>00705 <span class="comment"></span>
<a name="l00706"></a>00706 <span class="comment">/**</span>
<a name="l00707"></a>00707 <span class="comment"> * Ensure that the frame data is writable, avoiding data copy if possible.</span>
<a name="l00708"></a>00708 <span class="comment"> *</span>
<a name="l00709"></a>00709 <span class="comment"> * Do nothing if the frame is writable, allocate new buffers and copy the data</span>
<a name="l00710"></a>00710 <span class="comment"> * if it is not.</span>
<a name="l00711"></a>00711 <span class="comment"> *</span>
<a name="l00712"></a>00712 <span class="comment"> * @return 0 on success, a negative AVERROR on error.</span>
<a name="l00713"></a>00713 <span class="comment"> *</span>
<a name="l00714"></a>00714 <span class="comment"> * @see av_frame_is_writable(), av_buffer_is_writable(),</span>
<a name="l00715"></a>00715 <span class="comment"> * av_buffer_make_writable()</span>
<a name="l00716"></a>00716 <span class="comment"> */</span>
<a name="l00717"></a>00717 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#gadd5417c06f5a6b419b0dbd8f0ff363fd" title="Ensure that the frame data is writable, avoiding data copy if possible.">av_frame_make_writable</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>);
<a name="l00718"></a>00718 <span class="comment"></span>
<a name="l00719"></a>00719 <span class="comment">/**</span>
<a name="l00720"></a>00720 <span class="comment"> * Copy the frame data from src to dst.</span>
<a name="l00721"></a>00721 <span class="comment"> *</span>
<a name="l00722"></a>00722 <span class="comment"> * This function does not allocate anything, dst must be already initialized and</span>
<a name="l00723"></a>00723 <span class="comment"> * allocated with the same parameters as src.</span>
<a name="l00724"></a>00724 <span class="comment"> *</span>
<a name="l00725"></a>00725 <span class="comment"> * This function only copies the frame data (i.e. the contents of the data /</span>
<a name="l00726"></a>00726 <span class="comment"> * extended data arrays), not any other properties.</span>
<a name="l00727"></a>00727 <span class="comment"> *</span>
<a name="l00728"></a>00728 <span class="comment"> * @return >= 0 on success, a negative AVERROR on error.</span>
<a name="l00729"></a>00729 <span class="comment"> */</span>
<a name="l00730"></a>00730 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#gaec4e92f6e1e75ffaf76e07586fb0c9ed" title="Copy the frame data from src to dst.">av_frame_copy</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *dst, <span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *src);
<a name="l00731"></a>00731 <span class="comment"></span>
<a name="l00732"></a>00732 <span class="comment">/**</span>
<a name="l00733"></a>00733 <span class="comment"> * Copy only "metadata" fields from src to dst.</span>
<a name="l00734"></a>00734 <span class="comment"> *</span>
<a name="l00735"></a>00735 <span class="comment"> * Metadata for the purpose of this function are those fields that do not affect</span>
<a name="l00736"></a>00736 <span class="comment"> * the data layout in the buffers. E.g. pts, sample rate (for audio) or sample</span>
<a name="l00737"></a>00737 <span class="comment"> * aspect ratio (for video), but not width/height or channel layout.</span>
<a name="l00738"></a>00738 <span class="comment"> * Side data is also copied.</span>
<a name="l00739"></a>00739 <span class="comment"> */</span>
<a name="l00740"></a>00740 <span class="keywordtype">int</span> <a class="code" href="group__lavu__frame.html#gab9b275b114ace0db95c5796bc71f3012" title="Copy only "metadata" fields from src to dst.">av_frame_copy_props</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *dst, <span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *src);
<a name="l00741"></a>00741 <span class="comment"></span>
<a name="l00742"></a>00742 <span class="comment">/**</span>
<a name="l00743"></a>00743 <span class="comment"> * Get the buffer reference a given data plane is stored in.</span>
<a name="l00744"></a>00744 <span class="comment"> *</span>
<a name="l00745"></a>00745 <span class="comment"> * @param plane index of the data plane of interest in frame->extended_data.</span>
<a name="l00746"></a>00746 <span class="comment"> *</span>
<a name="l00747"></a>00747 <span class="comment"> * @return the buffer reference that contains the plane or NULL if the input</span>
<a name="l00748"></a>00748 <span class="comment"> * frame is not valid.</span>
<a name="l00749"></a>00749 <span class="comment"> */</span>
<a name="l00750"></a>00750 <a class="code" href="structAVBufferRef.html" title="A reference to a data buffer.">AVBufferRef</a> *<a class="code" href="group__lavu__frame.html#ga7fb7f99dabe10fa5c7c078f4f5f173c5" title="Get the buffer reference a given data plane is stored in.">av_frame_get_plane_buffer</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keywordtype">int</span> plane);
<a name="l00751"></a>00751 <span class="comment"></span>
<a name="l00752"></a>00752 <span class="comment">/**</span>
<a name="l00753"></a>00753 <span class="comment"> * Add a new side data to a frame.</span>
<a name="l00754"></a>00754 <span class="comment"> *</span>
<a name="l00755"></a>00755 <span class="comment"> * @param frame a frame to which the side data should be added</span>
<a name="l00756"></a>00756 <span class="comment"> * @param type type of the added side data</span>
<a name="l00757"></a>00757 <span class="comment"> * @param size size of the side data</span>
<a name="l00758"></a>00758 <span class="comment"> *</span>
<a name="l00759"></a>00759 <span class="comment"> * @return newly added side data on success, NULL on error</span>
<a name="l00760"></a>00760 <span class="comment"> */</span>
<a name="l00761"></a>00761 <a class="code" href="structAVFrameSideData.html" title="Structure to hold side data for an AVFrame.">AVFrameSideData</a> *<a class="code" href="group__lavu__frame.html#gab4caf9361b00f9b2ab57c222dce3fec4" title="Add a new side data to a frame.">av_frame_new_side_data</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>,
<a name="l00762"></a>00762 <span class="keyword">enum</span> <a class="code" href="group__lavu__frame.html#gae01fa7e427274293aacdf2adc17076bc">AVFrameSideDataType</a> type,
<a name="l00763"></a>00763 <span class="keywordtype">int</span> size);
<a name="l00764"></a>00764 <span class="comment"></span>
<a name="l00765"></a>00765 <span class="comment">/**</span>
<a name="l00766"></a>00766 <span class="comment"> * @return a pointer to the side data of a given type on success, NULL if there</span>
<a name="l00767"></a>00767 <span class="comment"> * is no side data with such type in this frame.</span>
<a name="l00768"></a>00768 <span class="comment"> */</span>
<a name="l00769"></a>00769 <a class="code" href="structAVFrameSideData.html" title="Structure to hold side data for an AVFrame.">AVFrameSideData</a> *<a class="code" href="group__lavu__frame.html#gadec0efb470b1eead6a979333d9deca0c">av_frame_get_side_data</a>(<span class="keyword">const</span> <a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>,
<a name="l00770"></a>00770 <span class="keyword">enum</span> <a class="code" href="group__lavu__frame.html#gae01fa7e427274293aacdf2adc17076bc">AVFrameSideDataType</a> type);
<a name="l00771"></a>00771 <span class="comment"></span>
<a name="l00772"></a>00772 <span class="comment">/**</span>
<a name="l00773"></a>00773 <span class="comment"> * If side data of the supplied type exists in the frame, free it and remove it</span>
<a name="l00774"></a>00774 <span class="comment"> * from the frame.</span>
<a name="l00775"></a>00775 <span class="comment"> */</span>
<a name="l00776"></a>00776 <span class="keywordtype">void</span> <a class="code" href="group__lavu__frame.html#ga132d6c01d0a21e5b48b96cd7c988de91" title="If side data of the supplied type exists in the frame, free it and remove it from the frame...">av_frame_remove_side_data</a>(<a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *<a class="code" href="demuxing__decoding_8c.html#ad7d33d579a8d4241a5e643e39287a209">frame</a>, <span class="keyword">enum</span> <a class="code" href="group__lavu__frame.html#gae01fa7e427274293aacdf2adc17076bc">AVFrameSideDataType</a> type);
<a name="l00777"></a>00777 <span class="comment"></span>
<a name="l00778"></a>00778 <span class="comment">/**</span>
<a name="l00779"></a>00779 <span class="comment"> * @return a string identifying the side data type</span>
<a name="l00780"></a>00780 <span class="comment"> */</span>
<a name="l00781"></a>00781 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__lavu__frame.html#ga5cdb93858965e5afd6591792ffb72d99">av_frame_side_data_name</a>(<span class="keyword">enum</span> <a class="code" href="group__lavu__frame.html#gae01fa7e427274293aacdf2adc17076bc">AVFrameSideDataType</a> type);
<a name="l00782"></a>00782 <span class="comment"></span>
<a name="l00783"></a>00783 <span class="comment">/**</span>
<a name="l00784"></a>00784 <span class="comment"> * @}</span>
<a name="l00785"></a>00785 <span class="comment"> */</span>
<a name="l00786"></a>00786
<a name="l00787"></a>00787 <span class="preprocessor">#endif </span><span class="comment">/* AVUTIL_FRAME_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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </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  <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>