1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv=
"Content-Type" content=
"text/html;charset=UTF-8">
3 <title>Native Client: nacl/nacl_av.h Source File
</title>
4 <link href=
"./tabs.css" rel=
"stylesheet" type=
"text/css">
5 <link href=
"./stylesheet-dox.css" rel=
"stylesheet" type=
"text/css">
8 <a href=
"../../../README.html">Back to README
</a>
10 <!-- Generated by Doxygen 1.5.7.1 -->
11 <div class=
"navigation" id=
"top">
14 <li><a href=
"index.html"><span>Main
Page
</span></a></li>
15 <li><a href=
"modules.html"><span>Modules
</span></a></li>
16 <li><a href=
"annotated.html"><span>Data
Structures
</span></a></li>
17 <li class=
"current"><a href=
"files.html"><span>Files
</span></a></li>
22 <li><a href=
"files.html"><span>File
List
</span></a></li>
23 <li><a href=
"globals.html"><span>Globals
</span></a></li>
26 <h1>nacl/nacl_av.h
</h1><a href=
"nacl__av_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>
27 <a name=
"l00002"></a>00002 <span class=
"comment"> * Copyright
2008, Google Inc.
</span>
28 <a name=
"l00003"></a>00003 <span class=
"comment"> * All rights reserved.
</span>
29 <a name=
"l00004"></a>00004 <span class=
"comment"> *
</span>
30 <a name=
"l00005"></a>00005 <span class=
"comment"> * Redistribution and use in source and binary forms, with or without
</span>
31 <a name=
"l00006"></a>00006 <span class=
"comment"> * modification, are permitted provided that the following conditions are
</span>
32 <a name=
"l00007"></a>00007 <span class=
"comment"> * met:
</span>
33 <a name=
"l00008"></a>00008 <span class=
"comment"> *
</span>
34 <a name=
"l00009"></a>00009 <span class=
"comment"> * * Redistributions of source code must retain the above copyright
</span>
35 <a name=
"l00010"></a>00010 <span class=
"comment"> * notice, this list of conditions and the following disclaimer.
</span>
36 <a name=
"l00011"></a>00011 <span class=
"comment"> * * Redistributions in binary form must reproduce the above
</span>
37 <a name=
"l00012"></a>00012 <span class=
"comment"> * copyright notice, this list of conditions and the following disclaimer
</span>
38 <a name=
"l00013"></a>00013 <span class=
"comment"> * in the documentation and/or other materials provided with the
</span>
39 <a name=
"l00014"></a>00014 <span class=
"comment"> * distribution.
</span>
40 <a name=
"l00015"></a>00015 <span class=
"comment"> * * Neither the name of Google Inc. nor the names of its
</span>
41 <a name=
"l00016"></a>00016 <span class=
"comment"> * contributors may be used to endorse or promote products derived from
</span>
42 <a name=
"l00017"></a>00017 <span class=
"comment"> * this software without specific prior written permission.
</span>
43 <a name=
"l00018"></a>00018 <span class=
"comment"> *
</span>
44 <a name=
"l00019"></a>00019 <span class=
"comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
</span>
45 <a name=
"l00020"></a>00020 <span class=
"comment"> *
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
</span>
46 <a name=
"l00021"></a>00021 <span class=
"comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
</span>
47 <a name=
"l00022"></a>00022 <span class=
"comment"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
</span>
48 <a name=
"l00023"></a>00023 <span class=
"comment"> * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
</span>
49 <a name=
"l00024"></a>00024 <span class=
"comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
</span>
50 <a name=
"l00025"></a>00025 <span class=
"comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
</span>
51 <a name=
"l00026"></a>00026 <span class=
"comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
</span>
52 <a name=
"l00027"></a>00027 <span class=
"comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
</span>
53 <a name=
"l00028"></a>00028 <span class=
"comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
</span>
54 <a name=
"l00029"></a>00029 <span class=
"comment"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span>
55 <a name=
"l00030"></a>00030 <span class=
"comment"> */
</span>
56 <a name=
"l00031"></a>00031
57 <a name=
"l00032"></a>00032 <span class=
"comment">/*
</span>
58 <a name=
"l00033"></a>00033 <span class=
"comment"> * NaCl low-level runtime library interfaces.
</span>
59 <a name=
"l00034"></a>00034 <span class=
"comment"> */
</span>
60 <a name=
"l00035"></a>00035
61 <a name=
"l00036"></a>00036 <span class=
"preprocessor">#ifndef NATIVE_CLIENT_LIBAV_NACL_AV_H_
</span>
62 <a name=
"l00037"></a>00037 <span class=
"preprocessor"></span><span class=
"preprocessor">#define NATIVE_CLIENT_LIBAV_NACL_AV_H_
</span>
63 <a name=
"l00038"></a>00038 <span class=
"preprocessor"></span>
64 <a name=
"l00039"></a>00039 <span class=
"preprocessor">#include
<<a class=
"code" href=
"audio__video_8h.html" title=
"Defines a basic audio/video interface for Native Client applications.">sys/audio_video.h
</a>></span>
65 <a name=
"l00040"></a>00040
66 <a name=
"l00049"></a>00049 <span class=
"preprocessor">#ifdef __cplusplus
</span>
67 <a name=
"l00050"></a>00050 <span class=
"preprocessor"></span><span class=
"keyword">extern
</span> <span class=
"stringliteral">"C"</span> {
68 <a name=
"l00051"></a>00051 <span class=
"preprocessor">#endif
</span>
69 <a name=
"l00052"></a>00052 <span class=
"preprocessor"></span>
70 <a name=
"l00062"></a>00062 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#g145fd3b396d0122f11e273201e84543a" title=
"[Native Client] Initializes the multimedia system.">nacl_multimedia_init
</a>(
<span class=
"keywordtype">int
</span> subsystems);
71 <a name=
"l00071"></a>00071 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#gb392dde91af52c6f69af69699234a119" title=
"[Native Client] Shuts down the multimedia system.">nacl_multimedia_shutdown
</a>();
72 <a name=
"l00080"></a>00080 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#g09cec6d68f093511038e3f92483baa17" title=
"[Native Client] Whether or not the nacl app is embedded in the browser.">nacl_multimedia_is_embedded
</a>(
<span class=
"keywordtype">int
</span> *embedded);
73 <a name=
"l00091"></a>00091 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#g3b8a041d74f1d24edada08a112a68e03" title=
"[Native Client] Gets width &amp; height of embedded region in the browser.">nacl_multimedia_get_embed_size
</a>(
<span class=
"keywordtype">int
</span> *width,
<span class=
"keywordtype">int
</span> *height);
74 <a name=
"l00104"></a>00104 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#g62d563b30b5296e8e117e3f77f88725f" title=
"[Native Client] Initializes a video output window.">nacl_video_init
</a>(
<span class=
"keywordtype">int
</span> width,
<span class=
"keywordtype">int
</span> height);
75 <a name=
"l00115"></a>00115 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#ge106a31aae2fc01d6aade334786ef5b8" title=
"[Native Client] Shuts down and closes video output window.">nacl_video_shutdown
</a>();
76 <a name=
"l00126"></a>00126 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#g4ae51b5619e5e60fee5c3e4062aaac51" title=
"[Native Client] Updates the video window with new frame buffer data.">nacl_video_update
</a>(
<span class=
"keyword">const
</span> <span class=
"keywordtype">void
</span> *data);
77 <a name=
"l00137"></a>00137 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#g8f38aa7b2f01c6960a4dcbd14c1de02b" title=
"[Native Client] Polls a nacl video window for user events.">nacl_video_poll_event
</a>(
<span class=
"keyword">union
</span> <a class=
"code" href=
"union_na_cl_multimedia_event.html" title=
"[Native Client] The event wrapper.">NaClMultimediaEvent
</a> *event);
78 <a name=
"l00154"></a>00154 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#g11dec99b448d5433aa043aace813c156" title=
"[Native Client] Initializes audio subsystem.">nacl_audio_init
</a>(
<span class=
"keyword">enum
</span> <a class=
"code" href=
"group__audio__video.html#gd7e66fd8b1e4faeba8e25ac6da7c2d6d" title=
"[Native Client] Audio format enumerations for nacl_audio_init() Describes the source...">NaClAudioFormat
</a> format,
79 <a name=
"l00155"></a>00155 <span class=
"keywordtype">int
</span> desired_samples,
<span class=
"keywordtype">int
</span> *obtained_samples);
80 <a name=
"l00166"></a>00166 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#g9d6a289664a9f4963e69ea851d4e95aa" title=
"[Native Client] Shuts down the audio subsystem.">nacl_audio_shutdown
</a>();
81 <a name=
"l00184"></a>00184 <span class=
"keyword">extern
</span> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"group__audio__video.html#g474fdbc576c18d0a0450b8a8e36a319e" title=
"[Native Client] Streams audio data to device.">nacl_audio_stream
</a>(
<span class=
"keyword">const
</span> <span class=
"keywordtype">void
</span> *data,
<span class=
"keywordtype">size_t
</span> *size);
82 <a name=
"l00185"></a>00185
83 <a name=
"l00186"></a>00186 <span class=
"preprocessor">#ifdef __cplusplus
</span>
84 <a name=
"l00187"></a>00187 <span class=
"preprocessor"></span>}
85 <a name=
"l00188"></a>00188 <span class=
"preprocessor">#endif
</span>
86 <a name=
"l00189"></a>00189 <span class=
"preprocessor"></span>
87 <a name=
"l00195"></a>00195 <span class=
"preprocessor">#endif
</span><span class=
"comment">/* NATIVE_CLIENT_LIBAV_NACL_AV_H_ */
</span>
91 <a href=
"http://code.google.com/policies.html#restrictions">noted
</a>,
92 the content of this page is licensed under a
93 <a href=
"http://www.google.com/url?sa=D&q=http%3A%2F%2Fcreativecommons.org/licenses/by/2.5/">Creative Commons
94 Attribution
2.5 license
</a>.
98 Generated
30 Mar
2009 by
<a href=
"http://www.doxygen.org/index.html">doxygen
</a> 1.5.7.1