2015-10-16 00:33:37 +00:00
<!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" / >
2017-09-20 02:35:05 +00:00
< title > Shaka Packager SDK: shaka::media::MediaSample Class Reference< / title >
2015-10-16 00:33:37 +00:00
< 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;" >
2017-09-20 02:35:05 +00:00
< div id = "projectname" > Shaka Packager SDK
2015-10-16 00:33:37 +00:00
< / 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 = "../../namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "../../annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "../../files.html" > < span > Files< / 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 > Class  List< / span > < / a > < / li >
< li > < a href = "../../classes.html" > < span > Class  Index< / span > < / a > < / li >
< li > < a href = "../../hierarchy.html" > < span > Class  Hierarchy< / span > < / a > < / li >
< li > < a href = "../../functions.html" > < span > Class  Members< / 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)">
2017-09-20 02:35:05 +00:00
< 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 > Classes< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" > < span class = "SelectionMark" >   < / span > Namespaces< / 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 > Friends< / a > < / div >
2015-10-16 00:33:37 +00:00
<!-- 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 >
2016-05-24 23:43:16 +00:00
< li class = "navelem" > < a class = "el" href = "../../d8/daf/namespaceshaka.html" > shaka< / a > < / li > < li class = "navelem" > < b > media< / b > < / li > < li class = "navelem" > < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > < / li > < / ul >
2015-10-16 00:33:37 +00:00
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "#pub-static-methods" > Static Public Member Functions< / a > |
2017-10-24 22:51:02 +00:00
< a href = "#pro-methods" > Protected Member Functions< / a > |
2016-05-24 23:43:16 +00:00
< a href = "../../df/d1c/classshaka_1_1media_1_1MediaSample-members.html" > List of all members< / a > < / div >
2015-10-16 00:33:37 +00:00
< div class = "headertitle" >
2016-05-24 23:43:16 +00:00
< div class = "title" > shaka::media::MediaSample Class Reference< / div > < / div >
2015-10-16 00:33:37 +00:00
< / div > <!-- header -->
< div class = "contents" >
< p > Class to hold a media sample.
2016-05-24 23:43:16 +00:00
< a href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#details" > More...< / a > < / p >
2015-10-16 00:33:37 +00:00
< p > < code > #include < < a class = "el" href = "../../dd/d80/media__sample_8h_source.html" > media_sample.h< / a > > < / code > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2017-10-24 22:51:02 +00:00
< tr class = "memitem:a6b055c68dd0b2425ec5ba524b8a05b73" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a6b055c68dd0b2425ec5ba524b8a05b73" > < / a >
std::shared_ptr< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#a6b055c68dd0b2425ec5ba524b8a05b73" > Clone< / a > () const < / td > < / tr >
< tr class = "memdesc:a6b055c68dd0b2425ec5ba524b8a05b73" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Clone the object and return a new < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" title = "Class to hold a media sample. " > MediaSample< / a > . < br / > < / td > < / tr >
< tr class = "separator:a6b055c68dd0b2425ec5ba524b8a05b73" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a5402405ad4abb5102078d047972a56fa" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#a5402405ad4abb5102078d047972a56fa" > TransferData< / a > (std::shared_ptr< uint8_t > data, size_t data_size)< / td > < / tr >
< tr class = "separator:a5402405ad4abb5102078d047972a56fa" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab9be744240871d88cd76d04adbd2d702" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#ab9be744240871d88cd76d04adbd2d702" > SetData< / a > (const uint8_t *data, size_t data_size)< / td > < / tr >
< tr class = "separator:ab9be744240871d88cd76d04adbd2d702" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa3cbd9fee3a228403c3128be5141a614" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#aa3cbd9fee3a228403c3128be5141a614" > ToString< / a > () const < / td > < / tr >
< tr class = "separator:aa3cbd9fee3a228403c3128be5141a614" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:a52a0b18aec839de422c4e3e2df9734c9" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a52a0b18aec839de422c4e3e2df9734c9" > < / a >
2015-10-16 00:33:37 +00:00
int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < b > dts< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a52a0b18aec839de422c4e3e2df9734c9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a282f6c6f514e5500d7c601b456b02ff2" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a282f6c6f514e5500d7c601b456b02ff2" > < / a >
2015-10-16 00:33:37 +00:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > set_dts< / b > (int64_t dts)< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a282f6c6f514e5500d7c601b456b02ff2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a52612867901b81c2f9c1996e2258e3c6" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a52612867901b81c2f9c1996e2258e3c6" > < / a >
2015-10-16 00:33:37 +00:00
int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < b > pts< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a52612867901b81c2f9c1996e2258e3c6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a766027345233f30a6ab105a0f812c9d4" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a766027345233f30a6ab105a0f812c9d4" > < / a >
2015-10-16 00:33:37 +00:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > set_pts< / b > (int64_t pts)< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a766027345233f30a6ab105a0f812c9d4" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae8a9942bf423d9a05bf9e39c1dbbfbda" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ae8a9942bf423d9a05bf9e39c1dbbfbda" > < / a >
2015-10-16 00:33:37 +00:00
int64_t  < / td > < td class = "memItemRight" valign = "bottom" > < b > duration< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:ae8a9942bf423d9a05bf9e39c1dbbfbda" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a31af3b3d7e02720b8b2430fb35be617a" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a31af3b3d7e02720b8b2430fb35be617a" > < / a >
2015-10-16 00:33:37 +00:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > set_duration< / b > (int64_t duration)< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a31af3b3d7e02720b8b2430fb35be617a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad58500bfdbf703d94dab6aa9b1162831" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ad58500bfdbf703d94dab6aa9b1162831" > < / a >
2015-10-16 00:33:37 +00:00
bool  < / td > < td class = "memItemRight" valign = "bottom" > < b > is_key_frame< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:ad58500bfdbf703d94dab6aa9b1162831" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aba7a2de6a183c899fae91f81a6874a5c" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "aba7a2de6a183c899fae91f81a6874a5c" > < / a >
2015-10-16 00:33:37 +00:00
bool  < / td > < td class = "memItemRight" valign = "bottom" > < b > is_encrypted< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:aba7a2de6a183c899fae91f81a6874a5c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a27439e29f5da14831623e21a1f052948" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a27439e29f5da14831623e21a1f052948" > < / a >
2015-10-16 00:33:37 +00:00
const uint8_t *  < / td > < td class = "memItemRight" valign = "bottom" > < b > data< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a27439e29f5da14831623e21a1f052948" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af33286b61bff7af2a34ac999dcb66dda" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "af33286b61bff7af2a34ac999dcb66dda" > < / a >
2015-10-16 00:33:37 +00:00
size_t  < / td > < td class = "memItemRight" valign = "bottom" > < b > data_size< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:af33286b61bff7af2a34ac999dcb66dda" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a7fe627a85ca658b35e13246f44db9f47" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a7fe627a85ca658b35e13246f44db9f47" > < / a >
2015-10-16 00:33:37 +00:00
const uint8_t *  < / td > < td class = "memItemRight" valign = "bottom" > < b > side_data< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a7fe627a85ca658b35e13246f44db9f47" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a31d907c69912212fd03c8a4a578955c1" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a31d907c69912212fd03c8a4a578955c1" > < / a >
2015-10-16 00:33:37 +00:00
size_t  < / td > < td class = "memItemRight" valign = "bottom" > < b > side_data_size< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a31d907c69912212fd03c8a4a578955c1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-09-08 17:18:20 +00:00
< tr class = "memitem:a9ca652d922f5af1b74e36fe46950b8c7" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a9ca652d922f5af1b74e36fe46950b8c7" > < / a >
const < a class = "el" href = "../../de/d49/classshaka_1_1media_1_1DecryptConfig.html" > DecryptConfig< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < b > decrypt_config< / b > () const < / td > < / tr >
< tr class = "separator:a9ca652d922f5af1b74e36fe46950b8c7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:a99ffbe5854478e1acd3f324b91801091" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a99ffbe5854478e1acd3f324b91801091" > < / a >
2015-10-16 00:33:37 +00:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > set_is_key_frame< / b > (bool value)< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a99ffbe5854478e1acd3f324b91801091" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a8c7cb12233fb08f48f08ac175468db54" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a8c7cb12233fb08f48f08ac175468db54" > < / a >
2015-10-16 00:33:37 +00:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > set_is_encrypted< / b > (bool value)< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a8c7cb12233fb08f48f08ac175468db54" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-09-08 17:18:20 +00:00
< tr class = "memitem:a18a97b2d0901174672b6d7708cdcaf26" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a18a97b2d0901174672b6d7708cdcaf26" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > set_decrypt_config< / b > (std::unique_ptr< < a class = "el" href = "../../de/d49/classshaka_1_1media_1_1DecryptConfig.html" > DecryptConfig< / a > > decrypt_config)< / td > < / tr >
< tr class = "separator:a18a97b2d0901174672b6d7708cdcaf26" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:aed890fbb315df801ab6ca3b7afb8a40a" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "aed890fbb315df801ab6ca3b7afb8a40a" > < / a >
2015-10-16 00:33:37 +00:00
bool  < / td > < td class = "memItemRight" valign = "bottom" > < b > end_of_stream< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:aed890fbb315df801ab6ca3b7afb8a40a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad91f335c15b666edc29fdfbea1270f67" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ad91f335c15b666edc29fdfbea1270f67" > < / a >
2015-12-15 00:22:36 +00:00
const std::string &   < / td > < td class = "memItemRight" valign = "bottom" > < b > config_id< / b > () const < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:ad91f335c15b666edc29fdfbea1270f67" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6217d289829ab91c85be82d8f8bdfbab" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a6217d289829ab91c85be82d8f8bdfbab" > < / a >
2015-12-15 00:22:36 +00:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > set_config_id< / b > (const std::string & config_id)< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a6217d289829ab91c85be82d8f8bdfbab" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-static-methods" > < / a >
Static Public Member Functions< / h2 > < / td > < / tr >
2017-01-26 03:38:47 +00:00
< tr class = "memitem:ad8975dbb21747ff32c8604f5489bf5c9" > < td class = "memItemLeft" align = "right" valign = "top" > static std::shared_ptr< br class = "typebreak" / >
< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#ad8975dbb21747ff32c8604f5489bf5c9" > CopyFrom< / a > (const uint8_t *data, size_t size, bool is_key_frame)< / td > < / tr >
< tr class = "separator:ad8975dbb21747ff32c8604f5489bf5c9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a910e68f46b9464e4ea36cf9cd5116b55" > < td class = "memItemLeft" align = "right" valign = "top" > static std::shared_ptr< br class = "typebreak" / >
< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#a910e68f46b9464e4ea36cf9cd5116b55" > CopyFrom< / a > (const uint8_t *data, size_t size, const uint8_t *side_data, size_t side_data_size, bool is_key_frame)< / td > < / tr >
< tr class = "separator:a910e68f46b9464e4ea36cf9cd5116b55" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a8c70ae863851c7a1066923cf387fb178" > < td class = "memItemLeft" align = "right" valign = "top" > static std::shared_ptr< br class = "typebreak" / >
< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#a8c70ae863851c7a1066923cf387fb178" > FromMetadata< / a > (const uint8_t *metadata, size_t metadata_size)< / td > < / tr >
< tr class = "separator:a8c70ae863851c7a1066923cf387fb178" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a4a7f8d79f9ec3cd3df9a395eef71f0c6" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a4a7f8d79f9ec3cd3df9a395eef71f0c6" > < / a >
static std::shared_ptr< br class = "typebreak" / >
< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#a4a7f8d79f9ec3cd3df9a395eef71f0c6" > CreateEmptyMediaSample< / a > ()< / td > < / tr >
< tr class = "memdesc:a4a7f8d79f9ec3cd3df9a395eef71f0c6" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Create a < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" title = "Class to hold a media sample. " > MediaSample< / a > object with default members. < br / > < / td > < / tr >
< tr class = "separator:a4a7f8d79f9ec3cd3df9a395eef71f0c6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a236e80a98d7f22ec585bbbf2e91397f5" > < td class = "memItemLeft" align = "right" valign = "top" > static std::shared_ptr< br class = "typebreak" / >
< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html#a236e80a98d7f22ec585bbbf2e91397f5" > CreateEOSBuffer< / a > ()< / td > < / tr >
< tr class = "separator:a236e80a98d7f22ec585bbbf2e91397f5" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-10-24 22:51:02 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pro-methods" > < / a >
Protected Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a5fde40524f29d01ad947604b56e193b6" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a5fde40524f29d01ad947604b56e193b6" > < / a >
  < / td > < td class = "memItemRight" valign = "bottom" > < b > MediaSample< / b > (const uint8_t *data, size_t data_size, const uint8_t *side_data, size_t side_data_size, bool is_key_frame)< / td > < / tr >
