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
2702a6f1
Commit
2702a6f1
authored
Jun 22, 2011
by
Jason Garrett-Glaser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
H.264: fix 4:4:4 + deblocking + 8x8dct + cavlc + MBAFF
parent
7c9079ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
h264_loopfilter.c
libavcodec/h264_loopfilter.c
+5
-5
No files found.
libavcodec/h264_loopfilter.c
View file @
2702a6f1
...
...
@@ -393,10 +393,10 @@ static av_always_inline void filter_mb_dir(H264Context *h, int mb_x, int mb_y, u
AV_WN64A
(
bS
,
0x0003000300030003ULL
);
}
else
{
if
(
!
CABAC
&&
IS_8x8DCT
(
s
->
current_picture
.
mb_type
[
mbn_xy
])){
bS
[
0
]
=
1
+
((
h
->
cbp_table
[
mbn_xy
]
&
4
)
||
h
->
non_zero_count_cache
[
scan8
[
0
]
+
0
]);
bS
[
1
]
=
1
+
((
h
->
cbp_table
[
mbn_xy
]
&
4
)
||
h
->
non_zero_count_cache
[
scan8
[
0
]
+
1
]);
bS
[
2
]
=
1
+
((
h
->
cbp_table
[
mbn_xy
]
&
8
)
||
h
->
non_zero_count_cache
[
scan8
[
0
]
+
2
]);
bS
[
3
]
=
1
+
((
h
->
cbp_table
[
mbn_xy
]
&
8
)
||
h
->
non_zero_count_cache
[
scan8
[
0
]
+
3
]);
bS
[
0
]
=
1
+
((
h
->
cbp_table
[
mbn_xy
]
&
0x4000
)
||
h
->
non_zero_count_cache
[
scan8
[
0
]
+
0
]);
bS
[
1
]
=
1
+
((
h
->
cbp_table
[
mbn_xy
]
&
0x4000
)
||
h
->
non_zero_count_cache
[
scan8
[
0
]
+
1
]);
bS
[
2
]
=
1
+
((
h
->
cbp_table
[
mbn_xy
]
&
0x8000
)
||
h
->
non_zero_count_cache
[
scan8
[
0
]
+
2
]);
bS
[
3
]
=
1
+
((
h
->
cbp_table
[
mbn_xy
]
&
0x8000
)
||
h
->
non_zero_count_cache
[
scan8
[
0
]
+
3
]);
}
else
{
const
uint8_t
*
mbn_nnz
=
h
->
non_zero_count
[
mbn_xy
]
+
3
*
4
;
int
i
;
...
...
@@ -635,7 +635,7 @@ void ff_h264_filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint
else
{
bS
[
i
]
=
1
+
!!
(
h
->
non_zero_count_cache
[
12
+
8
*
(
i
>>
1
)]
|
((
!
h
->
pps
.
cabac
&&
IS_8x8DCT
(
mbn_type
))
?
(
h
->
cbp_table
[
mbn_xy
]
&
((
MB_FIELD
?
(
i
&
2
)
:
(
mb_y
&
1
))
?
8
:
2
))
(
h
->
cbp_table
[
mbn_xy
]
&
((
(
MB_FIELD
?
(
i
&
2
)
:
(
mb_y
&
1
))
?
8
:
2
)
<<
1
2
))
:
h
->
non_zero_count
[
mbn_xy
][
off
[
i
]
]));
}
...
...
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