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
4ae33c9b
Commit
4ae33c9b
authored
Jan 23, 2005
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 3873 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
934982c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
h264.c
libavcodec/h264.c
+4
-11
No files found.
libavcodec/h264.c
View file @
4ae33c9b
...
@@ -5532,24 +5532,17 @@ static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8
...
@@ -5532,24 +5532,17 @@ static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8
/* dir : 0 -> vertical edge, 1 -> horizontal edge */
/* dir : 0 -> vertical edge, 1 -> horizontal edge */
for
(
dir
=
0
;
dir
<
2
;
dir
++
)
for
(
dir
=
0
;
dir
<
2
;
dir
++
)
{
{
int
start
=
0
;
int
edge
;
int
edge
;
const
int
mbm_xy
=
dir
==
0
?
mb_xy
-
1
:
mb_xy
-
s
->
mb_stride
;
int
start
=
h
->
slice_table
[
mbm_xy
]
==
255
?
1
:
0
;
/* test picture boundary */
if
(
h
->
deblocking_filter
==
2
&&
h
->
slice_table
[
mbm_xy
]
!=
h
->
slice_table
[
mb_xy
])
if
(
(
dir
==
0
&&
mb_x
==
0
)
||
(
dir
==
1
&&
mb_y
==
0
)
)
{
start
=
1
;
start
=
1
;
}
if
(
0
==
start
&&
2
==
h
->
deblocking_filter
)
{
const
int
mbn_xy
=
dir
==
0
?
mb_xy
-
1
:
mb_xy
-
s
->
mb_stride
;
if
(
h
->
slice_table
[
mbn_xy
]
!=
h
->
slice_table
[
mb_xy
])
{
start
=
1
;
}
}
/* Calculate bS */
/* Calculate bS */
for
(
edge
=
start
;
edge
<
4
;
edge
++
)
{
for
(
edge
=
start
;
edge
<
4
;
edge
++
)
{
/* mbn_xy: neighbour macroblock (how that works for field ?) */
/* mbn_xy: neighbour macroblock (how that works for field ?) */
int
mbn_xy
=
edge
>
0
?
mb_xy
:
(
dir
==
0
?
mb_xy
-
1
:
mb_xy
-
s
->
mb_stride
)
;
int
mbn_xy
=
edge
>
0
?
mb_xy
:
mbm_xy
;
int
bS
[
4
];
int
bS
[
4
];
int
qp
;
int
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