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
7c9079ab
Commit
7c9079ab
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 + MBAFF
parent
932db250
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
10 deletions
+24
-10
h264.c
libavcodec/h264.c
+2
-2
h264_loopfilter.c
libavcodec/h264_loopfilter.c
+22
-8
No files found.
libavcodec/h264.c
View file @
7c9079ab
...
...
@@ -3300,8 +3300,8 @@ static void loop_filter(H264Context *h, int start_x, int end_x){
uvlinesize
=
h
->
mb_uvlinesize
=
s
->
uvlinesize
*
2
;
if
(
mb_y
&
1
){
//FIXME move out of this function?
dest_y
-=
s
->
linesize
*
15
;
dest_cb
-=
s
->
uvlinesize
*
7
;
dest_cr
-=
s
->
uvlinesize
*
7
;
dest_cb
-=
s
->
uvlinesize
*
((
8
<<
CHROMA444
)
-
1
)
;
dest_cr
-=
s
->
uvlinesize
*
((
8
<<
CHROMA444
)
-
1
)
;
}
}
else
{
linesize
=
h
->
mb_linesize
=
s
->
linesize
;
...
...
libavcodec/h264_loopfilter.c
View file @
7c9079ab
...
...
@@ -663,19 +663,33 @@ void ff_h264_filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint
filter_mb_mbaff_edgev
(
h
,
img_y
,
linesize
,
bS
,
1
,
qp
[
0
]
);
filter_mb_mbaff_edgev
(
h
,
img_y
+
8
*
linesize
,
linesize
,
bS
+
4
,
1
,
qp
[
1
]
);
if
(
chroma
){
filter_mb_mbaff_edgecv
(
h
,
img_cb
,
uvlinesize
,
bS
,
1
,
bqp
[
0
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cb
+
4
*
uvlinesize
,
uvlinesize
,
bS
+
4
,
1
,
bqp
[
1
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cr
,
uvlinesize
,
bS
,
1
,
rqp
[
0
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cr
+
4
*
uvlinesize
,
uvlinesize
,
bS
+
4
,
1
,
rqp
[
1
]
);
if
(
CHROMA444
)
{
filter_mb_mbaff_edgev
(
h
,
img_cb
,
uvlinesize
,
bS
,
1
,
bqp
[
0
]
);
filter_mb_mbaff_edgev
(
h
,
img_cb
+
8
*
uvlinesize
,
uvlinesize
,
bS
+
4
,
1
,
bqp
[
1
]
);
filter_mb_mbaff_edgev
(
h
,
img_cr
,
uvlinesize
,
bS
,
1
,
rqp
[
0
]
);
filter_mb_mbaff_edgev
(
h
,
img_cr
+
8
*
uvlinesize
,
uvlinesize
,
bS
+
4
,
1
,
rqp
[
1
]
);
}
else
{
filter_mb_mbaff_edgecv
(
h
,
img_cb
,
uvlinesize
,
bS
,
1
,
bqp
[
0
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cb
+
4
*
uvlinesize
,
uvlinesize
,
bS
+
4
,
1
,
bqp
[
1
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cr
,
uvlinesize
,
bS
,
1
,
rqp
[
0
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cr
+
4
*
uvlinesize
,
uvlinesize
,
bS
+
4
,
1
,
rqp
[
1
]
);
}
}
}
else
{
filter_mb_mbaff_edgev
(
h
,
img_y
,
2
*
linesize
,
bS
,
2
,
qp
[
0
]
);
filter_mb_mbaff_edgev
(
h
,
img_y
+
linesize
,
2
*
linesize
,
bS
+
1
,
2
,
qp
[
1
]
);
if
(
chroma
){
filter_mb_mbaff_edgecv
(
h
,
img_cb
,
2
*
uvlinesize
,
bS
,
2
,
bqp
[
0
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cb
+
uvlinesize
,
2
*
uvlinesize
,
bS
+
1
,
2
,
bqp
[
1
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cr
,
2
*
uvlinesize
,
bS
,
2
,
rqp
[
0
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cr
+
uvlinesize
,
2
*
uvlinesize
,
bS
+
1
,
2
,
rqp
[
1
]
);
if
(
CHROMA444
)
{
filter_mb_mbaff_edgev
(
h
,
img_cb
,
2
*
uvlinesize
,
bS
,
2
,
bqp
[
0
]
);
filter_mb_mbaff_edgev
(
h
,
img_cb
+
uvlinesize
,
2
*
uvlinesize
,
bS
+
1
,
2
,
bqp
[
1
]
);
filter_mb_mbaff_edgev
(
h
,
img_cr
,
2
*
uvlinesize
,
bS
,
2
,
rqp
[
0
]
);
filter_mb_mbaff_edgev
(
h
,
img_cr
+
uvlinesize
,
2
*
uvlinesize
,
bS
+
1
,
2
,
rqp
[
1
]
);
}
else
{
filter_mb_mbaff_edgecv
(
h
,
img_cb
,
2
*
uvlinesize
,
bS
,
2
,
bqp
[
0
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cb
+
uvlinesize
,
2
*
uvlinesize
,
bS
+
1
,
2
,
bqp
[
1
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cr
,
2
*
uvlinesize
,
bS
,
2
,
rqp
[
0
]
);
filter_mb_mbaff_edgecv
(
h
,
img_cr
+
uvlinesize
,
2
*
uvlinesize
,
bS
+
1
,
2
,
rqp
[
1
]
);
}
}
}
}
...
...
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