2025-10-11 01:35:43 +01:00
<!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" lang = "en-US" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=11" / >
< meta name = "generator" content = "Doxygen 1.14.0" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > libaaruformat: src/compression/cst.c File Reference< / 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 >
< script type = "text/javascript" src = "clipboard.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< script type = "text/javascript" src = "cookie.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 id = "projectrow" >
< td id = "projectalign" >
< div id = "projectname" > libaaruformat< span id = "projectnumber" >   1.0< / span >
< / div >
< div id = "projectbrief" > Aaru Data Preservation Suite - Format Library< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search/",'.html');
< / script >
< script type = "text/javascript" >
$(function() { codefold.init(); });
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
< / script >
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
$(function(){initNavTree('cst_8c.html','',''); });
< / script >
< div id = "container" >
< div id = "doc-content" >
<!-- 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" >
< div id = "MSearchResults" >
< div class = "SRPage" >
< div id = "SRIndex" >
< div id = "SRResults" > < / div >
< div class = "SRStatus" id = "Loading" > Loading...< / div >
< div class = "SRStatus" id = "Searching" > Searching...< / div >
< div class = "SRStatus" id = "NoMatches" > No Matches< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "header" >
< div class = "headertitle" > < div class = "title" > cst.c File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "textblock" > < code > #include < stdint.h> < / code > < br / >
< code > #include < stdlib.h> < / code > < br / >
< code > #include < string.h> < / code > < br / >
< code > #include " < a class = "el" href = "aaruformat_8h_source.html" > aaruformat.h< / a > " < / code > < br / >
< / div >
< p > < a href = "cst_8c_source.html" > Go to the source code of this file.< / a > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 id = "header-func-members" class = "groupheader" > < a id = "func-members" name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:aabb2d2d40402e948ccf5411d04a0d2f9" id = "r_aabb2d2d40402e948ccf5411d04a0d2f9" > < td class = "memItemLeft" align = "right" valign = "top" > int32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "#aabb2d2d40402e948ccf5411d04a0d2f9" > aaruf_cst_transform< / a > (const uint8_t *interleaved, uint8_t *sequential, const size_t length)< / td > < / tr >
< tr class = "memdesc:aabb2d2d40402e948ccf5411d04a0d2f9" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Transforms interleaved subchannel data to sequential format. < br / > < / td > < / tr >
< tr class = "memitem:a1a547b6235034537a0564d1f46f4cbad" id = "r_a1a547b6235034537a0564d1f46f4cbad" > < td class = "memItemLeft" align = "right" valign = "top" > int32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "#a1a547b6235034537a0564d1f46f4cbad" > aaruf_cst_untransform< / a > (const uint8_t *sequential, uint8_t *interleaved, const size_t length)< / td > < / tr >
< tr class = "memdesc:a1a547b6235034537a0564d1f46f4cbad" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Reverses the CST (Claunia's Subchannel Transform) transformation from sequential to interleaved data. < br / > < / td > < / tr >
< / table >
< a name = "doc-func-members" id = "doc-func-members" > < / a > < h2 id = "header-doc-func-members" class = "groupheader" > Function Documentation< / h2 >
< a id = "aabb2d2d40402e948ccf5411d04a0d2f9" name = "aabb2d2d40402e948ccf5411d04a0d2f9" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aabb2d2d40402e948ccf5411d04a0d2f9" > ◆   < / a > < / span > aaruf_cst_transform()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int32_t aaruf_cst_transform < / td >
< td > (< / td >
< td class = "paramtype" > const uint8_t *< / td > < td class = "paramname" > < span class = "paramname" > < em > interleaved< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint8_t *< / td > < td class = "paramname" > < span class = "paramname" > < em > sequential< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const size_t< / td > < td class = "paramname" > < span class = "paramname" > < em > length< / em > < / span >   )< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Transforms interleaved subchannel data to sequential format. < / p >
< p > Converts interleaved subchannel data into a sequential format for further processing.< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > interleaved< / td > < td > Pointer to the interleaved data buffer. < / td > < / tr >
< tr > < td class = "paramname" > sequential< / td > < td > Pointer to the output sequential data buffer. < / td > < / tr >
< tr > < td class = "paramname" > length< / td > < td > Length of the data buffer. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > AARUF_STATUS_OK on success, or an error code on failure. < / dd > < / dl >
< p class = "definition" > Definition at line < a class = "el" href = "cst_8c_source.html#l00035" > 35< / a > of file < a class = "el" href = "cst_8c_source.html" > cst.c< / a > .< / p >
2025-10-11 12:43:39 +01:00
< p class = "reference" > References < a class = "el" href = "decls_8h_source.html#l00045" > AARU_CALL< / a > , < a class = "el" href = "decls_8h_source.html#l00054" > AARU_EXPORT< / a > , < a class = "el" href = "errors_8h_source.html#l00049" > AARUF_ERROR_BUFFER_TOO_SMALL< / a > , < a class = "el" href = "errors_8h_source.html#l00048" > AARUF_ERROR_NOT_ENOUGH_MEMORY< / a > , and < a class = "el" href = "errors_8h_source.html#l00075" > AARUF_STATUS_OK< / a > .< / p >
2025-10-11 01:35:43 +01:00
2025-12-12 12:25:02 +00:00
< p class = "reference" > Referenced by < a class = "el" href = "close_8c_source.html#l01547" > write_sector_subchannel()< / a > .< / p >
2025-10-11 01:35:43 +01:00
< / div >
< / div >
< a id = "a1a547b6235034537a0564d1f46f4cbad" name = "a1a547b6235034537a0564d1f46f4cbad" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a1a547b6235034537a0564d1f46f4cbad" > ◆   < / a > < / span > aaruf_cst_untransform()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int32_t aaruf_cst_untransform < / td >
< td > (< / td >
< td class = "paramtype" > const uint8_t *< / td > < td class = "paramname" > < span class = "paramname" > < em > sequential< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint8_t *< / td > < td class = "paramname" > < span class = "paramname" > < em > interleaved< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const size_t< / td > < td class = "paramname" > < span class = "paramname" > < em > length< / em > < / span >   )< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Reverses the CST (Claunia's Subchannel Transform) transformation from sequential to interleaved data. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > sequential< / td > < td > Pointer to the sequential data buffer. < / td > < / tr >
< tr > < td class = "paramname" > interleaved< / td > < td > Pointer to the output buffer for interleaved data. < / td > < / tr >
< tr > < td class = "paramname" > length< / td > < td > Length of the data in bytes. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > AARUF_STATUS_OK on success, or an error code on failure. < / dd > < / dl >
< p class = "definition" > Definition at line < a class = "el" href = "cst_8c_source.html#l00193" > 193< / a > of file < a class = "el" href = "cst_8c_source.html" > cst.c< / a > .< / p >
2025-10-11 12:43:39 +01:00
< p class = "reference" > References < a class = "el" href = "decls_8h_source.html#l00045" > AARU_CALL< / a > , < a class = "el" href = "decls_8h_source.html#l00054" > AARU_EXPORT< / a > , < a class = "el" href = "errors_8h_source.html#l00049" > AARUF_ERROR_BUFFER_TOO_SMALL< / a > , < a class = "el" href = "errors_8h_source.html#l00048" > AARUF_ERROR_NOT_ENOUGH_MEMORY< / a > , and < a class = "el" href = "errors_8h_source.html#l00075" > AARUF_STATUS_OK< / a > .< / p >
2025-10-11 01:35:43 +01:00
< p class = "reference" > Referenced by < a class = "el" href = "data_8c_source.html#l00071" > process_data_block()< / a > .< / p >
< / div >
< / div >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
< div id = "page-nav" class = "page-nav-panel" >
< div id = "page-nav-resize-handle" > < / div >
< div id = "page-nav-tree" >
< div id = "page-nav-contents" >
< / div > <!-- page - nav - contents -->
< / div > <!-- page - nav - tree -->
< / div > <!-- page - nav -->
< / div > <!-- container -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a href = "dir_68267d1309a1af8e8297ef4c3efbcdba.html" > src< / a > < / li > < li class = "navelem" > < a href = "dir_40ed6a89610fc2370cf3ffcd6469b940.html" > compression< / a > < / li > < li class = "navelem" > < a href = "cst_8c.html" > cst.c< / a > < / li >
< li class = "footer" > Generated by < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.14.0 < / li >
< / ul >
< / div >
< / body >
< / html >