Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
911fbc45
Commit
911fbc45
authored
May 28, 2010
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics: whitespace
Originally committed as revision 23367 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
04d6a54e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
aaccoder.c
libavcodec/aaccoder.c
+17
-17
No files found.
libavcodec/aaccoder.c
View file @
911fbc45
...
...
@@ -580,7 +580,7 @@ static void search_for_quantizers_anmr(AVCodecContext *avctx, AACEncContext *s,
for
(
w2
=
0
;
w2
<
sce
->
ics
.
group_len
[
w
];
w2
++
)
{
FFPsyBand
*
band
=
&
s
->
psy
.
psy_bands
[
s
->
cur_channel
*
PSY_MAX_BANDS
+
(
w
+
w2
)
*
16
+
g
];
dist
+=
quantize_band_cost
(
s
,
coefs
+
w2
*
128
,
s
->
scoefs
+
start
+
w2
*
128
,
sce
->
ics
.
swb_sizes
[
g
],
q
+
q0
,
cb
,
lambda
/
band
->
threshold
,
INFINITY
,
NULL
);
q
+
q0
,
cb
,
lambda
/
band
->
threshold
,
INFINITY
,
NULL
);
}
minrd
=
FFMIN
(
minrd
,
dist
);
...
...
@@ -596,8 +596,8 @@ static void search_for_quantizers_anmr(AVCodecContext *avctx, AACEncContext *s,
}
}
else
{
for
(
q
=
0
;
q
<
q1
-
q0
;
q
++
)
{
paths
[
idx
][
q
].
cost
=
paths
[
idx
-
1
][
q
].
cost
+
1
;
paths
[
idx
][
q
].
prev
=
q
;
paths
[
idx
][
q
].
cost
=
paths
[
idx
-
1
][
q
].
cost
+
1
;
paths
[
idx
][
q
].
prev
=
q
;
}
}
sce
->
zeroes
[
w
*
16
+
g
]
=
!
nz
;
...
...
@@ -703,20 +703,20 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx,
continue
;
}
minscaler
=
FFMIN
(
minscaler
,
sce
->
sf_idx
[
w
*
16
+
g
]);
cb
=
find_min_book
(
find_max_val
(
sce
->
ics
.
group_len
[
w
],
sce
->
ics
.
swb_sizes
[
g
],
scaled
),
sce
->
sf_idx
[
w
*
16
+
g
]);
sce
->
band_type
[
w
*
16
+
g
]
=
cb
;
for
(
w2
=
0
;
w2
<
sce
->
ics
.
group_len
[
w
];
w2
++
)
{
int
b
;
dist
+=
quantize_band_cost
(
s
,
coefs
+
w2
*
128
,
scaled
+
w2
*
128
,
sce
->
ics
.
swb_sizes
[
g
],
sce
->
sf_idx
[
w
*
16
+
g
],
cb
,
lambda
,
INFINITY
,
&
b
);
bits
+=
b
;
}
cb
=
find_min_book
(
find_max_val
(
sce
->
ics
.
group_len
[
w
],
sce
->
ics
.
swb_sizes
[
g
],
scaled
),
sce
->
sf_idx
[
w
*
16
+
g
]);
sce
->
band_type
[
w
*
16
+
g
]
=
cb
;
for
(
w2
=
0
;
w2
<
sce
->
ics
.
group_len
[
w
];
w2
++
)
{
int
b
;
dist
+=
quantize_band_cost
(
s
,
coefs
+
w2
*
128
,
scaled
+
w2
*
128
,
sce
->
ics
.
swb_sizes
[
g
],
sce
->
sf_idx
[
w
*
16
+
g
],
cb
,
lambda
,
INFINITY
,
&
b
);
bits
+=
b
;
}
dists
[
w
*
16
+
g
]
=
(
dist
-
bits
)
/
lambda
;
if
(
prev
!=
-
1
)
{
bits
+=
ff_aac_scalefactor_bits
[
sce
->
sf_idx
[
w
*
16
+
g
]
-
prev
+
SCALE_DIFF_ZERO
];
...
...
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