VirtualBox

source: vbox/trunk/src/libs/libvorbis-1.3.7/doc/libvorbis/vorbis_analysis.html

最後變更 在這個檔案是 96468,由 vboxsync 提交於 3 年 前

libs/libvorbis-1.3.7: Re-exporting, hopefully this time everything is there. bugref:10275

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.6 KB
 
1<html>
2
3<head>
4<title>libvorbis - function - vorbis_analysis</title>
5<link rel=stylesheet href="style.css" type="text/css">
6</head>
7
8<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
9<table border=0 width=100%>
10<tr>
11<td><p class=tiny>libvorbis documentation</p></td>
12<td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
13</tr>
14</table>
15
16<h1>vorbis_analysis</h1>
17
18<p><i>declared in "vorbis/codec.h";</i></p>
19
20<p>Once the uncompressed audio data has been divided into blocks, this
21function is called on each block. It looks up the encoding mode and
22dispatches the block to the forward transform provided by that mode.
23</p>
24<p>When using a basic encoding mode, with no bitrate management,
25an ogg_packet pointer can be given, and the coded block is returned
26directly through that structure and can be placed in the output stream.
27</p>
28<p>Otherwise, NULL should be passed for the ogg_packet pointer. In
29that case, after the transform has been applied, the block must passed
30to vorbis_bitrate_addblock() for further coding. This method works with
31both basic and managed encoding modes, so it's recommended for new code.
32</p>
33
34<table border=0 color=black cellspacing=0 cellpadding=7>
35<tr bgcolor=#cccccc>
36 <td>
37<pre><b>
38extern int vorbis_analysis(vorbis_block *vb,ogg_packet *op);
39</b></pre>
40 </td>
41</tr>
42</table>
43
44<h3>Parameters</h3>
45<dl>
46<dt><i>vb</i></dt>
47<dd>Pointer to the vorbis_block to be encoded.</dd>
48<dt><i>op</i></dt>
49<dd>Optional pointer to an ogg_packet. This is normally NULL,
50and the final output is obtained by passing <i>vb</i> though the
51vorbis_bitrate_*() interface to perform further refinement.
52However, when not using a bitrate managed encoding mode, it
53is possible to skip that step by providing an ogg_packet pointer
54here, obtaining the compressed data directly.</dd>
55</dl>
56
57
58<h3>Return Values</h3>
59<ul>
60<li>0 for success</li>
61<li>negative values for failure:
62<ul>
63<li>OV_EINVAL - Invalid request; a non-NULL value was passed for <i>op</i> when the encoder is using a bitrate managed mode.</li>
64<li>OV_EFAULT - Internal fault; indicates a bug or memory corruption.</li>
65<li>OV_EIMPL - Unimplemented; not supported by this version of the library.</li>
66</ul>
67</li>
68</ul>
69<p>
70
71<br><br>
72<hr noshade>
73<table border=0 width=100%>
74<tr valign=top>
75<td><p class=tiny>copyright &copy; 2010 Xiph.Org</p></td>
76<td align=right><p class=tiny><a href="https://xiph.org/vorbis/">Ogg Vorbis</a></p></td>
77</tr><tr>
78<td><p class=tiny>libvorbis documentation</p></td>
79<td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
80</tr>
81</table>
82
83
84</body>
85
86</html>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette