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
5bbad3eb
Commit
5bbad3eb
authored
Oct 28, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
Originally committed as revision 3650 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
87b9e6b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
h261.c
libavcodec/h261.c
+3
-9
No files found.
libavcodec/h261.c
View file @
5bbad3eb
...
@@ -325,8 +325,7 @@ static void h261_encode_block(H261Context * h, DCTELEM * block, int n){
...
@@ -325,8 +325,7 @@ static void h261_encode_block(H261Context * h, DCTELEM * block, int n){
i
=
1
;
i
=
1
;
}
else
if
((
block
[
0
]
==
1
||
block
[
0
]
==
-
1
)
&&
(
s
->
block_last_index
[
n
]
>
-
1
)){
}
else
if
((
block
[
0
]
==
1
||
block
[
0
]
==
-
1
)
&&
(
s
->
block_last_index
[
n
]
>
-
1
)){
//special case
//special case
put_bits
(
&
s
->
pb
,
1
,
1
);
put_bits
(
&
s
->
pb
,
2
,
block
[
0
]
>
0
?
2
:
3
);
put_bits
(
&
s
->
pb
,
1
,
block
[
0
]
>
0
?
0
:
1
);
i
=
1
;
i
=
1
;
}
else
{
}
else
{
i
=
0
;
i
=
0
;
...
@@ -354,12 +353,7 @@ static void h261_encode_block(H261Context * h, DCTELEM * block, int n){
...
@@ -354,12 +353,7 @@ static void h261_encode_block(H261Context * h, DCTELEM * block, int n){
if
(
code
==
rl
->
n
)
{
if
(
code
==
rl
->
n
)
{
put_bits
(
&
s
->
pb
,
6
,
run
);
put_bits
(
&
s
->
pb
,
6
,
run
);
assert
(
slevel
!=
0
);
assert
(
slevel
!=
0
);
if
(
slevel
<
-
127
){
assert
(
level
<=
127
);
slevel
=
-
127
;
}
else
if
(
slevel
>
127
){
slevel
=
127
;
}
put_bits
(
&
s
->
pb
,
8
,
slevel
&
0xff
);
put_bits
(
&
s
->
pb
,
8
,
slevel
&
0xff
);
}
else
{
}
else
{
put_bits
(
&
s
->
pb
,
1
,
sign
);
put_bits
(
&
s
->
pb
,
1
,
sign
);
...
@@ -742,7 +736,7 @@ static int h261_decode_block(H261Context * h, DCTELEM * block,
...
@@ -742,7 +736,7 @@ static int h261_decode_block(H261Context * h, DCTELEM * block,
/* escape */
/* escape */
// The remaining combinations of (run, level) are encoded with a 20-bit word consisting of 6 bits escape, 6 bits run and 8 bits level.
// The remaining combinations of (run, level) are encoded with a 20-bit word consisting of 6 bits escape, 6 bits run and 8 bits level.
run
=
get_bits
(
&
s
->
gb
,
6
);
run
=
get_bits
(
&
s
->
gb
,
6
);
level
=
(
int8_t
)
get_
bits
(
&
s
->
gb
,
8
);
level
=
get_s
bits
(
&
s
->
gb
,
8
);
}
else
if
(
code
==
0
){
}
else
if
(
code
==
0
){
break
;
break
;
}
else
{
}
else
{
...
...
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