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
9f2b2044
Commit
9f2b2044
authored
Nov 19, 2021
by
Wu Jianhua
Committed by
Lynne
Nov 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/avgblur_vulkan: call av_vkfmt_from_pixfmt only one time
Signed-off-by:
Wu Jianhua
<
jianhua.wu@intel.com
>
parent
14f78d62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
vf_avgblur_vulkan.c
libavfilter/vf_avgblur_vulkan.c
+7
-3
No files found.
libavfilter/vf_avgblur_vulkan.c
View file @
9f2b2044
...
...
@@ -212,6 +212,10 @@ static int process_frames(AVFilterContext *avctx, AVFrame *out_f, AVFrame *tmp_f
AVVkFrame
*
in
=
(
AVVkFrame
*
)
in_f
->
data
[
0
];
AVVkFrame
*
tmp
=
(
AVVkFrame
*
)
tmp_f
->
data
[
0
];
AVVkFrame
*
out
=
(
AVVkFrame
*
)
out_f
->
data
[
0
];
const
VkFormat
*
input_formats
=
av_vkfmt_from_pixfmt
(
s
->
vkctx
.
input_format
);
const
VkFormat
*
output_formats
=
av_vkfmt_from_pixfmt
(
s
->
vkctx
.
output_format
);
int
planes
=
av_pix_fmt_count_planes
(
s
->
vkctx
.
output_format
);
/* Update descriptors and init the exec context */
...
...
@@ -221,17 +225,17 @@ static int process_frames(AVFilterContext *avctx, AVFrame *out_f, AVFrame *tmp_f
for
(
int
i
=
0
;
i
<
planes
;
i
++
)
{
RET
(
ff_vk_create_imageview
(
vkctx
,
s
->
exec
,
&
s
->
input_images
[
i
].
imageView
,
in
->
img
[
i
],
av_vkfmt_from_pixfmt
(
s
->
vkctx
.
input_format
)
[
i
],
input_formats
[
i
],
ff_comp_identity_map
));
RET
(
ff_vk_create_imageview
(
vkctx
,
s
->
exec
,
&
s
->
tmp_images
[
i
].
imageView
,
tmp
->
img
[
i
],
av_vkfmt_from_pixfmt
(
s
->
vkctx
.
output_format
)
[
i
],
output_formats
[
i
],
ff_comp_identity_map
));
RET
(
ff_vk_create_imageview
(
vkctx
,
s
->
exec
,
&
s
->
output_images
[
i
].
imageView
,
out
->
img
[
i
],
av_vkfmt_from_pixfmt
(
s
->
vkctx
.
output_format
)
[
i
],
output_formats
[
i
],
ff_comp_identity_map
));
s
->
input_images
[
i
].
imageLayout
=
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
;
...
...
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