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
50ca36f8
Commit
50ca36f8
authored
Jan 17, 2022
by
Wu Jianhua
Committed by
Lynne
Feb 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/scale_vulkan: use RET for checking return value
Signed-off-by:
Wu Jianhua
<
jianhua.wu@intel.com
>
parent
8f470133
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
vf_scale_vulkan.c
libavfilter/vf_scale_vulkan.c
+7
-17
No files found.
libavfilter/vf_scale_vulkan.c
View file @
50ca36f8
...
...
@@ -252,16 +252,12 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
return
AVERROR
(
EINVAL
);
}
err
=
ff_vk_create_buf
(
vkctx
,
&
s
->
params_buf
,
sizeof
(
*
par
),
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT
,
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
);
if
(
err
)
return
err
;
RET
(
ff_vk_create_buf
(
vkctx
,
&
s
->
params_buf
,
sizeof
(
*
par
),
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT
,
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
));
err
=
ff_vk_map_buffers
(
vkctx
,
&
s
->
params_buf
,
(
uint8_t
**
)
&
par
,
1
,
0
);
if
(
err
)
return
err
;
RET
(
ff_vk_map_buffers
(
vkctx
,
&
s
->
params_buf
,
(
uint8_t
**
)
&
par
,
1
,
0
));
ff_fill_rgb2yuv_table
(
lcoeffs
,
tmp_mat
);
...
...
@@ -273,9 +269,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
par
->
yuv_matrix
[
3
][
3
]
=
1
.
0
;
err
=
ff_vk_unmap_buffers
(
vkctx
,
&
s
->
params_buf
,
1
,
1
);
if
(
err
)
return
err
;
RET
(
ff_vk_unmap_buffers
(
vkctx
,
&
s
->
params_buf
,
1
,
1
));
s
->
params_desc
.
buffer
=
s
->
params_buf
.
buf
;
s
->
params_desc
.
range
=
VK_WHOLE_SIZE
;
...
...
@@ -475,11 +469,7 @@ static int scale_vulkan_config_output(AVFilterLink *outlink)
return
AVERROR
(
EINVAL
);
}
err
=
ff_vk_filter_config_output
(
outlink
);
if
(
err
<
0
)
return
err
;
return
0
;
return
ff_vk_filter_config_output
(
outlink
);
}
static
void
scale_vulkan_uninit
(
AVFilterContext
*
avctx
)
...
...
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