Repository URL to install this package:
|
Version:
8:3.0.2-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"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>FFmpeg: libavcodec/videotoolbox.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<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">3.0.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<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>
<!-- 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>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Pages</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>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_3b1f69f89eda39a44baf4887988d54a7.html">libavcodec</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#define-members">Macros</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">videotoolbox.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Public libavcodec Videotoolbox header.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <stdint.h></code><br/>
<code>#include <VideoToolbox/VideoToolbox.h></code><br/>
<code>#include "<a class="el" href="avcodec_8h_source.html">libavcodec/avcodec.h</a>"</code><br/>
</div>
<p><a href="videotoolbox_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVVideotoolboxContext.html">AVVideotoolboxContext</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">This struct holds all the information that needs to be passed between the caller and libavcodec for initializing Videotoolbox decoding. <a href="structAVVideotoolboxContext.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a63024b9f4f18a0420b1e71b49205d3ca"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="videotoolbox_8h.html#a63024b9f4f18a0420b1e71b49205d3ca">Picture</a>   QuickdrawPicture</td></tr>
<tr class="separator:a63024b9f4f18a0420b1e71b49205d3ca"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aad76884fa38a53154e84e38cd4d9cc67"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structAVVideotoolboxContext.html">AVVideotoolboxContext</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="videotoolbox_8h.html#aad76884fa38a53154e84e38cd4d9cc67">av_videotoolbox_alloc_context</a> (void)</td></tr>
<tr class="memdesc:aad76884fa38a53154e84e38cd4d9cc67"><td class="mdescLeft"> </td><td class="mdescRight">Allocate and initialize a Videotoolbox context. <a href="#aad76884fa38a53154e84e38cd4d9cc67">More...</a><br/></td></tr>
<tr class="separator:aad76884fa38a53154e84e38cd4d9cc67"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7ed4fd0ba05fc0558af8ed526b9350b9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="videotoolbox_8h.html#a7ed4fd0ba05fc0558af8ed526b9350b9">av_videotoolbox_default_init</a> (<a class="el" href="structAVCodecContext.html">AVCodecContext</a> *avctx)</td></tr>
<tr class="memdesc:a7ed4fd0ba05fc0558af8ed526b9350b9"><td class="mdescLeft"> </td><td class="mdescRight">This is a convenience function that creates and sets up the Videotoolbox context using an internal implementation. <a href="#a7ed4fd0ba05fc0558af8ed526b9350b9">More...</a><br/></td></tr>
<tr class="separator:a7ed4fd0ba05fc0558af8ed526b9350b9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8c860120fc0583fa53befdb7fa26a5d8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="videotoolbox_8h.html#a8c860120fc0583fa53befdb7fa26a5d8">av_videotoolbox_default_init2</a> (<a class="el" href="structAVCodecContext.html">AVCodecContext</a> *avctx, <a class="el" href="structAVVideotoolboxContext.html">AVVideotoolboxContext</a> *vtctx)</td></tr>
<tr class="memdesc:a8c860120fc0583fa53befdb7fa26a5d8"><td class="mdescLeft"> </td><td class="mdescRight">This is a convenience function that creates and sets up the Videotoolbox context using an internal implementation. <a href="#a8c860120fc0583fa53befdb7fa26a5d8">More...</a><br/></td></tr>
<tr class="separator:a8c860120fc0583fa53befdb7fa26a5d8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7628aa41b2d82919c2438f106b564167"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="videotoolbox_8h.html#a7628aa41b2d82919c2438f106b564167">av_videotoolbox_default_free</a> (<a class="el" href="structAVCodecContext.html">AVCodecContext</a> *avctx)</td></tr>
<tr class="memdesc:a7628aa41b2d82919c2438f106b564167"><td class="mdescLeft"> </td><td class="mdescRight">This function must be called to free the Videotoolbox context initialized with <a class="el" href="videotoolbox_8h.html#a7ed4fd0ba05fc0558af8ed526b9350b9" title="This is a convenience function that creates and sets up the Videotoolbox context using an internal im...">av_videotoolbox_default_init()</a>. <a href="#a7628aa41b2d82919c2438f106b564167">More...</a><br/></td></tr>
<tr class="separator:a7628aa41b2d82919c2438f106b564167"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Public libavcodec Videotoolbox header. </p>
<p>Definition in file <a class="el" href="videotoolbox_8h_source.html">videotoolbox.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a63024b9f4f18a0420b1e71b49205d3ca"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define Picture   QuickdrawPicture</td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="videotoolbox_8h_source.html#l00034">34</a> of file <a class="el" href="videotoolbox_8h_source.html">videotoolbox.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="aad76884fa38a53154e84e38cd4d9cc67"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structAVVideotoolboxContext.html">AVVideotoolboxContext</a>* av_videotoolbox_alloc_context </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Allocate and initialize a Videotoolbox context. </p>
<p>This function should be called from the get_format() callback when the caller selects the AV_PIX_FMT_VIDETOOLBOX format. The caller must then create the decoder object (using the output callback provided by libavcodec) that will be used for Videotoolbox-accelerated decoding.</p>
<p>When decoding with Videotoolbox is finished, the caller must destroy the decoder object and free the Videotoolbox context using <a class="el" href="group__lavu__mem.html#ga0c9096f498624c525aa2315b8a20c411" title="Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...">av_free()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>the newly allocated context or NULL on failure </dd></dl>
</div>
</div>
<a class="anchor" id="a7ed4fd0ba05fc0558af8ed526b9350b9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int av_videotoolbox_default_init </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structAVCodecContext.html">AVCodecContext</a> * </td>
<td class="paramname"><em>avctx</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>This is a convenience function that creates and sets up the Videotoolbox context using an internal implementation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">avctx</td><td>the corresponding codec context</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>>= 0 on success, a negative AVERROR code on failure </dd></dl>
</div>
</div>
<a class="anchor" id="a8c860120fc0583fa53befdb7fa26a5d8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int av_videotoolbox_default_init2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structAVCodecContext.html">AVCodecContext</a> * </td>
<td class="paramname"><em>avctx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structAVVideotoolboxContext.html">AVVideotoolboxContext</a> * </td>
<td class="paramname"><em>vtctx</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>This is a convenience function that creates and sets up the Videotoolbox context using an internal implementation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">avctx</td><td>the corresponding codec context </td></tr>
<tr><td class="paramname">vtctx</td><td>the Videotoolbox context to use</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>>= 0 on success, a negative AVERROR code on failure </dd></dl>
</div>
</div>
<a class="anchor" id="a7628aa41b2d82919c2438f106b564167"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void av_videotoolbox_default_free </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structAVCodecContext.html">AVCodecContext</a> * </td>
<td class="paramname"><em>avctx</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>This function must be called to free the Videotoolbox context initialized with <a class="el" href="videotoolbox_8h.html#a7ed4fd0ba05fc0558af8ed526b9350b9" title="This is a convenience function that creates and sets up the Videotoolbox context using an internal im...">av_videotoolbox_default_init()</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">avctx</td><td>the corresponding codec context </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<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.8.6
</small></address>
</body>
</html>