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
abf35afb
Commit
abf35afb
authored
Feb 14, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_scale_vaapi: Apply cropping rectangle to input
parent
ac993e73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vf_scale_vaapi.c
libavfilter/vf_scale_vaapi.c
+6
-6
No files found.
libavfilter/vf_scale_vaapi.c
View file @
abf35afb
...
...
@@ -100,13 +100,13 @@ static int scale_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame)
memset
(
&
params
,
0
,
sizeof
(
params
));
// If there were top/left cropping, it could be taken into
// account here.
input_region
=
(
VARectangle
)
{
.
x
=
0
,
.
y
=
0
,
.
width
=
input_frame
->
width
,
.
height
=
input_frame
->
height
,
.
x
=
input_frame
->
crop_left
,
.
y
=
input_frame
->
crop_top
,
.
width
=
input_frame
->
width
-
(
input_frame
->
crop_left
+
input_frame
->
crop_right
),
.
height
=
input_frame
->
height
-
(
input_frame
->
crop_top
+
input_frame
->
crop_bottom
),
};
params
.
surface
=
input_surface
;
...
...
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