Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
710dce13
Commit
710dce13
authored
May 13, 2022
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_zscale: active region use doubles so use that type here too
parent
075c2308
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vf_zscale.c
libavfilter/vf_zscale.c
+6
-6
No files found.
libavfilter/vf_zscale.c
View file @
710dce13
...
...
@@ -119,8 +119,8 @@ typedef struct ZScaleContext {
void
*
tmp
[
MAX_THREADS
];
//separate for each thread;
int
nb_threads
;
int
jobs_ret
[
MAX_THREADS
];
int
in_slice_start
[
MAX_THREADS
];
int
in_slice_end
[
MAX_THREADS
];
double
in_slice_start
[
MAX_THREADS
];
double
in_slice_end
[
MAX_THREADS
];
int
out_slice_start
[
MAX_THREADS
];
int
out_slice_end
[
MAX_THREADS
];
...
...
@@ -250,8 +250,8 @@ static void slice_params(ZScaleContext *s, int out_h, int in_h)
}
for
(
int
i
=
0
;
i
<
s
->
nb_threads
;
i
++
)
{
s
->
in_slice_start
[
i
]
=
av_rescale_rnd
(
s
->
out_slice_start
[
i
],
in_h
*
2
,
out_h
*
2
,
AV_ROUND_NEAR_INF
)
;
s
->
in_slice_end
[
i
]
=
av_rescale_rnd
(
s
->
out_slice_end
[
i
],
in_h
*
2
,
out_h
*
2
,
AV_ROUND_NEAR_INF
)
;
s
->
in_slice_start
[
i
]
=
s
->
out_slice_start
[
i
]
*
in_h
/
(
double
)
out_h
;
s
->
in_slice_end
[
i
]
=
s
->
out_slice_end
[
i
]
*
in_h
/
(
double
)
out_h
;
}
}
...
...
@@ -599,8 +599,8 @@ static int graphs_build(AVFrame *in, AVFrame *out, const AVPixFmtDescriptor *des
zimg_image_format
dst_format
;
zimg_image_format
alpha_src_format
;
zimg_image_format
alpha_dst_format
;
const
int
in_slice_start
=
s
->
in_slice_start
[
job_nr
];
const
int
in_slice_end
=
s
->
in_slice_end
[
job_nr
];
const
double
in_slice_start
=
s
->
in_slice_start
[
job_nr
];
const
double
in_slice_end
=
s
->
in_slice_end
[
job_nr
];
const
int
out_slice_start
=
s
->
out_slice_start
[
job_nr
];
const
int
out_slice_end
=
s
->
out_slice_end
[
job_nr
];
...
...
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