Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
6139440a
Commit
6139440a
authored
Oct 27, 2005
by
Marian Durkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use visible width/height in crop filter
parent
e6cdbf3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/video_filter/crop.c
modules/video_filter/crop.c
+8
-6
No files found.
modules/video_filter/crop.c
View file @
6139440a
...
...
@@ -146,6 +146,7 @@ static int Init( vout_thread_t *p_vout )
p_vout
->
output
.
i_width
=
p_vout
->
render
.
i_width
;
p_vout
->
output
.
i_height
=
p_vout
->
render
.
i_height
;
p_vout
->
output
.
i_aspect
=
p_vout
->
render
.
i_aspect
;
p_vout
->
fmt_out
=
p_vout
->
fmt_in
;
/* Shall we use autocrop ? */
p_vout
->
p_sys
->
b_autocrop
=
config_GetInt
(
p_vout
,
"autocrop"
);
...
...
@@ -232,9 +233,10 @@ static int Init( vout_thread_t *p_vout )
}
else
{
p_vout
->
p_sys
->
i_width
=
p_vout
->
output
.
i_width
;
p_vout
->
p_sys
->
i_height
=
p_vout
->
output
.
i_height
;
p_vout
->
p_sys
->
i_x
=
p_vout
->
p_sys
->
i_y
=
0
;
p_vout
->
p_sys
->
i_width
=
p_vout
->
fmt_out
.
i_visible_width
;
p_vout
->
p_sys
->
i_height
=
p_vout
->
fmt_out
.
i_visible_height
;
p_vout
->
p_sys
->
i_x
=
p_vout
->
fmt_out
.
i_x_offset
;
p_vout
->
p_sys
->
i_y
=
p_vout
->
fmt_out
.
i_y_offset
;
}
/* Pheeew. Parsing done. */
...
...
@@ -244,9 +246,9 @@ static int Init( vout_thread_t *p_vout )
p_vout
->
p_sys
->
b_autocrop
?
""
:
"not "
);
/* Set current output image properties */
p_vout
->
p_sys
->
i_aspect
=
p_vout
->
outp
ut
.
i_aspect
*
p_vout
->
output
.
i
_height
/
p_vout
->
p_sys
->
i_height
*
p_vout
->
p_sys
->
i_width
/
p_vout
->
output
.
i
_width
;
p_vout
->
p_sys
->
i_aspect
=
p_vout
->
fmt_o
ut
.
i_aspect
*
p_vout
->
fmt_out
.
i_visible
_height
/
p_vout
->
p_sys
->
i_height
*
p_vout
->
p_sys
->
i_width
/
p_vout
->
fmt_out
.
i_visible
_width
;
fmt
.
i_width
=
fmt
.
i_visible_width
=
p_vout
->
p_sys
->
i_width
;
fmt
.
i_height
=
fmt
.
i_visible_height
=
p_vout
->
p_sys
->
i_height
;
...
...
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