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

helix-aac: add MACRO for PNS feature to disable MPEG4 support #1

Merged
merged 1 commit into from
Jan 14, 2025
Merged
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
4 changes: 4 additions & 0 deletions aaccommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
#include "Arduino.h"
//#include <pgmspace.h>

#ifdef CONFIG_LIB_HELIX_AAC_PNS
#define AAC_ENABLE_PNS 1
#endif

#ifdef CONFIG_LIB_HELIX_AAC_SBR
#define AAC_ENABLE_SBR 1
#endif
Expand Down
14 changes: 14 additions & 0 deletions pns.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
#include "coder.h"
#include "assembly.h"

#ifdef AAC_ENABLE_PNS

/**************************************************************************************
* Function: Get32BitVal
*
Expand Down Expand Up @@ -363,3 +365,15 @@ int PNS(AACDecInfo *aacDecInfo, int ch)

return 0;
}

#else

int PNS(AACDecInfo *aacDecInfo, int ch)
{
if (aacDecInfo->pnsUsed)
return ERR_AAC_PNS;
else
return ERR_AAC_NONE;
}

#endif
Loading