Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b295bce1
Commit
b295bce1
authored
Feb 14, 2014
by
Reynaldo H. Verdejo Pinochet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcelp: grammar
Signed-off-by:
Reynaldo H. Verdejo Pinochet
<
r.verdejo@sisa.samsung.com
>
parent
84cdd2fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
qcelpdata.h
libavcodec/qcelpdata.h
+14
-14
qcelpdec.c
libavcodec/qcelpdec.c
+2
-2
No files found.
libavcodec/qcelpdata.h
View file @
b295bce1
...
...
@@ -66,7 +66,7 @@ typedef struct QCELPFrame {
}
QCELPFrame
;
/**
*
pre-calculated table for hammsinc function
*
Pre-calculated table for hammsinc function.
* Only half of the table is needed because of symmetry.
*
* TIA/EIA/IS-733 2.4.5.2-2/3
...
...
@@ -82,7 +82,7 @@ typedef struct QCELPBitmap {
#define QCELP_OF(variable, bit, len) {offsetof(QCELPFrame, variable), bit, len}
/**
*
b
itmap unpacking tables for RATE_FULL
*
B
itmap unpacking tables for RATE_FULL
*
* TIA/EIA/IS-733 Table 2.4.7.1-1
*/
...
...
@@ -169,7 +169,7 @@ static const QCELPBitmap qcelp_rate_full_bitmap[] = {
};
/**
*
b
itmap unpacking tables for RATE_HALF
*
B
itmap unpacking tables for RATE_HALF
*
* TIA/EIA/IS-733 Table 2.4.7.2-1
*/
...
...
@@ -211,7 +211,7 @@ static const QCELPBitmap qcelp_rate_half_bitmap[] = {
};
/**
*
b
itmap unpacking tables for RATE_QUARTER
*
B
itmap unpacking tables for RATE_QUARTER
*
* TIA/EIA/IS-733 Table 2.4.7.3-1
*/
...
...
@@ -232,7 +232,7 @@ static const QCELPBitmap qcelp_rate_quarter_bitmap[] = {
};
/**
*
b
itmap unpacking tables for RATE_OCTAVE
*
B
itmap unpacking tables for RATE_OCTAVE
*
* trick: CBSEED is written into QCELPContext.cbsign[15],
* which is not used for RATE_OCTAVE.
...
...
@@ -262,7 +262,7 @@ static const QCELPBitmap qcelp_rate_octave_bitmap[] = {
};
/**
*
position of the bitmapping data
for each packet type in
*
Bitmapping data position
for each packet type in
* the QCELPContext
*/
static
const
QCELPBitmap
*
const
qcelp_unpacking_bitmaps_per_rate
[
5
]
=
{
...
...
@@ -420,12 +420,12 @@ static const qcelp_vector * const qcelp_lspvq[5] = {
};
/**
*
t
he final gain scalefactor before clipping into a usable output float
*
T
he final gain scalefactor before clipping into a usable output float
*/
#define QCELP_SCALE 8192.
/**
*
t
able for computing Ga (decoded linear codebook gain magnitude)
*
T
able for computing Ga (decoded linear codebook gain magnitude)
*
* @note The table could fit in int16_t in x*8 form, but it seems
* to be slower on x86
...
...
@@ -452,7 +452,7 @@ static const float qcelp_g12ga[61] = {
1000
.
000
/
QCELP_SCALE
};
/**
*
c
ircular codebook for rate 1 frames in x*100 form
*
C
ircular codebook for rate 1 frames in x*100 form
*
* TIA/EIA/IS-733 2.4.6.1-2
*/
...
...
@@ -477,7 +477,7 @@ static const int16_t qcelp_rate_full_codebook[128] = {
#define QCELP_RATE_FULL_CODEBOOK_RATIO .01
/**
*
c
ircular codebook for rate 1/2 frames in x*2 form
*
C
ircular codebook for rate 1/2 frames in x*2 form
*
* TIA/EIA/IS-733 2.4.6.1-1
*/
...
...
@@ -511,7 +511,7 @@ static const int8_t qcelp_rate_half_codebook[128] = {
#define QCELP_SQRT1887 1.373681186
/**
*
t
able for impulse response of BPF used to filter
*
T
able for impulse response of BPF used to filter
* the white excitation for bitrate 1/4 synthesis
*
* Only half the tables are needed because of symmetry.
...
...
@@ -526,14 +526,14 @@ static const double qcelp_rnd_fir_coefs[11] = {
/**
* This spread factor is used, for bitrate 1/8 and I_F_Q,
* to force
the
LSP frequencies to be at least 80 Hz apart.
* to force LSP frequencies to be at least 80 Hz apart.
*
* TIA/EIA/IS-733 2.4.3.3.2
*/
#define QCELP_LSP_SPREAD_FACTOR 0.02
/**
*
p
redictor coefficient for the conversion of LSP codes
*
P
redictor coefficient for the conversion of LSP codes
* to LSP frequencies for 1/8 and I_F_Q
*
* TIA/EIA/IS-733 2.4.3.2.7-2
...
...
@@ -541,7 +541,7 @@ static const double qcelp_rnd_fir_coefs[11] = {
#define QCELP_LSP_OCTAVE_PREDICTOR 29.0/32
/**
*
i
nitial coefficient to perform bandwidth expansion on LPC
*
I
nitial coefficient to perform bandwidth expansion on LPC
*
* @note: 0.9883 looks like an approximation of 253/256.
*
...
...
libavcodec/qcelpdec.c
View file @
b295bce1
...
...
@@ -633,7 +633,7 @@ static qcelp_packet_rate determine_bitrate(AVCodecContext *avctx,
(
*
buf
)
++
;
}
else
if
((
bitrate
=
buf_size2bitrate
(
buf_size
+
1
))
>=
0
)
{
av_log
(
avctx
,
AV_LOG_WARNING
,
"Bitrate byte
is missing, guessing the
bitrate from packet size.
\n
"
);
"Bitrate byte
missing, guessing
bitrate from packet size.
\n
"
);
}
else
return
I_F_Q
;
...
...
@@ -703,7 +703,7 @@ static int qcelp_decode_frame(AVCodecContext *avctx, void *data,
outbuffer
=
(
float
*
)
frame
->
data
[
0
];
if
((
q
->
bitrate
=
determine_bitrate
(
avctx
,
buf_size
,
&
buf
))
==
I_F_Q
)
{
warn_insufficient_frame_quality
(
avctx
,
"
b
itrate cannot be determined."
);
warn_insufficient_frame_quality
(
avctx
,
"
B
itrate cannot be determined."
);
goto
erasure
;
}
...
...
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