feat/api #46

Open
Gregor Weiss wants to merge 55 commits from feat/api into main
2 changed files with 0 additions and 58 deletions
Showing only changes of commit 4baaaddf5f - Show all commits

View file

@ -76,9 +76,6 @@
char const *const aux,
uint32 const size);
//==========|==========================|======================|======|=======|====================
// TODO: remove
void bwc_free_data (bwc_stream *const data);
//==========|==========================|======================|======|=======|====================
uchar create_codec (bwc_codec *const codec);
//==========|==========================|======================|======|=======|====================
bwc_codec* configure_codec (bwc_codec *const codec,

View file

@ -1552,61 +1552,6 @@ bwc_set_aux(bwc_stream *const data, char const *const aux, uint32 size)
return 0;
}
/*----------------------------------------------------------------------------------------------------------*\
! FUNCTION NAME: void bwc_free_data(bwc_stream* file) !
! -------------- !
! !
! DESCRIPTION: !
! ------------ !
! This function deallocates the data structure used to store an numerical dataset/compressed !
! and can be called if an error occurs or once the data is no longer needed is to be closed. !
! The deallocation will be carried out down to the structure levels that have been allocated. !
! !
! PARAMETERS: !
! ----------- !
! !
! Variable Type Description !
! -------- ---- ----------- !
! file bwc_stream - Defines a structure used to store all !
! the relevant parameters and the data !
! field of a numerical dataset or com- !
! pressed codestream. !
! !
! RETURN VALUE: !
! ------------- !
! !
! Variable Type Description !
! -------- ---- ----------- !
! - - - !
! !
! DEVELOPMENT HISTORY: !
! -------------------- !
! !
! Date Author Change Id Release Description Of Change !
! ---- ------ --------- ------- --------------------- !
! 20.06.2018 Patrick Vogler B87D120 V 0.1.0 function created !
! 04.12.2019 Patrick Vogler B87E7E4 V 0.1.0
! !
\*----------------------------------------------------------------------------------------------------------*/
void
bwc_free_data(bwc_stream* data)
{
if(data)
{
if(data->codestream.aux)
{
release_packed_stream(data->codestream.aux);
}
if(data->codestream.com)
{
release_packed_stream(data->codestream.com);
}
free(data->codestream.aux);
free(data->codestream.com);
free(data);
}
}
/*----------------------------------------------------------------------------------------------------------*\
! FUNCTION NAME: uchar create_codec(bwc_codec *const codec) !
! -------------- !