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
ec4ed2f6
Commit
ec4ed2f6
authored
Aug 14, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_signalstats: fix saturation calculation for >8 bit
parent
6612d049
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vf_signalstats.c
libavfilter/vf_signalstats.c
+5
-5
No files found.
libavfilter/vf_signalstats.c
View file @
ec4ed2f6
...
...
@@ -190,7 +190,7 @@ static int config_props(AVFilterLink *outlink)
if
(
!
s
->
jobs_rets
)
return
AVERROR
(
ENOMEM
);
s
->
frame_sat
=
alloc_frame
(
AV_PIX_FMT_GRAY8
,
inlink
->
w
,
inlink
->
h
);
s
->
frame_sat
=
alloc_frame
(
s
->
depth
>
8
?
AV_PIX_FMT_GRAY16
:
AV_PIX_FMT_GRAY8
,
inlink
->
w
,
inlink
->
h
);
s
->
frame_hue
=
alloc_frame
(
AV_PIX_FMT_GRAY16
,
inlink
->
w
,
inlink
->
h
);
if
(
!
s
->
frame_sat
||
!
s
->
frame_hue
)
return
AVERROR
(
ENOMEM
);
...
...
@@ -799,10 +799,10 @@ static int filter_frame16(AVFilterLink *link, AVFrame *in)
AVFrame
*
sat
=
s
->
frame_sat
;
AVFrame
*
hue
=
s
->
frame_hue
;
const
uint
8_t
*
p_sat
=
sat
->
data
[
0
];
const
uint
8_t
*
p_hue
=
hue
->
data
[
0
];
const
int
lsz_sat
=
sat
->
linesize
[
0
];
const
int
lsz_hue
=
hue
->
linesize
[
0
];
const
uint
16_t
*
p_sat
=
(
uint16_t
*
)
sat
->
data
[
0
];
const
uint
16_t
*
p_hue
=
(
uint16_t
*
)
hue
->
data
[
0
];
const
int
lsz_sat
=
sat
->
linesize
[
0
]
/
2
;
const
int
lsz_hue
=
hue
->
linesize
[
0
]
/
2
;
ThreadDataHueSatMetrics
td_huesat
=
{
.
src
=
in
,
.
dst_sat
=
sat
,
...
...
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