Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
362bfe29
Commit
362bfe29
authored
14 years ago
by
Diego Elio Pettenò
Committed by
Mans Rullgard
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused ac3_parametric_bit_allocation function.
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
3d157bf3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavcodec/ac3.c
+0
-23
0 additions, 23 deletions
libavcodec/ac3.c
libavcodec/ac3.h
+0
-7
0 additions, 7 deletions
libavcodec/ac3.h
with
0 additions
and
30 deletions
libavcodec/ac3.c
+
0
−
23
View file @
362bfe29
...
...
@@ -237,29 +237,6 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
}
while
(
end
>
band_start_tab
[
band
++
]);
}
/* AC-3 bit allocation. The algorithm is the one described in the AC-3
spec. */
void
ac3_parametric_bit_allocation
(
AC3BitAllocParameters
*
s
,
uint8_t
*
bap
,
int8_t
*
exp
,
int
start
,
int
end
,
int
snr_offset
,
int
fast_gain
,
int
is_lfe
,
int
dba_mode
,
int
dba_nsegs
,
uint8_t
*
dba_offsets
,
uint8_t
*
dba_lengths
,
uint8_t
*
dba_values
)
{
int16_t
psd
[
AC3_MAX_COEFS
];
/* scaled exponents */
int16_t
band_psd
[
AC3_CRITICAL_BANDS
];
/* interpolated exponents */
int16_t
mask
[
AC3_CRITICAL_BANDS
];
/* masking value */
ff_ac3_bit_alloc_calc_psd
(
exp
,
start
,
end
,
psd
,
band_psd
);
ff_ac3_bit_alloc_calc_mask
(
s
,
band_psd
,
start
,
end
,
fast_gain
,
is_lfe
,
dba_mode
,
dba_nsegs
,
dba_offsets
,
dba_lengths
,
dba_values
,
mask
);
ff_ac3_bit_alloc_calc_bap
(
mask
,
psd
,
start
,
end
,
snr_offset
,
s
->
floor
,
ff_ac3_bap_tab
,
bap
);
}
/**
* Initialize some tables.
* note: This function must remain thread safe because it is called by the
...
...
This diff is collapsed.
Click to expand it.
libavcodec/ac3.h
+
0
−
7
View file @
362bfe29
...
...
@@ -181,11 +181,4 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
int
snr_offset
,
int
floor
,
const
uint8_t
*
bap_tab
,
uint8_t
*
bap
);
void
ac3_parametric_bit_allocation
(
AC3BitAllocParameters
*
s
,
uint8_t
*
bap
,
int8_t
*
exp
,
int
start
,
int
end
,
int
snr_offset
,
int
fast_gain
,
int
is_lfe
,
int
dba_mode
,
int
dba_nsegs
,
uint8_t
*
dba_offsets
,
uint8_t
*
dba_lengths
,
uint8_t
*
dba_values
);
#endif
/* AVCODEC_AC3_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment