Changeset 39f890d258770caae77e3b678fd47143ed06f7f6
- Timestamp:
- 17/03/05 14:14:04
(4 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1111065244 +0000
- git-parent:
[21127514768ee12247709eda51ffca26e88a7303]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1111065244 +0000
- Message:
* src/video_output/vout_intf.c, src/misc/image.c: proper aspect ratio for snapshots.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r7e0f674 |
r39f890d |
|
| 582 | 582 | p_enc->fmt_in.video.i_height = fmt_out->i_height; |
|---|
| 583 | 583 | } |
|---|
| | 584 | else if( fmt_out->i_sar_num && fmt_out->i_sar_den && |
|---|
| | 585 | fmt_out->i_sar_num * fmt_in->i_sar_den != |
|---|
| | 586 | fmt_out->i_sar_den * fmt_in->i_sar_num ) |
|---|
| | 587 | { |
|---|
| | 588 | p_enc->fmt_in.video.i_width = |
|---|
| | 589 | fmt_in->i_sar_num * (int64_t)fmt_out->i_sar_den * fmt_in->i_width / |
|---|
| | 590 | fmt_in->i_sar_den / fmt_out->i_sar_num; |
|---|
| | 591 | } |
|---|
| | 592 | |
|---|
| 584 | 593 | p_enc->fmt_in.video.i_frame_rate = 25; |
|---|
| 585 | 594 | p_enc->fmt_in.video.i_frame_rate_base = 1; |
|---|
| r8214ec5 |
r39f890d |
|
| 357 | 357 | fmt_in.i_width = p_vout->render.i_width; |
|---|
| 358 | 358 | fmt_in.i_height = p_vout->render.i_height; |
|---|
| | 359 | fmt_in.i_sar_num = p_vout->fmt_render.i_sar_num; |
|---|
| | 360 | fmt_in.i_sar_den = p_vout->fmt_render.i_sar_den; |
|---|
| | 361 | fmt_out.i_sar_num = fmt_out.i_sar_den = 1; |
|---|
| 359 | 362 | i_ret = image_WriteUrl( p_image, p_pic, &fmt_in, &fmt_out, psz_filename ); |
|---|
| 360 | 363 | if( i_ret != VLC_SUCCESS ) |
|---|