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
db4d9faf
Commit
db4d9faf
authored
Oct 24, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimzation
Originally committed as revision 3630 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
58897665
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
h264.c
libavcodec/h264.c
+9
-9
No files found.
libavcodec/h264.c
View file @
db4d9faf
...
...
@@ -4118,8 +4118,7 @@ static int decode_cabac_mb_mvd( H264Context *h, int list, int n, int l ) {
int
amvd
=
abs
(
h
->
mvd_cache
[
list
][
scan8
[
n
]
-
1
][
l
]
)
+
abs
(
h
->
mvd_cache
[
list
][
scan8
[
n
]
-
8
][
l
]
);
int
ctxbase
=
(
l
==
0
)
?
40
:
47
;
int
ctx
;
int
mvd
=
0
;
int
ctx
,
mvd
;
if
(
amvd
<
3
)
ctx
=
0
;
...
...
@@ -4128,11 +4127,14 @@ static int decode_cabac_mb_mvd( H264Context *h, int list, int n, int l ) {
else
ctx
=
1
;
if
(
!
get_cabac
(
&
h
->
cabac
,
&
h
->
cabac_state
[
ctxbase
+
ctx
]))
return
0
;
mvd
=
1
;
ctx
=
3
;
while
(
mvd
<
9
&&
get_cabac
(
&
h
->
cabac
,
&
h
->
cabac_state
[
ctxbase
+
ctx
]
)
)
{
mvd
++
;
if
(
ctx
<
3
)
ctx
=
3
;
else
if
(
ctx
<
6
)
if
(
ctx
<
6
)
ctx
++
;
}
...
...
@@ -4147,12 +4149,10 @@ static int decode_cabac_mb_mvd( H264Context *h, int list, int n, int l ) {
mvd
+=
1
<<
k
;
}
}
if
(
mvd
!=
0
&&
get_cabac_bypass
(
&
h
->
cabac
)
)
return
-
mvd
;
return
mvd
;
if
(
get_cabac_bypass
(
&
h
->
cabac
)
)
return
-
mvd
;
else
return
mvd
;
}
static
int
inline
get_cabac_cbf_ctx
(
H264Context
*
h
,
int
cat
,
int
idx
)
{
int
nza
,
nzb
;
int
ctx
=
0
;
...
...
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