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
f23b4a06
Commit
f23b4a06
authored
Oct 23, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cook: cosmetics: Better names for joint_decode() function parameters
parent
20015379
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
cook.c
libavcodec/cook.c
+8
-7
No files found.
libavcodec/cook.c
View file @
f23b4a06
...
...
@@ -809,8 +809,8 @@ static void decouple_float(COOKContext *q,
* @param mlt_buffer1 pointer to left channel mlt coefficients
* @param mlt_buffer2 pointer to right channel mlt coefficients
*/
static
int
joint_decode
(
COOKContext
*
q
,
COOKSubpacket
*
p
,
float
*
mlt_buffer1
,
float
*
mlt_buffer
2
)
static
int
joint_decode
(
COOKContext
*
q
,
COOKSubpacket
*
p
,
float
*
mlt_buffer
_left
,
float
*
mlt_buffer_right
)
{
int
i
,
j
,
res
;
int
decouple_tab
[
SUBBAND_SIZE
]
=
{
0
};
...
...
@@ -822,8 +822,8 @@ static int joint_decode(COOKContext *q, COOKSubpacket *p, float *mlt_buffer1,
memset
(
decode_buffer
,
0
,
sizeof
(
q
->
decode_buffer_0
));
/* Make sure the buffers are zeroed out. */
memset
(
mlt_buffer
1
,
0
,
1024
*
sizeof
(
*
mlt_buffer1
));
memset
(
mlt_buffer
2
,
0
,
1024
*
sizeof
(
*
mlt_buffer2
));
memset
(
mlt_buffer
_left
,
0
,
1024
*
sizeof
(
*
mlt_buffer_left
));
memset
(
mlt_buffer
_right
,
0
,
1024
*
sizeof
(
*
mlt_buffer_right
));
decouple_info
(
q
,
p
,
decouple_tab
);
if
((
res
=
mono_decode
(
q
,
p
,
decode_buffer
))
<
0
)
return
res
;
...
...
@@ -831,8 +831,8 @@ static int joint_decode(COOKContext *q, COOKSubpacket *p, float *mlt_buffer1,
/* The two channels are stored interleaved in decode_buffer. */
for
(
i
=
0
;
i
<
p
->
js_subband_start
;
i
++
)
{
for
(
j
=
0
;
j
<
SUBBAND_SIZE
;
j
++
)
{
mlt_buffer
1
[
i
*
20
+
j
]
=
decode_buffer
[
i
*
40
+
j
];
mlt_buffer
2
[
i
*
20
+
j
]
=
decode_buffer
[
i
*
40
+
20
+
j
];
mlt_buffer
_left
[
i
*
20
+
j
]
=
decode_buffer
[
i
*
40
+
j
];
mlt_buffer
_right
[
i
*
20
+
j
]
=
decode_buffer
[
i
*
40
+
20
+
j
];
}
}
...
...
@@ -845,7 +845,8 @@ static int joint_decode(COOKContext *q, COOKSubpacket *p, float *mlt_buffer1,
cplscale
=
q
->
cplscales
[
p
->
js_vlc_bits
-
2
];
// choose decoupler table
f1
=
cplscale
[
decouple_tab
[
cpl_tmp
]
+
1
];
f2
=
cplscale
[
idx
];
q
->
decouple
(
q
,
p
,
i
,
f1
,
f2
,
decode_buffer
,
mlt_buffer1
,
mlt_buffer2
);
q
->
decouple
(
q
,
p
,
i
,
f1
,
f2
,
decode_buffer
,
mlt_buffer_left
,
mlt_buffer_right
);
idx
=
(
1
<<
p
->
js_vlc_bits
)
-
1
;
}
...
...
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