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
bee80054
Commit
bee80054
authored
Feb 03, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alacenc: cosmetics: indentation
parent
b6e8ff72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
alacenc.c
libavcodec/alacenc.c
+27
-27
No files found.
libavcodec/alacenc.c
View file @
bee80054
...
...
@@ -360,41 +360,41 @@ static int write_frame(AlacEncodeContext *s, uint8_t *data, int size,
for
(
i
=
0
;
i
<
s
->
frame_size
*
s
->
avctx
->
channels
;
i
++
)
put_sbits
(
pb
,
16
,
*
samples
++
);
}
else
{
init_sample_buffers
(
s
,
samples
);
write_frame_header
(
s
);
init_sample_buffers
(
s
,
samples
);
write_frame_header
(
s
);
if
(
s
->
avctx
->
channels
==
2
)
alac_stereo_decorrelation
(
s
);
put_bits
(
pb
,
8
,
s
->
interlacing_shift
);
put_bits
(
pb
,
8
,
s
->
interlacing_leftweight
);
if
(
s
->
avctx
->
channels
==
2
)
alac_stereo_decorrelation
(
s
);
put_bits
(
pb
,
8
,
s
->
interlacing_shift
);
put_bits
(
pb
,
8
,
s
->
interlacing_leftweight
);
for
(
i
=
0
;
i
<
s
->
avctx
->
channels
;
i
++
)
{
calc_predictor_params
(
s
,
i
);
for
(
i
=
0
;
i
<
s
->
avctx
->
channels
;
i
++
)
{
calc_predictor_params
(
s
,
i
);
put_bits
(
pb
,
4
,
prediction_type
);
put_bits
(
pb
,
4
,
s
->
lpc
[
i
].
lpc_quant
);
put_bits
(
pb
,
4
,
prediction_type
);
put_bits
(
pb
,
4
,
s
->
lpc
[
i
].
lpc_quant
);
put_bits
(
pb
,
3
,
s
->
rc
.
rice_modifier
);
put_bits
(
pb
,
5
,
s
->
lpc
[
i
].
lpc_order
);
// predictor coeff. table
for
(
j
=
0
;
j
<
s
->
lpc
[
i
].
lpc_order
;
j
++
)
put_sbits
(
pb
,
16
,
s
->
lpc
[
i
].
lpc_coeff
[
j
]);
}
put_bits
(
pb
,
3
,
s
->
rc
.
rice_modifier
);
put_bits
(
pb
,
5
,
s
->
lpc
[
i
].
lpc_order
);
// predictor coeff. table
for
(
j
=
0
;
j
<
s
->
lpc
[
i
].
lpc_order
;
j
++
)
put_sbits
(
pb
,
16
,
s
->
lpc
[
i
].
lpc_coeff
[
j
]);
}
// apply lpc and entropy coding to audio samples
// apply lpc and entropy coding to audio samples
for
(
i
=
0
;
i
<
s
->
avctx
->
channels
;
i
++
)
{
alac_linear_predictor
(
s
,
i
);
for
(
i
=
0
;
i
<
s
->
avctx
->
channels
;
i
++
)
{
alac_linear_predictor
(
s
,
i
);
// TODO: determine when this will actually help. for now it's not used.
if
(
prediction_type
==
15
)
{
// 2nd pass 1st order filter
for
(
j
=
s
->
frame_size
-
1
;
j
>
0
;
j
--
)
s
->
predictor_buf
[
j
]
-=
s
->
predictor_buf
[
j
-
1
];
}
// TODO: determine when this will actually help. for now it's not used.
if
(
prediction_type
==
15
)
{
// 2nd pass 1st order filter
for
(
j
=
s
->
frame_size
-
1
;
j
>
0
;
j
--
)
s
->
predictor_buf
[
j
]
-=
s
->
predictor_buf
[
j
-
1
];
}
alac_entropy_coder
(
s
);
}
alac_entropy_coder
(
s
);
}
}
put_bits
(
pb
,
3
,
7
);
flush_put_bits
(
pb
);
...
...
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