Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7a15e9a7
Commit
7a15e9a7
authored
Nov 03, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed support of crop coming from the decoder.
parent
edaffcc8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
27 deletions
+21
-27
src/video_output/display.c
src/video_output/display.c
+19
-19
src/video_output/vout_wrapper.c
src/video_output/vout_wrapper.c
+2
-8
No files found.
src/video_output/display.c
View file @
7a15e9a7
...
...
@@ -1229,24 +1229,17 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
osys
->
event
.
fifo
=
NULL
;
osys
->
source
=
*
source_org
;
video_format_t
source
=
*
source_org
;
source
.
i_x_offset
=
osys
->
crop
.
x
=
0
;
source
.
i_y_offset
=
osys
->
crop
.
y
=
0
;
source
.
i_visible_width
=
osys
->
crop
.
width
=
source
.
i_width
;
source
.
i_visible_height
=
osys
->
crop
.
height
=
source
.
i_height
;
osys
->
crop
.
x
=
source_org
->
i_x_offset
;
osys
->
crop
.
y
=
source_org
->
i_y_offset
;
osys
->
crop
.
width
=
source_org
->
i_visible_width
;
osys
->
crop
.
height
=
source_org
->
i_visible_height
;
osys
->
crop_saved
.
num
=
0
;
osys
->
crop_saved
.
den
=
0
;
osys
->
crop
.
num
=
0
;
osys
->
crop
.
den
=
0
;
osys
->
sar
.
num
=
osys
->
sar_initial
.
num
?
osys
->
sar_initial
.
num
:
source
.
i_sar_num
;
osys
->
sar
.
den
=
osys
->
sar_initial
.
den
?
osys
->
sar_initial
.
den
:
source
.
i_sar_den
;
osys
->
sar
.
num
=
osys
->
sar_initial
.
num
?
osys
->
sar_initial
.
num
:
source
_org
->
i_sar_num
;
osys
->
sar
.
den
=
osys
->
sar_initial
.
den
?
osys
->
sar_initial
.
den
:
source
_org
->
i_sar_den
;
#ifdef ALLOW_DUMMY_VOUT
vlc_mouse_Init
(
&
osys
->
vout_mouse
);
#endif
...
...
@@ -1262,6 +1255,13 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
owner
.
sys
=
osys
;
/* */
video_format_t
source
=
*
source_org
;
source
.
i_x_offset
=
0
;
source
.
i_y_offset
=
0
;
source
.
i_visible_width
=
source
.
i_width
;
source
.
i_visible_height
=
source
.
i_height
;
vout_display_t
*
p_display
=
vout_display_New
(
VLC_OBJECT
(
vout
),
module
,
!
is_wrapper
,
&
source
,
cfg
,
&
owner
);
...
...
@@ -1273,15 +1273,15 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
VoutDisplayCreateRender
(
p_display
);
/* Setup delayed request */
if
(
osys
->
sar
.
num
!=
source
_org
->
i_sar_num
||
osys
->
sar
.
den
!=
source
_org
->
i_sar_den
)
if
(
osys
->
sar
.
num
!=
source
.
i_sar_num
||
osys
->
sar
.
den
!=
source
.
i_sar_den
)
osys
->
ch_sar
=
true
;
if
(
osys
->
wm_state
!=
osys
->
wm_state_initial
)
osys
->
ch_wm_state
=
true
;
if
(
osys
->
crop
.
x
!=
source
_org
->
i_x_offset
||
osys
->
crop
.
y
!=
source
_org
->
i_y_offset
||
osys
->
crop
.
width
!=
source
_org
->
i_visible_width
||
osys
->
crop
.
height
!=
source
_org
->
i_visible_height
)
if
(
osys
->
crop
.
x
!=
source
.
i_x_offset
||
osys
->
crop
.
y
!=
source
.
i_y_offset
||
osys
->
crop
.
width
!=
source
.
i_visible_width
||
osys
->
crop
.
height
!=
source
.
i_visible_height
)
osys
->
ch_crop
=
true
;
return
p_display
;
...
...
src/video_output/vout_wrapper.c
View file @
7a15e9a7
...
...
@@ -57,20 +57,14 @@ int vout_OpenWrapper(vout_thread_t *vout,
sys
->
display
.
title
=
var_CreateGetNonEmptyString
(
vout
,
"video-title"
);
/* */
video_format_t
source
=
vout
->
p
->
original
;
source
.
i_visible_width
=
source
.
i_width
;
source
.
i_visible_height
=
source
.
i_height
;
source
.
i_x_offset
=
0
;
source
.
i_y_offset
=
0
;
const
mtime_t
double_click_timeout
=
300000
;
const
mtime_t
hide_timeout
=
var_CreateGetInteger
(
vout
,
"mouse-hide-timeout"
)
*
1000
;
if
(
splitter_name
)
{
sys
->
display
.
vd
=
vout_NewSplitter
(
vout
,
&
source
,
state
,
"$vout"
,
splitter_name
,
sys
->
display
.
vd
=
vout_NewSplitter
(
vout
,
&
vout
->
p
->
original
,
state
,
"$vout"
,
splitter_name
,
double_click_timeout
,
hide_timeout
);
}
else
{
sys
->
display
.
vd
=
vout_NewDisplay
(
vout
,
&
source
,
state
,
"$vout"
,
sys
->
display
.
vd
=
vout_NewDisplay
(
vout
,
&
vout
->
p
->
original
,
state
,
"$vout"
,
double_click_timeout
,
hide_timeout
);
}
if
(
!
sys
->
display
.
vd
)
{
...
...
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