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
d5fda00e
Commit
d5fda00e
authored
Aug 02, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4videoenc: Kill non-compiling disabled cruft
parent
e4d5b551
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
28 deletions
+0
-28
mpeg4videoenc.c
libavcodec/mpeg4videoenc.c
+0
-28
No files found.
libavcodec/mpeg4videoenc.c
View file @
d5fda00e
...
...
@@ -256,7 +256,6 @@ void ff_clean_mpeg4_qscales(MpegEncContext *s)
*/
static
inline
void
mpeg4_encode_dc
(
PutBitContext
*
s
,
int
level
,
int
n
)
{
#if 1
/* DC will overflow if level is outside the [-255,255] range. */
level
+=
256
;
if
(
n
<
4
)
{
...
...
@@ -266,33 +265,6 @@ static inline void mpeg4_encode_dc(PutBitContext *s, int level, int n)
/* chrominance */
put_bits
(
s
,
uni_DCtab_chrom_len
[
level
],
uni_DCtab_chrom_bits
[
level
]);
}
#else
int
size
,
v
;
/* find number of bits */
size
=
0
;
v
=
abs
(
level
);
while
(
v
)
{
v
>>=
1
;
size
++
;
}
if
(
n
<
4
)
{
/* luminance */
put_bits
(
&
s
->
pb
,
ff_mpeg4_DCtab_lum
[
size
][
1
],
ff_mpeg4_DCtab_lum
[
size
][
0
]);
}
else
{
/* chrominance */
put_bits
(
&
s
->
pb
,
ff_mpeg4_DCtab_chrom
[
size
][
1
],
ff_mpeg4_DCtab_chrom
[
size
][
0
]);
}
/* encode remaining bits */
if
(
size
>
0
)
{
if
(
level
<
0
)
level
=
(
-
level
)
^
((
1
<<
size
)
-
1
);
put_bits
(
&
s
->
pb
,
size
,
level
);
if
(
size
>
8
)
put_bits
(
&
s
->
pb
,
1
,
1
);
}
#endif
}
static
inline
int
mpeg4_get_dc_length
(
int
level
,
int
n
)
...
...
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