Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fdk-aac
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
fdk-aac
Commits
8fe6faf2
Commit
8fe6faf2
authored
May 18, 2016
by
Martin Storsjo
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'aosp/master'
parents
f132ac5f
8192b1a9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
32 deletions
+35
-32
Android.mk
Android.mk
+1
-0
libAACdec/src/block.cpp
libAACdec/src/block.cpp
+1
-2
libAACdec/src/rvlcconceal.cpp
libAACdec/src/rvlcconceal.cpp
+2
-2
libAACenc/src/aacenc_lib.cpp
libAACenc/src/aacenc_lib.cpp
+1
-1
libAACenc/src/metadata_compressor.cpp
libAACenc/src/metadata_compressor.cpp
+25
-25
libSBRdec/src/env_extr.cpp
libSBRdec/src/env_extr.cpp
+3
-0
libSBRenc/src/sbr_encoder.cpp
libSBRenc/src/sbr_encoder.cpp
+2
-2
No files found.
Android.mk
View file @
8fe6faf2
...
@@ -40,6 +40,7 @@ LOCAL_SRC_FILES := \
...
@@ -40,6 +40,7 @@ LOCAL_SRC_FILES := \
$
(
sbrenc_sources:%
=
libSBRenc/src/%
)
$
(
sbrenc_sources:%
=
libSBRenc/src/%
)
LOCAL_CFLAGS
+=
-Wno-sequence-point
-Wno-extra
LOCAL_CFLAGS
+=
-Wno-sequence-point
-Wno-extra
LOCAL_CFLAGS
+=
"-Wno-
\#
warnings"
-Wno-constant-logical-operand
-Wno-self-assign
LOCAL_C_INCLUDES
:=
\
LOCAL_C_INCLUDES
:=
\
$(LOCAL_PATH)
/libAACdec/include
\
$(LOCAL_PATH)
/libAACdec/include
\
...
...
libAACdec/src/block.cpp
View file @
8fe6faf2
...
@@ -329,8 +329,7 @@ AAC_DECODER_ERROR CBlock_ReadSectionData(HANDLE_FDK_BITSTREAM bs,
...
@@ -329,8 +329,7 @@ AAC_DECODER_ERROR CBlock_ReadSectionData(HANDLE_FDK_BITSTREAM bs,
if
(
numLinesInSecIdx
>=
MAX_SFB_HCR
)
{
if
(
numLinesInSecIdx
>=
MAX_SFB_HCR
)
{
return
AAC_DEC_PARSE_ERROR
;
return
AAC_DEC_PARSE_ERROR
;
}
}
if
(
if
(
sect_cb
==
BOOKSCL
)
(
sect_cb
==
BOOKSCL
)
)
{
{
return
AAC_DEC_INVALID_CODE_BOOK
;
return
AAC_DEC_INVALID_CODE_BOOK
;
}
else
{
}
else
{
...
...
libAACdec/src/rvlcconceal.cpp
View file @
8fe6faf2
...
@@ -459,7 +459,7 @@ void BidirectionalEstimation_UseScfOfPrevFrameAsReference (
...
@@ -459,7 +459,7 @@ void BidirectionalEstimation_UseScfOfPrevFrameAsReference (
break
;
break
;
case
NOISE_HCB
:
case
NOISE_HCB
:
if
(
(
pAacDecoderStaticChannelInfo
->
concealmentInfo
.
aRvlcPreviousCodebook
[
bnds
]
==
NOISE_HCB
)
)
{
if
(
pAacDecoderStaticChannelInfo
->
concealmentInfo
.
aRvlcPreviousCodebook
[
bnds
]
==
NOISE_HCB
)
{
commonMin
=
FDKmin
(
pAacDecoderChannelInfo
->
pComData
->
overlay
.
aac
.
aRvlcScfFwd
[
bnds
],
pAacDecoderChannelInfo
->
pComData
->
overlay
.
aac
.
aRvlcScfBwd
[
bnds
]);
commonMin
=
FDKmin
(
pAacDecoderChannelInfo
->
pComData
->
overlay
.
aac
.
aRvlcScfFwd
[
bnds
],
pAacDecoderChannelInfo
->
pComData
->
overlay
.
aac
.
aRvlcScfBwd
[
bnds
]);
pAacDecoderChannelInfo
->
pDynData
->
aScaleFactor
[
bnds
]
=
FDKmin
(
commonMin
,
pAacDecoderStaticChannelInfo
->
concealmentInfo
.
aRvlcPreviousScaleFactor
[
bnds
]);
pAacDecoderChannelInfo
->
pDynData
->
aScaleFactor
[
bnds
]
=
FDKmin
(
commonMin
,
pAacDecoderStaticChannelInfo
->
concealmentInfo
.
aRvlcPreviousScaleFactor
[
bnds
]);
}
else
{
}
else
{
...
@@ -669,7 +669,7 @@ void PredictiveInterpolation (
...
@@ -669,7 +669,7 @@ void PredictiveInterpolation (
break
;
break
;
case
NOISE_HCB
:
case
NOISE_HCB
:
if
(
(
pAacDecoderStaticChannelInfo
->
concealmentInfo
.
aRvlcPreviousCodebook
[
bnds
]
==
NOISE_HCB
)
)
{
if
(
pAacDecoderStaticChannelInfo
->
concealmentInfo
.
aRvlcPreviousCodebook
[
bnds
]
==
NOISE_HCB
)
{
commonMin
=
FDKmin
(
pAacDecoderChannelInfo
->
pComData
->
overlay
.
aac
.
aRvlcScfFwd
[
bnds
],
pAacDecoderChannelInfo
->
pComData
->
overlay
.
aac
.
aRvlcScfBwd
[
bnds
]);
commonMin
=
FDKmin
(
pAacDecoderChannelInfo
->
pComData
->
overlay
.
aac
.
aRvlcScfFwd
[
bnds
],
pAacDecoderChannelInfo
->
pComData
->
overlay
.
aac
.
aRvlcScfBwd
[
bnds
]);
pAacDecoderChannelInfo
->
pDynData
->
aScaleFactor
[
bnds
]
=
FDKmin
(
commonMin
,
pAacDecoderStaticChannelInfo
->
concealmentInfo
.
aRvlcPreviousScaleFactor
[
bnds
]);
pAacDecoderChannelInfo
->
pDynData
->
aScaleFactor
[
bnds
]
=
FDKmin
(
commonMin
,
pAacDecoderStaticChannelInfo
->
concealmentInfo
.
aRvlcPreviousScaleFactor
[
bnds
]);
}
}
...
...
libAACenc/src/aacenc_lib.cpp
View file @
8fe6faf2
...
@@ -1046,7 +1046,7 @@ static AACENC_ERROR aacEncInit(HANDLE_AACENCODER hAacEncoder,
...
@@ -1046,7 +1046,7 @@ static AACENC_ERROR aacEncInit(HANDLE_AACENCODER hAacEncoder,
}
}
/* Clear input buffer */
/* Clear input buffer */
if
(
(
InitFlags
==
AACENC_INIT_ALL
)
)
{
if
(
InitFlags
==
AACENC_INIT_ALL
)
{
FDKmemclear
(
hAacEncoder
->
inputBuffer
,
sizeof
(
INT_PCM
)
*
hAacEncoder
->
nMaxAacChannels
*
INPUTBUFFER_SIZE
);
FDKmemclear
(
hAacEncoder
->
inputBuffer
,
sizeof
(
INT_PCM
)
*
hAacEncoder
->
nMaxAacChannels
*
INPUTBUFFER_SIZE
);
}
}
...
...
libAACenc/src/metadata_compressor.cpp
View file @
8fe6faf2
...
@@ -193,36 +193,36 @@ struct DRC_COMP {
...
@@ -193,36 +193,36 @@ struct DRC_COMP {
* Profile tables.
* Profile tables.
*/
*/
static
const
FIXP_DBL
tabMaxBoostThr
[]
=
{
static
const
FIXP_DBL
tabMaxBoostThr
[]
=
{
(
FIXP_DBL
)(
-
43
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
43
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
53
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
53
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
55
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
55
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
65
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
65
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
50
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
50
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
40
<<
METADATA_FRACT_BITS
)
(
FIXP_DBL
)(
int
)((
unsigned
)
-
40
<<
METADATA_FRACT_BITS
)
};
};
static
const
FIXP_DBL
tabBoostThr
[]
=
{
static
const
FIXP_DBL
tabBoostThr
[]
=
{
(
FIXP_DBL
)(
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
41
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
41
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
41
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
41
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
31
<<
METADATA_FRACT_BITS
)
(
FIXP_DBL
)(
int
)((
unsigned
)
-
31
<<
METADATA_FRACT_BITS
)
};
};
static
const
FIXP_DBL
tabEarlyCutThr
[]
=
{
static
const
FIXP_DBL
tabEarlyCutThr
[]
=
{
(
FIXP_DBL
)(
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
20
<<
METADATA_FRACT_BITS
)
(
FIXP_DBL
)(
int
)((
unsigned
)
-
20
<<
METADATA_FRACT_BITS
)
};
};
static
const
FIXP_DBL
tabCutThr
[]
=
{
static
const
FIXP_DBL
tabCutThr
[]
=
{
(
FIXP_DBL
)(
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
11
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
11
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
10
<<
METADATA_FRACT_BITS
)
(
FIXP_DBL
)(
int
)((
unsigned
)
-
10
<<
METADATA_FRACT_BITS
)
};
};
static
const
FIXP_DBL
tabMaxCutThr
[]
=
{
static
const
FIXP_DBL
tabMaxCutThr
[]
=
{
(
FIXP_DBL
)(
4
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
4
<<
METADATA_FRACT_BITS
),
...
@@ -576,7 +576,7 @@ INT FDK_DRC_Generator_Initialize(
...
@@ -576,7 +576,7 @@ INT FDK_DRC_Generator_Initialize(
drcComp
->
channels
=
channelMapping
.
nChannels
;
drcComp
->
channels
=
channelMapping
.
nChannels
;
/* Init states. */
/* Init states. */
drcComp
->
smoothLevel
[
0
]
=
drcComp
->
smoothLevel
[
1
]
=
(
FIXP_DBL
)(
-
135
<<
METADATA_FRACT_BITS
);
drcComp
->
smoothLevel
[
0
]
=
drcComp
->
smoothLevel
[
1
]
=
(
FIXP_DBL
)(
int
)((
unsigned
)
-
135
<<
METADATA_FRACT_BITS
);
FDKmemclear
(
drcComp
->
smoothGain
,
sizeof
(
drcComp
->
smoothGain
));
FDKmemclear
(
drcComp
->
smoothGain
,
sizeof
(
drcComp
->
smoothGain
));
FDKmemclear
(
drcComp
->
holdCnt
,
sizeof
(
drcComp
->
holdCnt
));
FDKmemclear
(
drcComp
->
holdCnt
,
sizeof
(
drcComp
->
holdCnt
));
...
...
libSBRdec/src/env_extr.cpp
View file @
8fe6faf2
...
@@ -904,6 +904,9 @@ static const FRAME_INFO v_frame_info4_8 = { 0, 4, {0, 2, 4, 6, 8}, {1, 1, 1, 1},
...
@@ -904,6 +904,9 @@ static const FRAME_INFO v_frame_info4_8 = { 0, 4, {0, 2, 4, 6, 8}, {1, 1, 1, 1},
break
;
break
;
default:
default:
FDK_ASSERT
(
0
);
FDK_ASSERT
(
0
);
/* in case assertion checks are disabled, force a definite memory fault at first access */
pTable
=
NULL
;
break
;
}
}
/* look number of envelopes in table */
/* look number of envelopes in table */
...
...
libSBRenc/src/sbr_encoder.cpp
View file @
8fe6faf2
...
@@ -1851,10 +1851,10 @@ INT sbrEncoder_Init(
...
@@ -1851,10 +1851,10 @@ INT sbrEncoder_Init(
if
(
(
aot
==
AOT_PS
)
||
(
aot
==
AOT_MP2_PS
)
||
(
aot
==
AOT_DABPLUS_PS
)
||
(
aot
==
AOT_DRM_MPEG_PS
)
)
{
if
(
(
aot
==
AOT_PS
)
||
(
aot
==
AOT_MP2_PS
)
||
(
aot
==
AOT_DABPLUS_PS
)
||
(
aot
==
AOT_DRM_MPEG_PS
)
)
{
usePs
=
1
;
usePs
=
1
;
}
}
if
(
(
aot
==
AOT_ER_AAC_ELD
)
)
{
if
(
aot
==
AOT_ER_AAC_ELD
)
{
lowDelay
=
1
;
lowDelay
=
1
;
}
}
else
if
(
(
aot
==
AOT_ER_AAC_LD
)
)
{
else
if
(
aot
==
AOT_ER_AAC_LD
)
{
error
=
1
;
error
=
1
;
goto
bail
;
goto
bail
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment