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
6b13f542
Commit
6b13f542
authored
May 14, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_colorchannelmixer: round lut entries to nearest
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f268727a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
69 deletions
+69
-69
vf_colorchannelmixer.c
libavfilter/vf_colorchannelmixer.c
+19
-19
filter-colorchannelmixer
tests/ref/fate/filter-colorchannelmixer
+50
-50
No files found.
libavfilter/vf_colorchannelmixer.c
View file @
6b13f542
...
...
@@ -113,25 +113,25 @@ static int config_output(AVFilterLink *outlink)
cm
->
lut
[
i
][
j
]
=
buffer
;
for
(
i
=
0
;
i
<
size
;
i
++
)
{
cm
->
lut
[
R
][
R
][
i
]
=
i
*
cm
->
rr
;
cm
->
lut
[
R
][
G
][
i
]
=
i
*
cm
->
rg
;
cm
->
lut
[
R
][
B
][
i
]
=
i
*
cm
->
rb
;
cm
->
lut
[
R
][
A
][
i
]
=
i
*
cm
->
ra
;
cm
->
lut
[
G
][
R
][
i
]
=
i
*
cm
->
gr
;
cm
->
lut
[
G
][
G
][
i
]
=
i
*
cm
->
gg
;
cm
->
lut
[
G
][
B
][
i
]
=
i
*
cm
->
gb
;
cm
->
lut
[
G
][
A
][
i
]
=
i
*
cm
->
ga
;
cm
->
lut
[
B
][
R
][
i
]
=
i
*
cm
->
br
;
cm
->
lut
[
B
][
G
][
i
]
=
i
*
cm
->
bg
;
cm
->
lut
[
B
][
B
][
i
]
=
i
*
cm
->
bb
;
cm
->
lut
[
B
][
A
][
i
]
=
i
*
cm
->
ba
;
cm
->
lut
[
A
][
R
][
i
]
=
i
*
cm
->
ar
;
cm
->
lut
[
A
][
G
][
i
]
=
i
*
cm
->
ag
;
cm
->
lut
[
A
][
B
][
i
]
=
i
*
cm
->
ab
;
cm
->
lut
[
A
][
A
][
i
]
=
i
*
cm
->
aa
;
cm
->
lut
[
R
][
R
][
i
]
=
round
(
i
*
cm
->
rr
)
;
cm
->
lut
[
R
][
G
][
i
]
=
round
(
i
*
cm
->
rg
)
;
cm
->
lut
[
R
][
B
][
i
]
=
round
(
i
*
cm
->
rb
)
;
cm
->
lut
[
R
][
A
][
i
]
=
round
(
i
*
cm
->
ra
)
;
cm
->
lut
[
G
][
R
][
i
]
=
round
(
i
*
cm
->
gr
)
;
cm
->
lut
[
G
][
G
][
i
]
=
round
(
i
*
cm
->
gg
)
;
cm
->
lut
[
G
][
B
][
i
]
=
round
(
i
*
cm
->
gb
)
;
cm
->
lut
[
G
][
A
][
i
]
=
round
(
i
*
cm
->
ga
)
;
cm
->
lut
[
B
][
R
][
i
]
=
round
(
i
*
cm
->
br
)
;
cm
->
lut
[
B
][
G
][
i
]
=
round
(
i
*
cm
->
bg
)
;
cm
->
lut
[
B
][
B
][
i
]
=
round
(
i
*
cm
->
bb
)
;
cm
->
lut
[
B
][
A
][
i
]
=
round
(
i
*
cm
->
ba
)
;
cm
->
lut
[
A
][
R
][
i
]
=
round
(
i
*
cm
->
ar
)
;
cm
->
lut
[
A
][
G
][
i
]
=
round
(
i
*
cm
->
ag
)
;
cm
->
lut
[
A
][
B
][
i
]
=
round
(
i
*
cm
->
ab
)
;
cm
->
lut
[
A
][
A
][
i
]
=
round
(
i
*
cm
->
aa
)
;
}
return
0
;
...
...
tests/ref/fate/filter-colorchannelmixer
View file @
6b13f542
#tb 0: 1/25
0, 0, 0, 1, 304128, 0x4
180ae79
0, 1, 1, 1, 304128, 0x
e792dbdf
0, 2, 2, 1, 304128, 0x
33114032
0, 3, 3, 1, 304128, 0x
ec12bf57
0, 4, 4, 1, 304128, 0x
86da3c0e
0, 5, 5, 1, 304128, 0x6
976e5e3
0, 6, 6, 1, 304128, 0x
8434fea2
0, 7, 7, 1, 304128, 0x
65bd0a7
2
0, 8, 8, 1, 304128, 0x
65c20efe
0, 9, 9, 1, 304128, 0x
c6a7b032
0, 10, 10, 1, 304128, 0x
b78c312a
0, 11, 11, 1, 304128, 0x
7912c07e
0, 12, 12, 1, 304128, 0x
bd2f9195
0, 13, 13, 1, 304128, 0x
1f040615
0, 14, 14, 1, 304128, 0x
3b4a9e7d
0, 15, 15, 1, 304128, 0x
7502cd0a
0, 16, 16, 1, 304128, 0x
4172427f
0, 17, 17, 1, 304128, 0x
81c1af1e
0, 18, 18, 1, 304128, 0x
c01f62f3
0, 19, 19, 1, 304128, 0x
0cbfc2eb
0, 20, 20, 1, 304128, 0x
ed9f1040
0, 21, 21, 1, 304128, 0x
b58e35ad
0, 22, 22, 1, 304128, 0x
6ed481aa
0, 23, 23, 1, 304128, 0x
7f7f0bbc
0, 24, 24, 1, 304128, 0x
c4b8acac
0, 25, 25, 1, 304128, 0x
35110b72
0, 26, 26, 1, 304128, 0x
b874a4cd
0, 27, 27, 1, 304128, 0x
75783bb
0
0, 28, 28, 1, 304128, 0x
17457ac2
0, 29, 29, 1, 304128, 0x
d453b298
0, 30, 30, 1, 304128, 0x
baca5116
0, 31, 31, 1, 304128, 0x
04aeae05
0, 32, 32, 1, 304128, 0x
ae36fee3
0, 33, 33, 1, 304128, 0x
18366c3
1
0, 34, 34, 1, 304128, 0x6
c5e6a69
0, 35, 35, 1, 304128, 0x
2509dbd5
0, 36, 36, 1, 304128, 0x
1ef717a1
0, 37, 37, 1, 304128, 0x
8b4ffe28
0, 38, 38, 1, 304128, 0x
a0c483fb
0, 39, 39, 1, 304128, 0x
1e4638a0
0, 40, 40, 1, 304128, 0x9
24e7ccb
0, 41, 41, 1, 304128, 0x
c1097eb3
0, 42, 42, 1, 304128, 0x
240a0cf5
0, 43, 43, 1, 304128, 0x
5ecaafa1
0, 44, 44, 1, 304128, 0x
146a0b2e
0, 45, 45, 1, 304128, 0x
7f3c8cbb
0, 46, 46, 1, 304128, 0x
ce6cbaff
0, 47, 47, 1, 304128, 0x
da3f1de4
0, 48, 48, 1, 304128, 0x
d747b5e7
0, 49, 49, 1, 304128, 0x
f905d3cb
0, 0, 0, 1, 304128, 0x4
2900c13
0, 1, 1, 1, 304128, 0x
fb0439bc
0, 2, 2, 1, 304128, 0x
967b9f0d
0, 3, 3, 1, 304128, 0x
c2c92489
0, 4, 4, 1, 304128, 0x
024499b1
0, 5, 5, 1, 304128, 0x6
6144785
0, 6, 6, 1, 304128, 0x
0e505bcd
0, 7, 7, 1, 304128, 0x
c8b26ed
2
0, 8, 8, 1, 304128, 0x
14b5717b
0, 9, 9, 1, 304128, 0x
2ba3144a
0, 10, 10, 1, 304128, 0x
1185992b
0, 11, 11, 1, 304128, 0x
d55b289a
0, 12, 12, 1, 304128, 0x
59f2f3be
0, 13, 13, 1, 304128, 0x
fe4d6adf
0, 14, 14, 1, 304128, 0x
630806cc
0, 15, 15, 1, 304128, 0x
2deb2f19
0, 16, 16, 1, 304128, 0x
fbffa923
0, 17, 17, 1, 304128, 0x
b7770d46
0, 18, 18, 1, 304128, 0x
da09bd0e
0, 19, 19, 1, 304128, 0x
17a422d2
0, 20, 20, 1, 304128, 0x
bb6172f5
0, 21, 21, 1, 304128, 0x
cf639456
0, 22, 22, 1, 304128, 0x
db0ae1ac
0, 23, 23, 1, 304128, 0x
850d6a68
0, 24, 24, 1, 304128, 0x
dc8409fb
0, 25, 25, 1, 304128, 0x
26216c51
0, 26, 26, 1, 304128, 0x
1d0004de
0, 27, 27, 1, 304128, 0x
ed019a7
0
0, 28, 28, 1, 304128, 0x
b1abd985
0, 29, 29, 1, 304128, 0x
ec1c14b2
0, 30, 30, 1, 304128, 0x
046db068
0, 31, 31, 1, 304128, 0x
a4fb1029
0, 32, 32, 1, 304128, 0x
49e05e61
0, 33, 33, 1, 304128, 0x
7668d6d
1
0, 34, 34, 1, 304128, 0x6
dd0ce9d
0, 35, 35, 1, 304128, 0x
87983f5e
0, 36, 36, 1, 304128, 0x
b98278cf
0, 37, 37, 1, 304128, 0x
55186244
0, 38, 38, 1, 304128, 0x
3135e7ea
0, 39, 39, 1, 304128, 0x
dbf59a2c
0, 40, 40, 1, 304128, 0x9
44cdc92
0, 41, 41, 1, 304128, 0x
5849dfe8
0, 42, 42, 1, 304128, 0x
af9075ba
0, 43, 43, 1, 304128, 0x
b4f01118
0, 44, 44, 1, 304128, 0x
4dfb711f
0, 45, 45, 1, 304128, 0x
b558e732
0, 46, 46, 1, 304128, 0x
b23a171e
0, 47, 47, 1, 304128, 0x
b5c68065
0, 48, 48, 1, 304128, 0x
cf1b122e
0, 49, 49, 1, 304128, 0x
1e2d38e5
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