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
e4f77e62
Commit
e4f77e62
authored
Apr 30, 2015
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp9: don't create special u/v filter masks for 444.
This fixes vp91-2-04-yuv444.webm.
parent
afa9d00b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
vp9.c
libavcodec/vp9.c
+8
-6
No files found.
libavcodec/vp9.c
View file @
e4f77e62
...
@@ -3132,10 +3132,11 @@ static void decode_b(AVCodecContext *ctx, int row, int col,
...
@@ -3132,10 +3132,11 @@ static void decode_b(AVCodecContext *ctx, int row, int col,
setctx_2d
(
&
lflvl
->
level
[
row7
*
8
+
col7
],
w4
,
h4
,
8
,
lvl
);
setctx_2d
(
&
lflvl
->
level
[
row7
*
8
+
col7
],
w4
,
h4
,
8
,
lvl
);
mask_edges
(
lflvl
,
0
,
row7
,
col7
,
x_end
,
y_end
,
0
,
0
,
b
->
tx
,
skip_inter
);
mask_edges
(
lflvl
,
0
,
row7
,
col7
,
x_end
,
y_end
,
0
,
0
,
b
->
tx
,
skip_inter
);
mask_edges
(
lflvl
,
1
,
row7
,
col7
,
x_end
,
y_end
,
if
(
s
->
ss_h
||
s
->
ss_v
)
s
->
cols
&
1
&&
col
+
w4
>=
s
->
cols
?
s
->
cols
&
7
:
0
,
mask_edges
(
lflvl
,
1
,
row7
,
col7
,
x_end
,
y_end
,
s
->
rows
&
1
&&
row
+
h4
>=
s
->
rows
?
s
->
rows
&
7
:
0
,
s
->
cols
&
1
&&
col
+
w4
>=
s
->
cols
?
s
->
cols
&
7
:
0
,
b
->
uvtx
,
skip_inter
);
s
->
rows
&
1
&&
row
+
h4
>=
s
->
rows
?
s
->
rows
&
7
:
0
,
b
->
uvtx
,
skip_inter
);
if
(
!
s
->
filter
.
lim_lut
[
lvl
])
{
if
(
!
s
->
filter
.
lim_lut
[
lvl
])
{
int
sharp
=
s
->
filter
.
sharpness
;
int
sharp
=
s
->
filter
.
sharpness
;
...
@@ -3444,6 +3445,7 @@ static void loopfilter_sb(AVCodecContext *ctx, struct VP9Filter *lflvl,
...
@@ -3444,6 +3445,7 @@ static void loopfilter_sb(AVCodecContext *ctx, struct VP9Filter *lflvl,
AVFrame
*
f
=
s
->
frames
[
CUR_FRAME
].
tf
.
f
;
AVFrame
*
f
=
s
->
frames
[
CUR_FRAME
].
tf
.
f
;
uint8_t
*
dst
=
f
->
data
[
0
]
+
yoff
;
uint8_t
*
dst
=
f
->
data
[
0
]
+
yoff
;
ptrdiff_t
ls_y
=
f
->
linesize
[
0
],
ls_uv
=
f
->
linesize
[
1
];
ptrdiff_t
ls_y
=
f
->
linesize
[
0
],
ls_uv
=
f
->
linesize
[
1
];
uint8_t
(
*
uv_masks
)[
8
][
4
]
=
lflvl
->
mask
[
s
->
ss_h
|
s
->
ss_v
];
int
p
;
int
p
;
// FIXME in how far can we interleave the v/h loopfilter calls? E.g.
// FIXME in how far can we interleave the v/h loopfilter calls? E.g.
...
@@ -3457,8 +3459,8 @@ static void loopfilter_sb(AVCodecContext *ctx, struct VP9Filter *lflvl,
...
@@ -3457,8 +3459,8 @@ static void loopfilter_sb(AVCodecContext *ctx, struct VP9Filter *lflvl,
for
(
p
=
0
;
p
<
2
;
p
++
)
{
for
(
p
=
0
;
p
<
2
;
p
++
)
{
dst
=
f
->
data
[
1
+
p
]
+
uvoff
;
dst
=
f
->
data
[
1
+
p
]
+
uvoff
;
filter_plane_cols
(
s
,
col
,
1
,
lflvl
->
level
,
lflvl
->
mask
[
1
]
[
0
],
dst
,
ls_uv
);
filter_plane_cols
(
s
,
col
,
s
->
ss_h
,
lflvl
->
level
,
uv_masks
[
0
],
dst
,
ls_uv
);
filter_plane_rows
(
s
,
row
,
1
,
lflvl
->
level
,
lflvl
->
mask
[
1
]
[
1
],
dst
,
ls_uv
);
filter_plane_rows
(
s
,
row
,
s
->
ss_v
,
lflvl
->
level
,
uv_masks
[
1
],
dst
,
ls_uv
);
}
}
}
}
...
...
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