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
157d08e9
Commit
157d08e9
authored
Oct 28, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/paletteuse: fix debug_mean_error after
aba926e7
parent
3d547c19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vf_paletteuse.c
libavfilter/vf_paletteuse.c
+3
-3
No files found.
libavfilter/vf_paletteuse.c
View file @
157d08e9
...
@@ -787,9 +787,9 @@ static void debug_mean_error(PaletteUseContext *s, const AVFrame *in1,
...
@@ -787,9 +787,9 @@ static void debug_mean_error(PaletteUseContext *s, const AVFrame *in1,
for
(
x
=
0
;
x
<
in1
->
width
;
x
++
)
{
for
(
x
=
0
;
x
<
in1
->
width
;
x
++
)
{
const
uint32_t
c1
=
src1
[
x
];
const
uint32_t
c1
=
src1
[
x
];
const
uint32_t
c2
=
palette
[
src2
[
x
]];
const
uint32_t
c2
=
palette
[
src2
[
x
]];
const
uint8_t
rgb1
[]
=
{
c1
>>
16
&
0xff
,
c1
>>
8
&
0xff
,
c1
&
0xff
};
const
uint8_t
argb1
[]
=
{
0xff
,
c1
>>
16
&
0xff
,
c1
>>
8
&
0xff
,
c1
&
0xff
};
const
uint8_t
rgb2
[]
=
{
c2
>>
16
&
0xff
,
c2
>>
8
&
0xff
,
c2
&
0xff
};
const
uint8_t
argb2
[]
=
{
0xff
,
c2
>>
16
&
0xff
,
c2
>>
8
&
0xff
,
c2
&
0xff
};
mean_err
+=
diff
(
rgb1
,
rgb2
,
s
->
trans_thresh
);
mean_err
+=
diff
(
argb1
,
a
rgb2
,
s
->
trans_thresh
);
}
}
src1
+=
src1_linesize
;
src1
+=
src1_linesize
;
src2
+=
src2_linesize
;
src2
+=
src2_linesize
;
...
...
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