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
0fe674cb
Commit
0fe674cb
authored
Jan 18, 2010
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use h->slice_num where possible.
Originally committed as revision 21292 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
bce6a1e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
h264_loopfilter.c
libavcodec/h264_loopfilter.c
+4
-4
No files found.
libavcodec/h264_loopfilter.c
View file @
0fe674cb
...
...
@@ -337,8 +337,8 @@ void ff_h264_filter_mb_fast( H264Context *h, int mb_x, int mb_y, uint8_t *img_y,
!
(
h
->
slice_type_nos
==
FF_I_TYPE
||
h
->
slice_type_nos
==
FF_P_TYPE
||
(
s
->
flags2
&
CODEC_FLAG2_FAST
))
||
(
h
->
deblocking_filter
==
2
&&
(
h
->
slice_
table
[
mb_xy
]
!=
h
->
slice_table
[
h
->
top_mb_xy
]
||
//use slice_num
h
->
slice_
table
[
mb_xy
]
!=
h
->
slice_table
[
mb_xy
-
1
])))
{
(
h
->
deblocking_filter
==
2
&&
(
h
->
slice_
num
!=
h
->
slice_table
[
h
->
top_mb_xy
]
||
h
->
slice_
num
!=
h
->
slice_table
[
mb_xy
-
1
])))
{
ff_h264_filter_mb
(
h
,
mb_x
,
mb_y
,
img_y
,
img_cb
,
img_cr
,
linesize
,
uvlinesize
);
return
;
}
...
...
@@ -461,7 +461,7 @@ static av_always_inline void filter_mb_dir(H264Context *h, int mb_x, int mb_y, u
start
=
1
;
}
if
(
h
->
deblocking_filter
==
2
&&
h
->
slice_table
[
mbm_xy
]
!=
h
->
slice_
table
[
mb_xy
]
)
if
(
h
->
deblocking_filter
==
2
&&
h
->
slice_table
[
mbm_xy
]
!=
h
->
slice_
num
)
start
=
1
;
if
(
FRAME_MBAFF
&&
(
dir
==
1
)
&&
((
mb_y
&
1
)
==
0
)
&&
start
==
0
...
...
@@ -656,7 +656,7 @@ void ff_h264_filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint
// and current and left pair do not have the same interlaced type
&&
(
IS_INTERLACED
(
mb_type
)
!=
IS_INTERLACED
(
s
->
current_picture
.
mb_type
[
mb_xy
-
1
]))
// and left mb is in the same slice if deblocking_filter == 2
&&
(
h
->
deblocking_filter
!=
2
||
h
->
slice_table
[
mb_xy
-
1
]
==
h
->
slice_
table
[
mb_xy
]
))
{
&&
(
h
->
deblocking_filter
!=
2
||
h
->
slice_table
[
mb_xy
-
1
]
==
h
->
slice_
num
))
{
/* First vertical edge is different in MBAFF frames
* There are 8 different bS to compute and 2 different Qp
*/
...
...
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