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
21c2e201
Commit
21c2e201
authored
Feb 27, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_lut: correct color/comp permutation
Fixes Ticket2225 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c87c2d0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vf_lut.c
libavfilter/vf_lut.c
+3
-3
No files found.
libavfilter/vf_lut.c
View file @
21c2e201
...
...
@@ -178,7 +178,7 @@ static int config_props(AVFilterLink *inlink)
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
inlink
->
format
);
uint8_t
rgba_map
[
4
];
/* component index -> RGBA color index map */
int
min
[
4
],
max
[
4
];
int
val
,
co
mp
,
ret
;
int
val
,
co
lor
,
ret
;
lut
->
hsub
=
desc
->
log2_chroma_w
;
lut
->
vsub
=
desc
->
log2_chroma_h
;
...
...
@@ -213,9 +213,9 @@ static int config_props(AVFilterLink *inlink)
lut
->
step
=
av_get_bits_per_pixel
(
desc
)
>>
3
;
}
for
(
co
mp
=
0
;
comp
<
desc
->
nb_components
;
comp
++
)
{
for
(
co
lor
=
0
;
color
<
desc
->
nb_components
;
color
++
)
{
double
res
;
int
co
lor
=
lut
->
is_rgb
?
rgba_map
[
comp
]
:
comp
;
int
co
mp
=
lut
->
is_rgb
?
rgba_map
[
color
]
:
color
;
/* create the parsed expression */
ret
=
av_expr_parse
(
&
lut
->
comp_expr
[
color
],
lut
->
comp_expr_str
[
color
],
...
...
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