Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
52ffdd1c
Commit
52ffdd1c
authored
Apr 05, 2014
by
KO Myung-Hun
Committed by
Rémi Denis-Courmont
Apr 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kva: handle rotated movies
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
ae904d83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
modules/video_output/kva.c
modules/video_output/kva.c
+19
-13
No files found.
modules/video_output/kva.c
View file @
52ffdd1c
...
...
@@ -151,7 +151,8 @@ static void PMThread( void *arg )
ULONG
i_kva_mode
;
/* */
video_format_t
fmt
=
vd
->
fmt
;
video_format_t
fmt
;
video_format_ApplyRotation
(
&
fmt
,
&
vd
->
fmt
);
/* */
vout_display_info_t
info
=
vd
->
info
;
...
...
@@ -501,22 +502,27 @@ static int Control( vout_display_t *vd, int query, va_list args )
case
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
:
case
VOUT_DISPLAY_CHANGE_SOURCE_CROP
:
{
const
video_format_t
*
s
ource
=
va_arg
(
args
,
const
video_format_t
*
);
const
video_format_t
*
s
rc
=
va_arg
(
args
,
const
video_format_t
*
);
if
(
query
==
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
)
{
sys
->
kvas
.
ulAspectWidth
=
(
int64_t
)
source
->
i_width
*
source
->
i_sar_num
/
source
->
i_sar_den
;
sys
->
kvas
.
ulAspectHeight
=
source
->
i_height
;
vout_display_place_t
place
;
vout_display_PlacePicture
(
&
place
,
src
,
vd
->
cfg
,
false
);
sys
->
kvas
.
ulAspectWidth
=
place
.
width
;
sys
->
kvas
.
ulAspectHeight
=
place
.
height
;
}
else
{
sys
->
kvas
.
rclSrcRect
.
xLeft
=
source
->
i_x_offset
;
sys
->
kvas
.
rclSrcRect
.
yTop
=
source
->
i_y_offset
;
sys
->
kvas
.
rclSrcRect
.
xRight
=
source
->
i_x_offset
+
source
->
i_visible_width
;
sys
->
kvas
.
rclSrcRect
.
yBottom
=
source
->
i_y_offset
+
source
->
i_visible_height
;
video_format_t
src_rot
;
video_format_ApplyRotation
(
&
src_rot
,
src
);
sys
->
kvas
.
rclSrcRect
.
xLeft
=
src_rot
.
i_x_offset
;
sys
->
kvas
.
rclSrcRect
.
yTop
=
src_rot
.
i_y_offset
;
sys
->
kvas
.
rclSrcRect
.
xRight
=
src_rot
.
i_x_offset
+
src_rot
.
i_visible_width
;
sys
->
kvas
.
rclSrcRect
.
yBottom
=
src_rot
.
i_y_offset
+
src_rot
.
i_visible_height
;
}
kvaSetup
(
&
sys
->
kvas
);
...
...
@@ -632,8 +638,8 @@ static int OpenDisplay( vout_display_t *vd, video_format_t *fmt )
msg_Dbg
(
vd
,
"output chroma = %4.4s"
,
(
const
char
*
)
&
fmt
->
i_chroma
);
msg_Dbg
(
vd
,
"KVA chroma = %4.4s"
,
(
const
char
*
)
&
i_kva_fourcc
);
w
=
vd
->
source
.
i_width
;
h
=
vd
->
source
.
i_height
;
w
=
fmt
->
i_width
;
h
=
fmt
->
i_height
;
sys
->
kvas
.
ulLength
=
sizeof
(
KVASETUP
);
sys
->
kvas
.
szlSrcSize
.
cx
=
w
;
...
...
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