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
8245520b
Commit
8245520b
authored
May 08, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/colorchannelmixer: remove now redudant code
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
deef4b1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
vf_colorchannelmixer.c
libavfilter/vf_colorchannelmixer.c
+2
-13
No files found.
libavfilter/vf_colorchannelmixer.c
View file @
8245520b
...
@@ -91,27 +91,16 @@ static int config_output(AVFilterLink *outlink)
...
@@ -91,27 +91,16 @@ static int config_output(AVFilterLink *outlink)
ColorChannelMixerContext
*
cm
=
ctx
->
priv
;
ColorChannelMixerContext
*
cm
=
ctx
->
priv
;
int
i
,
j
,
size
,
*
buffer
;
int
i
,
j
,
size
,
*
buffer
;
ff_fill_rgba_map
(
cm
->
rgba_map
,
outlink
->
format
);
switch
(
outlink
->
format
)
{
switch
(
outlink
->
format
)
{
case
AV_PIX_FMT_RGB48
:
case
AV_PIX_FMT_RGB48
:
case
AV_PIX_FMT_BGR48
:
case
AV_PIX_FMT_BGR48
:
case
AV_PIX_FMT_RGBA64
:
case
AV_PIX_FMT_RGBA64
:
case
AV_PIX_FMT_BGRA64
:
case
AV_PIX_FMT_BGRA64
:
if
(
outlink
->
format
==
AV_PIX_FMT_RGB48
||
outlink
->
format
==
AV_PIX_FMT_RGBA64
)
{
cm
->
rgba_map
[
R
]
=
0
;
cm
->
rgba_map
[
G
]
=
1
;
cm
->
rgba_map
[
B
]
=
2
;
cm
->
rgba_map
[
A
]
=
3
;
}
else
{
cm
->
rgba_map
[
R
]
=
2
;
cm
->
rgba_map
[
G
]
=
1
;
cm
->
rgba_map
[
B
]
=
0
;
cm
->
rgba_map
[
A
]
=
3
;
}
size
=
65536
;
size
=
65536
;
break
;
break
;
default:
default:
ff_fill_rgba_map
(
cm
->
rgba_map
,
outlink
->
format
);
size
=
256
;
size
=
256
;
}
}
...
...
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