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: AVPixFmtDescriptor Struct Reference</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 class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
<li><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="annotated.html"><span>Data Structures</span></a></li>
<li><a href="classes.html"><span>Data Structure Index</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-attribs">Data Fields</a> </div>
<div class="headertitle">
<div class="title">AVPixFmtDescriptor Struct Reference</div> </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="AVPixFmtDescriptor" -->
<p>Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes of an image.
<a href="structAVPixFmtDescriptor.html#details">More...</a></p>
<p><code>#include <<a class="el" href="pixdesc_8h_source.html">pixdesc.h</a>></code></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPixFmtDescriptor.html#a10736c3f1288eb87b23ede3ffdefb435">name</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPixFmtDescriptor.html#ae83de203f97288c9f4070212a5eac5de">nb_components</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The number of components each pixel has, (1-4) <a href="#ae83de203f97288c9f4070212a5eac5de"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPixFmtDescriptor.html#a4abca4534188ff94627e88c0d8362058">log2_chroma_w</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Amount to shift the luma width right to find the chroma width. <a href="#a4abca4534188ff94627e88c0d8362058"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPixFmtDescriptor.html#abea8ed308fe00644fc066a00018afa95">log2_chroma_h</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Amount to shift the luma height right to find the chroma height. <a href="#abea8ed308fe00644fc066a00018afa95"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPixFmtDescriptor.html#a6da04fdde7dcfd348dede45c6a68c229">flags</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structAVComponentDescriptor.html">AVComponentDescriptor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPixFmtDescriptor.html#a17569c9349766c3b5201b33f84f19a25">comp</a> [4]</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parameters that describe how pixels are packed. <a href="#a17569c9349766c3b5201b33f84f19a25"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVPixFmtDescriptor.html#a85163c36645d2f372a4e98b314fa964b">alias</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Alternative comma-separated names. <a href="#a85163c36645d2f372a4e98b314fa964b"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes of an image. </p>
<p>It also stores the subsampling factors and number of components.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>This is separate of the colorspace (RGB, YCbCr, YPbPr, JPEG-style YUV and all the YUV variants) <a class="el" href="structAVPixFmtDescriptor.html" title="Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...">AVPixFmtDescriptor</a> just stores how values are stored not what these values represent. </dd></dl>
<p>Definition at line <a class="el" href="pixdesc_8h_source.html#l00069">69</a> of file <a class="el" href="pixdesc_8h_source.html">pixdesc.h</a>.</p>
</div><hr/><h2>Field Documentation</h2>
<a class="anchor" id="a10736c3f1288eb87b23ede3ffdefb435"></a><!-- doxytag: member="AVPixFmtDescriptor::name" ref="a10736c3f1288eb87b23ede3ffdefb435" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* <a class="el" href="structAVPixFmtDescriptor.html#a10736c3f1288eb87b23ede3ffdefb435">AVPixFmtDescriptor::name</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="pixdesc_8h_source.html#l00070">70</a> of file <a class="el" href="pixdesc_8h_source.html">pixdesc.h</a>.</p>
</div>
</div>
<a class="anchor" id="ae83de203f97288c9f4070212a5eac5de"></a><!-- doxytag: member="AVPixFmtDescriptor::nb_components" ref="ae83de203f97288c9f4070212a5eac5de" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t <a class="el" href="structAVPixFmtDescriptor.html#ae83de203f97288c9f4070212a5eac5de">AVPixFmtDescriptor::nb_components</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The number of components each pixel has, (1-4) </p>
<p>Definition at line <a class="el" href="pixdesc_8h_source.html#l00071">71</a> of file <a class="el" href="pixdesc_8h_source.html">pixdesc.h</a>.</p>
</div>
</div>
<a class="anchor" id="a4abca4534188ff94627e88c0d8362058"></a><!-- doxytag: member="AVPixFmtDescriptor::log2_chroma_w" ref="a4abca4534188ff94627e88c0d8362058" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t <a class="el" href="structAVPixFmtDescriptor.html#a4abca4534188ff94627e88c0d8362058">AVPixFmtDescriptor::log2_chroma_w</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Amount to shift the luma width right to find the chroma width. </p>
<p>For YV12 this is 1 for example. chroma_width = -((-luma_width) >> log2_chroma_w) The note above is needed to ensure rounding up. This value only refers to the chroma components. chroma_width = -((-luma_width )>>log2_chroma_w) </p>
<p>Definition at line <a class="el" href="pixdesc_8h_source.html#l00080">80</a> of file <a class="el" href="pixdesc_8h_source.html">pixdesc.h</a>.</p>
</div>
</div>
<a class="anchor" id="abea8ed308fe00644fc066a00018afa95"></a><!-- doxytag: member="AVPixFmtDescriptor::log2_chroma_h" ref="abea8ed308fe00644fc066a00018afa95" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t <a class="el" href="structAVPixFmtDescriptor.html#abea8ed308fe00644fc066a00018afa95">AVPixFmtDescriptor::log2_chroma_h</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Amount to shift the luma height right to find the chroma height. </p>
<p>For YV12 this is 1 for example. chroma_height= -((-luma_height) >> log2_chroma_h) The note above is needed to ensure rounding up. This value only refers to the chroma components. </p>
<p>Definition at line <a class="el" href="pixdesc_8h_source.html#l00089">89</a> of file <a class="el" href="pixdesc_8h_source.html">pixdesc.h</a>.</p>
</div>
</div>
<a class="anchor" id="a6da04fdde7dcfd348dede45c6a68c229"></a><!-- doxytag: member="AVPixFmtDescriptor::flags" ref="a6da04fdde7dcfd348dede45c6a68c229" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t <a class="el" href="structAVPixFmtDescriptor.html#a6da04fdde7dcfd348dede45c6a68c229">AVPixFmtDescriptor::flags</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="pixdesc_8h_source.html#l00090">90</a> of file <a class="el" href="pixdesc_8h_source.html">pixdesc.h</a>.</p>
</div>
</div>
<a class="anchor" id="a17569c9349766c3b5201b33f84f19a25"></a><!-- doxytag: member="AVPixFmtDescriptor::comp" ref="a17569c9349766c3b5201b33f84f19a25" args="[4]" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structAVComponentDescriptor.html">AVComponentDescriptor</a> <a class="el" href="structAVPixFmtDescriptor.html#a17569c9349766c3b5201b33f84f19a25">AVPixFmtDescriptor::comp</a>[4]</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Parameters that describe how pixels are packed. </p>
<p>If the format has 2 or 4 components, then alpha is last. If the format has 1 or 2 components, then luma is 0. If the format has 3 or 4 components: if the RGB flag is set then 0 is red, 1 is green and 2 is blue; otherwise 0 is luma, 1 is chroma-U and 2 is chroma-V. </p>
<p>Definition at line <a class="el" href="pixdesc_8h_source.html#l00100">100</a> of file <a class="el" href="pixdesc_8h_source.html">pixdesc.h</a>.</p>
</div>
</div>
<a class="anchor" id="a85163c36645d2f372a4e98b314fa964b"></a><!-- doxytag: member="AVPixFmtDescriptor::alias" ref="a85163c36645d2f372a4e98b314fa964b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* <a class="el" href="structAVPixFmtDescriptor.html#a85163c36645d2f372a4e98b314fa964b">AVPixFmtDescriptor::alias</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Alternative comma-separated names. </p>
<p>Definition at line <a class="el" href="pixdesc_8h_source.html#l00105">105</a> of file <a class="el" href="pixdesc_8h_source.html">pixdesc.h</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>libavutil/<a class="el" href="pixdesc_8h_source.html">pixdesc.h</a></li>
</ul>
</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>