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
6675c2ba
Commit
6675c2ba
authored
Apr 02, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix snapshot with default video size. Please *test* your changes before commiting.
parent
885b6b8a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+11
-5
No files found.
src/video_output/vout_intf.c
View file @
6675c2ba
...
...
@@ -720,19 +720,25 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
fmt_out
.
i_width
=
var_GetInteger
(
p_vout
,
"snapshot-width"
);
fmt_out
.
i_height
=
var_GetInteger
(
p_vout
,
"snapshot-height"
);
fmt_in
=
p_vout
->
fmt_in
;
if
(
fmt_out
.
i_width
==
0
&&
fmt_out
.
i_height
>
0
)
{
float
f
=
(
float
)
p_vout
->
fmt_in
.
i_height
/
fmt_out
.
i_height
;
fmt_out
.
i_width
=
p_vout
->
fmt_in
.
i_width
/
f
;
float
f
=
(
float
)
fmt_in
.
i_height
/
fmt_out
.
i_height
;
fmt_out
.
i_width
=
fmt_in
.
i_width
/
f
;
}
else
if
(
fmt_out
.
i_height
==
0
&&
fmt_out
.
i_width
>
0
)
{
float
f
=
(
float
)
p_vout
->
fmt_in
.
i_width
/
fmt_out
.
i_width
;
fmt_out
.
i_height
=
p_vout
->
fmt_in
.
i_height
/
f
;
float
f
=
(
float
)
fmt_in
.
i_width
/
fmt_out
.
i_width
;
fmt_out
.
i_height
=
fmt_in
.
i_height
/
f
;
}
else
{
fmt_out
.
i_width
=
fmt_in
.
i_width
;
fmt_out
.
i_height
=
fmt_in
.
i_height
;
}
/* Save the snapshot */
fmt_in
=
p_vout
->
fmt_in
;
fmt_out
.
i_sar_num
=
fmt_out
.
i_sar_den
=
1
;
i_ret
=
image_WriteUrl
(
p_image
,
p_pic
,
&
fmt_in
,
&
fmt_out
,
psz_filename
);
if
(
i_ret
!=
VLC_SUCCESS
)
...
...
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