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
7eece069
Commit
7eece069
authored
Nov 15, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/xbr: clarify default "interpolated" pixels assignments
parent
bca3c2cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
vf_xbr.c
libavfilter/vf_xbr.c
+7
-6
No files found.
libavfilter/vf_xbr.c
View file @
7eece069
...
...
@@ -283,15 +283,16 @@ static av_always_inline void xbr_filter(const ThreadData *td, int jobnr, int nb_
const
uint32_t
I4
=
sa3
[
pnext2
];
if
(
n
==
2
)
{
E
[
0
]
=
E
[
1
]
=
E
[
nl
]
=
E
[
nl
+
1
]
=
PE
;
// 0, 1, 2, 3
E
[
0
]
=
E
[
1
]
=
// 0, 1
E
[
nl
]
=
E
[
nl
+
1
]
=
PE
;
// 2, 3
FILT2
(
PE
,
PI
,
PH
,
PF
,
PG
,
PC
,
PD
,
PB
,
PA
,
G5
,
C4
,
G0
,
D0
,
C1
,
B1
,
F4
,
I4
,
H5
,
I5
,
A0
,
A1
,
0
,
1
,
nl
,
nl
+
1
);
FILT2
(
PE
,
PC
,
PF
,
PB
,
PI
,
PA
,
PH
,
PD
,
PG
,
I4
,
A1
,
I5
,
H5
,
A0
,
D0
,
B1
,
C1
,
F4
,
C4
,
G5
,
G0
,
nl
,
0
,
nl
+
1
,
1
);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,
G0
,
C1
,
C4
,
2
,
nl
+
2
,
nl1
+
2
,
1
,
nl
+
1
,
nl1
+
1
,
0
,
nl
,
nl1
);
}
else
if
(
n
==
4
)
{
E
[
0
]
=
E
[
1
]
=
E
[
2
]
=
E
[
3
]
=
PE
;
E
[
nl
]
=
E
[
nl
+
1
]
=
E
[
nl
+
2
]
=
E
[
nl
+
3
]
=
PE
;
// 4, 5, 6, 7
E
[
nl1
]
=
E
[
nl1
+
1
]
=
E
[
nl1
+
2
]
=
E
[
nl1
+
3
]
=
PE
;
// 8, 9, 10, 11
E
[
0
]
=
E
[
1
]
=
E
[
2
]
=
E
[
3
]
=
// 0, 1, 2, 3
E
[
nl
]
=
E
[
nl
+
1
]
=
E
[
nl
+
2
]
=
E
[
nl
+
3
]
=
// 4, 5, 6, 7
E
[
nl1
]
=
E
[
nl1
+
1
]
=
E
[
nl1
+
2
]
=
E
[
nl1
+
3
]
=
// 8, 9, 10, 11
E
[
nl2
]
=
E
[
nl2
+
1
]
=
E
[
nl2
+
2
]
=
E
[
nl2
+
3
]
=
PE
;
// 12, 13, 14, 15
FILT4
(
PE
,
PI
,
PH
,
PF
,
PG
,
PC
,
PD
,
PB
,
PA
,
G5
,
C4
,
G0
,
D0
,
C1
,
B1
,
F4
,
I4
,
H5
,
I5
,
A0
,
A1
,
nl2
+
3
,
nl2
+
2
,
nl1
+
3
,
3
,
nl
+
3
,
nl1
+
2
,
nl2
+
1
,
nl2
,
nl1
+
1
,
nl
+
2
,
2
,
1
,
nl
+
1
,
nl1
,
nl
,
0
);
...
...
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