Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

threadsafe basop32 and enh40 files, with control over global variables and exit/abort #171

Open
wants to merge 17 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
2,879 changes: 2,879 additions & 0 deletions src/basop/basop32_threadsafe.c

Large diffs are not rendered by default.

466 changes: 466 additions & 0 deletions src/basop/basop32_threadsafe.h

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions src/basop/basop_platform.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* basop platform include file, v2.0 - 5 Oct 2023

platform definitions to support basop32.c and .h, enh40.c and .h

-assumes stl.h has been included first
-note for EVS codec: stl.h includes typedef.h which includes options.h
*/

#ifndef _BASIC_PLATFORM_H
#define _BASIC_PLATFORM_H

#ifndef _STL_H
#include "stl.h"
#pragma message ( " stl.h not yet included in file " __FILE__ "!" )
#endif

/* codec specific definitions, Oct 2023 */

#define _GENERIC_CODEC_ 0
#define _EVS_CODEC_ 1
#define _AMR_CODEC_ 2
#define _AMR_WB_CODEC_ 3

#ifdef SUPPORT_JBM_TRACEFILE /* "SUPPORT_JBM_TRACEFILE" is defined in ETSI 3GPP EVS source code options.h file, Oct 2023 */
#ifndef _CODEC_TYPE_
#define _CODEC_TYPE_ _EVS_CODEC_ /* _CODEC_TYPE_ could also be defined in the Makefile if needed */
#endif
#else /* EVS developers can put debug compile-time messages here. But needs to be removed for production codes to avoid ITU GPL license violation */
/*
#pragma message ( " options.h not yet included in file " __FILE__ "!" )
*/
#endif

#endif /* _BASIC_PLATFORM_H */
Loading