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
39f890d2
Commit
39f890d2
authored
Mar 17, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/video_output/vout_intf.c, src/misc/image.c: proper aspect ratio for snapshots.
parent
21127514
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/misc/image.c
src/misc/image.c
+9
-0
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+3
-0
No files found.
src/misc/image.c
View file @
39f890d2
...
...
@@ -581,6 +581,15 @@ static encoder_t *CreateEncoder( vlc_object_t *p_this, video_format_t *fmt_in,
p_enc
->
fmt_in
.
video
.
i_width
=
fmt_out
->
i_width
;
p_enc
->
fmt_in
.
video
.
i_height
=
fmt_out
->
i_height
;
}
else
if
(
fmt_out
->
i_sar_num
&&
fmt_out
->
i_sar_den
&&
fmt_out
->
i_sar_num
*
fmt_in
->
i_sar_den
!=
fmt_out
->
i_sar_den
*
fmt_in
->
i_sar_num
)
{
p_enc
->
fmt_in
.
video
.
i_width
=
fmt_in
->
i_sar_num
*
(
int64_t
)
fmt_out
->
i_sar_den
*
fmt_in
->
i_width
/
fmt_in
->
i_sar_den
/
fmt_out
->
i_sar_num
;
}
p_enc
->
fmt_in
.
video
.
i_frame_rate
=
25
;
p_enc
->
fmt_in
.
video
.
i_frame_rate_base
=
1
;
...
...
src/video_output/vout_intf.c
View file @
39f890d2
...
...
@@ -356,6 +356,9 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
fmt_in
.
i_chroma
=
p_vout
->
render
.
i_chroma
;
fmt_in
.
i_width
=
p_vout
->
render
.
i_width
;
fmt_in
.
i_height
=
p_vout
->
render
.
i_height
;
fmt_in
.
i_sar_num
=
p_vout
->
fmt_render
.
i_sar_num
;
fmt_in
.
i_sar_den
=
p_vout
->
fmt_render
.
i_sar_den
;
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