shaka-packager/docs/d0/d1a/text__sample_8h_source.html

217 lines
29 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Shaka Packager SDK: packager/media/base/text_sample.h Source File</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/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Shaka Packager SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</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_3f8eec2fc361645de4b1ec14c19fffc7.html">packager</a></li><li class="navelem"><a class="el" href="../../dir_f99dae54fe7170f791f339b952d5067a.html">media</a></li><li class="navelem"><a class="el" href="../../dir_e3bda0bde998a4d5063328245b9909be.html">base</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">text_sample.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2017 Google Inc. All rights reserved.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// Use of this source code is governed by a BSD-style</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// license that can be found in the LICENSE file or at</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// https://developers.google.com/open-source/licenses/bsd</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#ifndef PACKAGER_MEDIA_BASE_TEXT_SAMPLE_H_</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#define PACKAGER_MEDIA_BASE_TEXT_SAMPLE_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &quot;packager/base/optional.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">namespace </span><a class="code" href="../../d8/daf/namespaceshaka.html">shaka</a> {</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">namespace </span>media {</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">enum class</span> TextUnitType {</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; kPixels,</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; kLines,</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; kPercent,</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;};</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">enum class</span> WritingDirection {</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; kHorizontal,</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; kVerticalGrowingLeft,</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; kVerticalGrowingRight,</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;};</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">enum class</span> TextAlignment {</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; kStart,</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; kCenter,</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; kEnd,</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; kLeft,</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; kRight,</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;};</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../d8/d99/structshaka_1_1media_1_1TextNumber.html"> 48</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d8/d99/structshaka_1_1media_1_1TextNumber.html">TextNumber</a> {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="../../d8/d99/structshaka_1_1media_1_1TextNumber.html">TextNumber</a>(<span class="keywordtype">float</span> value, TextUnitType type) : value(value), type(type) {}</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordtype">float</span> value;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; TextUnitType type;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;};</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html"> 55</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html">TextSettings</a> {</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a002ea8c52d9ab966f6f8a2616a21da46"> 58</a></span>&#160; base::Optional&lt;TextNumber&gt; <a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a002ea8c52d9ab966f6f8a2616a21da46">line</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a63c91deef5b34b528e7f03e61cebe873"> 61</a></span>&#160; base::Optional&lt;TextNumber&gt; <a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a63c91deef5b34b528e7f03e61cebe873">position</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a9ec6b15406e4877a59cefe00e0c00dcf"> 65</a></span>&#160; base::Optional&lt;TextNumber&gt; <a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a9ec6b15406e4877a59cefe00e0c00dcf">width</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a8876f7e978d8b59641947b19d75e532f"> 69</a></span>&#160; base::Optional&lt;TextNumber&gt; <a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a8876f7e978d8b59641947b19d75e532f">height</a>;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a2e1043e8268bc0c1c515d77c7b099d10"> 72</a></span>&#160; std::string <a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a2e1043e8268bc0c1c515d77c7b099d10">region</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a94dca124ccd2902b0e7466c37d05567e"> 76</a></span>&#160; WritingDirection <a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a94dca124ccd2902b0e7466c37d05567e">writing_direction</a> = WritingDirection::kHorizontal;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a1d13993b1682b88332a6ea07aaca5a58"> 78</a></span>&#160; TextAlignment <a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a1d13993b1682b88332a6ea07aaca5a58">text_alignment</a> = TextAlignment::kCenter;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;};</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html"> 81</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a> {</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; base::Optional&lt;bool&gt; underline;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; base::Optional&lt;bool&gt; bold;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; base::Optional&lt;bool&gt; italic;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;};</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html"> 89</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a> {</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a>() {}</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a>(<span class="keyword">const</span> <a class="code" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a>&amp; style,</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keyword">const</span> std::vector&lt;TextFragment&gt;&amp; sub_fragments)</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; : style(style), sub_fragments(sub_fragments) {}</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a>(<span class="keyword">const</span> <a class="code" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a>&amp; style, <span class="keyword">const</span> <span class="keywordtype">char</span>* body)</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; : style(style), body(body) {}</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a>(<span class="keyword">const</span> <a class="code" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a>&amp; style, <span class="keyword">const</span> std::string&amp; body)</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; : style(style), body(body) {}</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a>(<span class="keyword">const</span> <a class="code" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a>&amp; style,</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keyword">const</span> std::vector&lt;uint8_t&gt;&amp; <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html#afee4e59f62972eec056a326a324e518d">image</a>)</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; : style(style), <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html#afee4e59f62972eec056a326a324e518d">image</a>(<a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html#afee4e59f62972eec056a326a324e518d">image</a>) {}</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a>(<span class="keyword">const</span> <a class="code" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a>&amp; style, <span class="keywordtype">bool</span> newline)</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; : style(style), newline(newline) {}</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="code" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a> style;</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; std::vector&lt;TextFragment&gt; sub_fragments;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; std::string body;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html#afee4e59f62972eec056a326a324e518d"> 109</a></span>&#160; std::vector&lt;uint8_t&gt; <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html#afee4e59f62972eec056a326a324e518d">image</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordtype">bool</span> newline = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordtype">bool</span> is_empty() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;};</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="../../db/d1f/classshaka_1_1media_1_1TextSample.html"> 115</a></span>&#160;<span class="keyword">class </span><a class="code" href="../../db/d1f/classshaka_1_1media_1_1TextSample.html">TextSample</a> {</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <a class="code" href="../../db/d1f/classshaka_1_1media_1_1TextSample.html">TextSample</a>(<span class="keyword">const</span> std::string&amp; <span class="keywordtype">id</span>,</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; int64_t start_time,</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; int64_t end_time,</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keyword">const</span> <a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html">TextSettings</a>&amp; settings,</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keyword">const</span> <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a>&amp; body);</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keyword">const</span> std::string&amp; id()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id_; }</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; int64_t start_time()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> start_time_; }</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; int64_t duration()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> duration_; }</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keyword">const</span> <a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html">TextSettings</a>&amp; settings()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> settings_; }</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keyword">const</span> <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a>&amp; body()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> body_; }</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; int64_t EndTime() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; int32_t sub_stream_index()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> sub_stream_index_; }</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordtype">void</span> set_sub_stream_index(int32_t idx) { sub_stream_index_ = idx; }</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="comment">// Allow the compiler generated copy constructor and assignment operator</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="comment">// intentionally. Since the text data is typically small, the performance</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="comment">// impact is minimal.</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">const</span> std::string id_;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">const</span> int64_t start_time_ = 0;</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keyword">const</span> int64_t duration_ = 0;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keyword">const</span> <a class="code" href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html">TextSettings</a> settings_;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">const</span> <a class="code" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a> body_;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; int32_t sub_stream_index_ = -1;</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;};</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;} <span class="comment">// namespace media</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;} <span class="comment">// namespace shaka</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; </div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// PACKAGER_MEDIA_BASE_TEXT_SAMPLE_H_</span></div>
<div class="ttc" id="aclassshaka_1_1media_1_1TextSample_html"><div class="ttname"><a href="../../db/d1f/classshaka_1_1media_1_1TextSample.html">shaka::media::TextSample</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00115">text_sample.h:115</a></div></div>
<div class="ttc" id="anamespaceshaka_html"><div class="ttname"><a href="../../d8/daf/namespaceshaka.html">shaka</a></div><div class="ttdoc">All the methods that are virtual are virtual for mocking.</div><div class="ttdef"><b>Definition:</b> <a href="../../d4/d15/gflags__hex__bytes_8cc_source.html#l00011">gflags_hex_bytes.cc:11</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextFragmentStyle_html"><div class="ttname"><a href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">shaka::media::TextFragmentStyle</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00081">text_sample.h:81</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextFragment_html"><div class="ttname"><a href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">shaka::media::TextFragment</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00089">text_sample.h:89</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextFragment_html_afee4e59f62972eec056a326a324e518d"><div class="ttname"><a href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html#afee4e59f62972eec056a326a324e518d">shaka::media::TextFragment::image</a></div><div class="ttdeci">std::vector&lt; uint8_t &gt; image</div><div class="ttdoc">PNG image data.</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00109">text_sample.h:109</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextNumber_html"><div class="ttname"><a href="../../d8/d99/structshaka_1_1media_1_1TextNumber.html">shaka::media::TextNumber</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00048">text_sample.h:48</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextSettings_html"><div class="ttname"><a href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html">shaka::media::TextSettings</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00055">text_sample.h:55</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextSettings_html_a002ea8c52d9ab966f6f8a2616a21da46"><div class="ttname"><a href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a002ea8c52d9ab966f6f8a2616a21da46">shaka::media::TextSettings::line</a></div><div class="ttdeci">base::Optional&lt; TextNumber &gt; line</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00058">text_sample.h:58</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextSettings_html_a1d13993b1682b88332a6ea07aaca5a58"><div class="ttname"><a href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a1d13993b1682b88332a6ea07aaca5a58">shaka::media::TextSettings::text_alignment</a></div><div class="ttdeci">TextAlignment text_alignment</div><div class="ttdoc">How to align the text within the cue box.</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00078">text_sample.h:78</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextSettings_html_a2e1043e8268bc0c1c515d77c7b099d10"><div class="ttname"><a href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a2e1043e8268bc0c1c515d77c7b099d10">shaka::media::TextSettings::region</a></div><div class="ttdeci">std::string region</div><div class="ttdoc">The region to draw the cue in.</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00072">text_sample.h:72</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextSettings_html_a63c91deef5b34b528e7f03e61cebe873"><div class="ttname"><a href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a63c91deef5b34b528e7f03e61cebe873">shaka::media::TextSettings::position</a></div><div class="ttdeci">base::Optional&lt; TextNumber &gt; position</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00061">text_sample.h:61</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextSettings_html_a8876f7e978d8b59641947b19d75e532f"><div class="ttname"><a href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a8876f7e978d8b59641947b19d75e532f">shaka::media::TextSettings::height</a></div><div class="ttdeci">base::Optional&lt; TextNumber &gt; height</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00069">text_sample.h:69</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextSettings_html_a94dca124ccd2902b0e7466c37d05567e"><div class="ttname"><a href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a94dca124ccd2902b0e7466c37d05567e">shaka::media::TextSettings::writing_direction</a></div><div class="ttdeci">WritingDirection writing_direction</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00076">text_sample.h:76</a></div></div>
<div class="ttc" id="astructshaka_1_1media_1_1TextSettings_html_a9ec6b15406e4877a59cefe00e0c00dcf"><div class="ttname"><a href="../../dd/d5e/structshaka_1_1media_1_1TextSettings.html#a9ec6b15406e4877a59cefe00e0c00dcf">shaka::media::TextSettings::width</a></div><div class="ttdeci">base::Optional&lt; TextNumber &gt; width</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d1a/text__sample_8h_source.html#l00065">text_sample.h:65</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 9 2021 21:00:12 for Shaka Packager SDK by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>