< tr class = "separator:a5fde40524f29d01ad947604b56e193b6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > Class to hold a media sample. < / p >
2016-09-08 17:18:20 +00:00
< p > Definition at line < a class = "el" href = "../../dd/d80/media__sample_8h_source.html#l00022" > 22< / a > of file < a class = "el" href = "../../dd/d80/media__sample_8h_source.html" > media_sample.h< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div > < h2 class = "groupheader" > Member Function Documentation< / h2 >
2017-01-26 03:38:47 +00:00
< a class = "anchor" id = "ad8975dbb21747ff32c8604f5489bf5c9" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-01-26 03:38:47 +00:00
< td class = "memname" > std::shared_ptr< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > > shaka::media::MediaSample::CopyFrom < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > data< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > size< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > bool  < / td >
< td class = "paramname" > < em > is_key_frame< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Create a < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" title = "Class to hold a media sample. " > MediaSample< / a > object from input. < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > data< / td > < td > points to the buffer containing the sample data. Must not be NULL. < / td > < / tr >
< tr > < td class = "paramname" > size< / td > < td > indicates sample size in bytes. Must not be negative. < / td > < / tr >
< tr > < td class = "paramname" > is_key_frame< / td > < td > indicates whether the sample is a key frame. < / td > < / tr >
< / table >
< / dd >
< / dl >
2017-10-24 22:51:02 +00:00
< p > Definition at line < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html#l00042" > 42< / a > of file < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html" > media_sample.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2017-01-26 03:38:47 +00:00
< a class = "anchor" id = "a910e68f46b9464e4ea36cf9cd5116b55" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-01-26 03:38:47 +00:00
< td class = "memname" > std::shared_ptr< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > > shaka::media::MediaSample::CopyFrom < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > data< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > size< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > side_data< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > side_data_size< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > bool  < / td >
< td class = "paramname" > < em > is_key_frame< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Create a < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" title = "Class to hold a media sample. " > MediaSample< / a > object from input. < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > data< / td > < td > points to the buffer containing the sample data. Must not be NULL. < / td > < / tr >
< tr > < td class = "paramname" > side_data< / td > < td > points to the buffer containing the additional data. Some containers allow additional data to be specified. Must not be NULL. < / td > < / tr >
< tr > < td class = "paramname" > size< / td > < td > indicates sample size in bytes. Must not be negative. < / td > < / tr >
2015-12-15 00:22:36 +00:00
< tr > < td class = "paramname" > side_data_size< / td > < td > indicates additional sample data size in bytes. < / td > < / tr >
2015-10-16 00:33:37 +00:00
< tr > < td class = "paramname" > is_key_frame< / td > < td > indicates whether the sample is a key frame. < / td > < / tr >
< / table >
< / dd >
< / dl >
2017-10-24 22:51:02 +00:00
< p > Definition at line < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html#l00052" > 52< / a > of file < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html" > media_sample.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
2017-03-27 19:39:08 +00:00
< / div >
< / div >
2017-10-24 22:51:02 +00:00
< a class = "anchor" id = "a236e80a98d7f22ec585bbbf2e91397f5" > < / a >
2017-03-27 19:39:08 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-10-24 22:51:02 +00:00
< td class = "memname" > std::shared_ptr< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > > shaka::media::MediaSample::CreateEOSBuffer < / td >
2017-03-27 19:39:08 +00:00
< td > (< / td >
2017-10-24 22:51:02 +00:00
< td class = "paramname" > < / td > < td > )< / td >
2017-03-27 19:39:08 +00:00
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2017-10-24 22:51:02 +00:00
< p > Create a < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" title = "Class to hold a media sample. " > MediaSample< / a > indicating we've reached end of stream. Calling any method other than end_of_stream() on the resulting buffer is disallowed. < / p >
2017-03-27 19:39:08 +00:00
2017-10-24 22:51:02 +00:00
< p > Definition at line < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html#l00076" > 76< / a > of file < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html" > media_sample.cc< / a > .< / p >
2017-03-27 19:39:08 +00:00
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2017-10-24 22:51:02 +00:00
< a class = "anchor" id = "a8c70ae863851c7a1066923cf387fb178" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-10-24 22:51:02 +00:00
< td class = "memname" > std::shared_ptr< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > > shaka::media::MediaSample::FromMetadata < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2017-10-24 22:51:02 +00:00
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > metadata< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
2015-10-16 00:33:37 +00:00
< td > < / td >
2017-10-24 22:51:02 +00:00
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > metadata_size< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2017-10-24 22:51:02 +00:00
< p > Create a < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" title = "Class to hold a media sample. " > MediaSample< / a > object from metadata. Unlike other factory methods, this cannot be a key frame. It must be only for metadata. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > metadata< / td > < td > points to the buffer containing metadata. Must not be NULL. < / td > < / tr >
< tr > < td class = "paramname" > metadata_size< / td > < td > is the size of metadata in bytes. < / td > < / tr >
< / table >
< / dd >
< / dl >
2015-10-16 00:33:37 +00:00
2017-10-24 22:51:02 +00:00
< p > Definition at line < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html#l00064" > 64< / a > of file < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html" > media_sample.cc< / a > .< / p >
2015-12-15 00:22:36 +00:00
< / div >
< / div >
2017-10-24 22:51:02 +00:00
< a class = "anchor" id = "ab9be744240871d88cd76d04adbd2d702" > < / a >
2015-12-15 00:22:36 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2017-10-24 22:51:02 +00:00
< td class = "memname" > void shaka::media::MediaSample::SetData < / td >
2015-12-15 00:22:36 +00:00
< td > (< / td >
< td class = "paramtype" > const uint8_t *  < / td >
2017-10-24 22:51:02 +00:00
< td class = "paramname" > < em > data< / em > , < / td >
2015-12-15 00:22:36 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
2017-10-24 22:51:02 +00:00
< td class = "paramname" > < em > data_size< / em >   < / td >
2015-12-15 00:22:36 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2017-10-24 22:51:02 +00:00
< p > Set the data in this media sample. Note that this method involves data copying. < / p >
2015-12-15 00:22:36 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2017-10-24 22:51:02 +00:00
< tr > < td class = "paramname" > data< / td > < td > points to the data to be copied. < / td > < / tr >
< tr > < td class = "paramname" > data_size< / td > < td > is the size of the data to be copied. < / td > < / tr >
2015-12-15 00:22:36 +00:00
< / table >
< / dd >
< / dl >
2017-10-24 22:51:02 +00:00
< p > Definition at line < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html#l00109" > 109< / a > of file < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html" > media_sample.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "aa3cbd9fee3a228403c3128be5141a614" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > std::string shaka::media::MediaSample::ToString < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< dl class = "section return" > < dt > Returns< / dt > < dd > a human-readable string describing |*this|. < / dd > < / dl >
2017-10-24 22:51:02 +00:00
< p > Definition at line < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html#l00116" > 116< / a > of file < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html" > media_sample.cc< / a > .< / p >
< / div >
< / div >
< a class = "anchor" id = "a5402405ad4abb5102078d047972a56fa" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void shaka::media::MediaSample::TransferData < / td >
< td > (< / td >
< td class = "paramtype" > std::shared_ptr< uint8_t >   < / td >
< td class = "paramname" > < em > data< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > data_size< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Transfer data to this media sample. No data copying is involved. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > data< / td > < td > points to the data to be transferred. < / td > < / tr >
< tr > < td class = "paramname" > data_size< / td > < td > is the size of the data to be transferred. < / td > < / tr >
< / table >
< / dd >
< / dl >
< p > Definition at line < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html#l00103" > 103< / a > of file < a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html" > media_sample.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
2017-09-20 02:35:05 +00:00
< li > packager/media/base/< a class = "el" href = "../../dd/d80/media__sample_8h_source.html" > media_sample.h< / a > < / li >
< li > packager/media/base/< a class = "el" href = "../../d8/d0d/media__sample_8cc_source.html" > media_sample.cc< / a > < / li >
2015-10-16 00:33:37 +00:00
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2017-10-24 22:51:02 +00:00
Generated on Tue Oct 24 2017 15:50:16 for Shaka Packager SDK by   < a href = "http://www.doxygen.org/index.html" >
2015-10-16 00:33:37 +00:00
< img class = "footer" src = "../../doxygen.png" alt = "doxygen" / >
< / a > 1.8.6
< / small > < / address >
< / body >
< / html >