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
9f734c3b
Commit
9f734c3b
authored
Jul 02, 2008
by
Alexander Strange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent.
Originally committed as revision 14051 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9588ec34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
31 deletions
+31
-31
h264.c
libavcodec/h264.c
+31
-31
No files found.
libavcodec/h264.c
View file @
9f734c3b
...
...
@@ -5342,22 +5342,22 @@ static av_always_inline int get_cabac_cbf_ctx( H264Context *h, int cat, int idx,
int
ctx
=
0
;
if
(
is_dc
)
{
if
(
cat
==
0
)
{
nza
=
h
->
left_cbp
&
0x100
;
nzb
=
h
->
top_cbp
&
0x100
;
}
else
{
nza
=
(
h
->
left_cbp
>>
(
6
+
idx
))
&
0x01
;
nzb
=
(
h
->
top_cbp
>>
(
6
+
idx
))
&
0x01
;
}
}
else
{
if
(
cat
==
1
||
cat
==
2
)
{
nza
=
h
->
non_zero_count_cache
[
scan8
[
idx
]
-
1
];
nzb
=
h
->
non_zero_count_cache
[
scan8
[
idx
]
-
8
];
if
(
cat
==
0
)
{
nza
=
h
->
left_cbp
&
0x100
;
nzb
=
h
->
top_cbp
&
0x100
;
}
else
{
nza
=
(
h
->
left_cbp
>>
(
6
+
idx
))
&
0x01
;
nzb
=
(
h
->
top_cbp
>>
(
6
+
idx
))
&
0x01
;
}
}
else
{
assert
(
cat
==
4
);
nza
=
h
->
non_zero_count_cache
[
scan8
[
16
+
idx
]
-
1
];
nzb
=
h
->
non_zero_count_cache
[
scan8
[
16
+
idx
]
-
8
];
}
if
(
cat
==
1
||
cat
==
2
)
{
nza
=
h
->
non_zero_count_cache
[
scan8
[
idx
]
-
1
];
nzb
=
h
->
non_zero_count_cache
[
scan8
[
idx
]
-
8
];
}
else
{
assert
(
cat
==
4
);
nza
=
h
->
non_zero_count_cache
[
scan8
[
16
+
idx
]
-
1
];
nzb
=
h
->
non_zero_count_cache
[
scan8
[
16
+
idx
]
-
8
];
}
}
if
(
nza
>
0
)
...
...
@@ -5447,10 +5447,10 @@ static av_always_inline void decode_cabac_residual_internal( H264Context *h, DCT
if
(
is_dc
||
cat
!=
5
)
{
if
(
get_cabac
(
CC
,
&
h
->
cabac_state
[
85
+
get_cabac_cbf_ctx
(
h
,
cat
,
n
,
is_dc
)
]
)
==
0
)
{
if
(
!
is_dc
)
{
if
(
cat
==
1
||
cat
==
2
)
h
->
non_zero_count_cache
[
scan8
[
n
]]
=
0
;
else
h
->
non_zero_count_cache
[
scan8
[
16
+
n
]]
=
0
;
if
(
cat
==
1
||
cat
==
2
)
h
->
non_zero_count_cache
[
scan8
[
n
]]
=
0
;
else
h
->
non_zero_count_cache
[
scan8
[
16
+
n
]]
=
0
;
}
#ifdef CABAC_ON_STACK
...
...
@@ -5499,19 +5499,19 @@ static av_always_inline void decode_cabac_residual_internal( H264Context *h, DCT
assert
(
coeff_count
>
0
);
if
(
is_dc
)
{
if
(
cat
==
0
)
h
->
cbp_table
[
h
->
mb_xy
]
|=
0x100
;
else
h
->
cbp_table
[
h
->
mb_xy
]
|=
0x40
<<
n
;
if
(
cat
==
0
)
h
->
cbp_table
[
h
->
mb_xy
]
|=
0x100
;
else
h
->
cbp_table
[
h
->
mb_xy
]
|=
0x40
<<
n
;
}
else
{
if
(
cat
==
1
||
cat
==
2
)
h
->
non_zero_count_cache
[
scan8
[
n
]]
=
coeff_count
;
else
if
(
cat
==
4
)
h
->
non_zero_count_cache
[
scan8
[
16
+
n
]]
=
coeff_count
;
else
{
assert
(
cat
==
5
);
fill_rectangle
(
&
h
->
non_zero_count_cache
[
scan8
[
n
]],
2
,
2
,
8
,
coeff_count
,
1
);
}
if
(
cat
==
1
||
cat
==
2
)
h
->
non_zero_count_cache
[
scan8
[
n
]]
=
coeff_count
;
else
if
(
cat
==
4
)
h
->
non_zero_count_cache
[
scan8
[
16
+
n
]]
=
coeff_count
;
else
{
assert
(
cat
==
5
);
fill_rectangle
(
&
h
->
non_zero_count_cache
[
scan8
[
n
]],
2
,
2
,
8
,
coeff_count
,
1
);
}
}
for
(
coeff_count
--
;
coeff_count
>=
0
;
coeff_count
--
)
{
...
...
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